AnsweredAssumed Answered

How to move duplicate document to a folder in alfresco community edition 5.2?

Question asked by muqthar on Mar 4, 2017
Latest reply on Mar 8, 2017 by douglascrp

Scenario:

I have to move Hellp.txt from Draft folder to Approved folder. First time it is working properly and sitting in the Approved folder but second time if i am trying move the updated same document second time then it is giving the following exception

org.alfresco.service.cmr.repository.DuplicateChildNodeNameException.

in this scenario, document name is same so it is giving this exception so we have to identify whether the approved folder has this document. if yes then delete that document and move the updated document else directly move the document to Approved folder.

if any web script available, please share with me. 

 

Thanks in advance.

 

Regards,

Muqthar

Outcomes