Hello,
We have a folder in ACS that contains a rule that triggers a custom action when detects that a file has entered the folder.
In this rule we are also deleting the same file and the following exception is thrown:
2022-03-31 16:37:22,762 ERROR [repo.action.AsynchronousActionExecutionQueueImpl] [defaultAsyncAction2] Failed to execute asynchronous action: Action[ id=486d1a62-ebd6-11eb-9a03-0242ac130003, node=workspace://SpacesStore/486d1a62-ebd6-11eb-9a03-0242ac130003 ]
org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/2bd1689a-ebd6-11eb-9a03-0242ac130003 (statustatus[id=1174changeTxnId=0e34ddbb-3875-49f7-9dcc-93e2158af78c, dbTxnId=70, deleted=true])
Is this something possible to do? Because we are deleting the same file that triggered the rule in execution.
Best regards,
Francisco Duarte
Well that node will not be visible to the next transaction for deletion i believe. Created nodes are visible only after create transaction is complete.
You have to handle it in two transactions.
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.