cancel
Showing results for 
Search instead for 
Did you mean: 

creating a ACP file for import files with custom tipes

pedro
Champ in-the-making
Champ in-the-making
Hi,

I want to create an ACP to import and upload more than one files at once. I can do this?. Then I uploaded an created ACP, how I can deploy it in the spaces.

Thanks,

Pedro
6 REPLIES 6

davidc
Star Contributor
Star Contributor
If I understand, you wish to create an ACP file that consists of multiple items (some of custom types) and import them into a Space via the Web Client.

Yes, that's possible.  The format of an ACP file is described at http://www.alfresco.org/mediawiki/index.php/Export_and_Import.  How you create the file is up to you - either from an Export, or some custom process.

Via the Web Client, you can upload the ACP file and then Import it using the "Import Action".  Click on "View Details" for the ACP file, then select "Run Action" and choose "Import from ACP…".

You can also setup a Rule to automatically import any ACP file that's been uploaded into a Space.  See http://www.alfresco.org/mediawiki/index.php/Export_and_Import#Import_Action  for some more info.

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

hsp
Champ in-the-making
Champ in-the-making
Sorry, but , what does mean ACP???

pedro
Champ in-the-making
Champ in-the-making
ACP meas Alfresco Content Package this is explained in this link:

http://www.alfresco.org/mediawiki/index.php/Export_and_Import

davidc
Star Contributor
Star Contributor
In the Run Action option, I can create a rule "Import a ACP file", Now I ask. If I create this action… I can deploy the contents in ACP in the webClient?

Yes, that's right.  Just to clarify, the Run Action option does not create a rule, it just executes the action on the selected item when the ok selected.

So, you can run the action 'Import an Alfresco Content Package' on any .acp file and it will expand the contents of the ACP into the folder selected in the action wizard.

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