When a user is created , a process builder is fired and it assign different roles and permissions to the users.
The first decision is to assign the support ticket user . Next decision node is to assign the report folder manager to the user. This is done from an apex class which is called from the process builder.
I am getting an error
unable to The flow tried to update these records: null. This error occurred: UNKNOWN_EXCEPTION: group membership operation already in progress
This is happening because the first step (assigning the support ticket user ) is placing a lock on the record.
Is it possible to find out if the record is locked or not from the apex class?
Is it possible to check if one decision element is completed and record is unlocked before proceeding to next decision in the process builder?