cancel
Showing results for 
Search instead for 
Did you mean: 

org.alfresco.service.cmr.view.ImporterException occurs when importing ...

mex
Champ in-the-making
Champ in-the-making
Hello!
Thank you that did not pass my message! I am new to alfresco and not a bad guy Smiley Happy
My goal: to move the website and its contents (datalists, documentLibrary) on another identical server alfresco.
There is a web-script that allows you to do this export: / alfresco / service / api / sites / {shortname} / export
I also saw that there is a possibility to import alfresco.
I decided that I would succeed, but I ran into trouble … Maybe someone faced with this problem and help direct me to the right directions. Google has taken a very large amount of time my employer 😃 solutions but I could not find it. Export problems I have not felt … After some time I got the file in acp. Looked at the structure and going to import to another server Alfresco …
When you import content to another identical server alfresco returns an error:

  org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 25819; column 152 due to error: Cannot find node referenced by path cm:documentLibrary/cm:uploads/cm:_x0032_014/cm:_x0030_6/cm:_x0031_7/cm:_x0031_1-30-48–user/cm:_x0036_6.pdf

I wondered why the path to the file in line 25819 so many obstacles type _x0032 (it should be as a decimal figure 2)?
Archived acp folder where I saw a lot of useful documents renamed, why is he doing? Once again I want to thank you for reading this message. Where to look for solutions to this problem on the Internet?
1 REPLY 1

kaynezhang
World-Class Innovator
World-Class Innovator
An ACP fileis a single file  that bundles together the meta-data and content files for the information to be transported.it contains an xml file that describle repository nodes metadata and their association(reference).

During importting the acp file when metting reference element(a node Na is referencing another node Nb),import engine will first search the referenced node Nb using xpath language.
XPath language need Invalid characters to be encoded in the form "_xhhhh_" where the four digits represent the hex encoding of the character. For example, the space character, "a b", would get encoded to "a_x0020_b".
So your path
cm:documentLibrary/cm:uploads/cm:_x0032_014/cm:_x0030_6/cm:_x0031_7/cm:_x0031_1-30-48–user/cm:_x0036_6.pdf
is the encoded one.
It seems this node dose not exist ,you can check if it exists using node browser. If it dose not exist ,you can try to create it using web client and reimport your acp.