01-11-2018 05:36 AM
how to replace an existing document : the following batch doesnt' give agood result (documents are skipped !) :
curl -v -u admin:admin -L POST --url "localhost:8080/alfresco/s/bulkfsimport/initiate" --data "targetPath=/Sites/courrier-retraite/documentLibrary/Plis Retraite&sourceDirectory=C:\alfresco\Documents\123456789&replaceExisting=true"
01-11-2018 09:10 AM
Hi:
Which version of Alfresco are you using ?
In last 201707GA (Alfresco Community v5.2.0 (re21f2be5-b22)) , I don't see the replaceExisting parameter. Instead I find existingFileMode parameter SKIP|REPLACE|ADD_VERSION
The default one is SKIP.
Regards.
--C.
01-11-2018 07:40 AM
Hi:
May you test curl with a site path without spaces ? Do you see some WARNING or ERROR in Alfresco logs relating Bulk Import process ?
Regards.
--C.
01-11-2018 07:48 AM
Hi,
The batch is able to load documents , not to replace them...It seems that the parameter 'replaceExisting=true' is bad..
Thanks for your help.
01-11-2018 09:10 AM
Hi:
Which version of Alfresco are you using ?
In last 201707GA (Alfresco Community v5.2.0 (re21f2be5-b22)) , I don't see the replaceExisting parameter. Instead I find existingFileMode parameter SKIP|REPLACE|ADD_VERSION
The default one is SKIP.
Regards.
--C.
01-11-2018 10:37 AM
Hi Cesar,
Wonderful. The 'existingFileMode=REPLACE' parameter solves the problem. (my alfresco version was
Thanks very much.
Explore our Alfresco products with the links below. Use labels to filter content by product module.