Getting "Node does not exist" after rule triggered in folder

cancel
Showing results for 
Search instead for 
Did you mean: 
franciscoduarte
Member II

Getting "Node does not exist" after rule triggered in folder

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 (statusSmiley Frustratedtatus[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

1 Reply
abhinavmishra14
Advanced

Re: Getting "Node does not exist" after rule triggered in folder

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. 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)