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"
Solved! Go to Solution.
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.
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.
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.
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.
Hi Cesar,
Wonderful. The 'existingFileMode=REPLACE' parameter solves the problem. (my alfresco version was
Thanks very much.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.