Getting "Node does not exist" after rule triggered in folder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2022 12:56 PM
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
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2022 03:16 PM
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.
(ACSCE, AWS SAA, Azure Admin)
