Hi, I have designed a workflow which runs query on a list and collect the IDs of all the items fulfilling the filter conditions in a Collection variable. Then I run "For Each Loop" on this collection and add some specific permissions to each item. I have set up this workflow such that it runs whenever the item is modified. Although, when it is runs, it performs all the actions as desired and all the permissions are set as I want but in the end instead of terminating, it sends the error message:
"An error has occurred in SetPermissionWorkflow".
Is there any reason why this error is occurring?