cancel
Showing results for 
Search instead for 
Did you mean: 

conderations under creating an ACP file...

pedro
Champ in-the-making
Champ in-the-making
I was creating an XML name as package (exportfacturas.xml), but sometimes appear this error:

09:20:23,811 ERROR [org.alfresco.repo.action.ActionServiceImpl] An error was encountered whilst executing the action 'import'.
org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 28; column 16 due to error: Failed to find content exportfacturas\content0.txt within zip package

Now al line 28 column 16 in the package.xml has te code…

….
<cm:creator>admin</cm:creator>
<!– <sys:store-protocol>workspace</sys:store-protocol> –>
<cm:name>arch1.txt</cm:name>
<my:fechaEntrega>2006-01-18T13:47:00.000-04:00</my:fechaEntrega>
<my:aNombreDe></my:aNombreDe>
</viewSmiley Tongueroperties>
</my:factura><- THIS IS THE LINE 28 COLUMN 16
<my:factura xml…

This error coincides with the end of the first element of the list of elements. And occurs when I create more than one element. Exists any considerations to create an ACP file?

Regards,

Pedro
2 REPLIES 2

davidc
Star Contributor
Star Contributor
This issue is caused by the editing of an existing .acp file i.e. using winzip (or any other tool) to append or update files in the zip file.  The updates seem to change the path seperators from backslash to forward slash.

A fix has been applied to SVN (revision 2180) to support either \ or /.

You can workaround this in the meantime by replacing exportfacturas\content0.txt with exportfacturas/content0.txt in your xml file.

pedro
Champ in-the-making
Champ in-the-making
Thanks David,

As I was creating a ACP to import elements, I think to eliminate the folder and zip the files in the root. I can do it very well. I can import correctly all my files.

Pedro