cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Set Item Permission is not working intermittently

Jump to solution

Hi,

  We are using Set Item Permission control in which we are restricting the inheritance and Providing full control to only approvers. Sometimes it is failing to set the permission after stopping the inheritance which affects the following Log in History List control and workflow is errored out by throwing the following error:

Nintex.Workflow.NWActionExecutionException: Failed to log to history list. --> System Exception: Cannot find item with id 3629 in list. Check the user has at least read permissions.

Is this already a known issue?

Can anyone please help on this?

Labels: (1)
Reply
7 Replies
Workflow Hero

Re: Set Item Permission is not working intermittently

Jump to solution

it looks like you set permission in a way so that user that runs workflows resp. effectively needs to write  to history log loses permission on list item.

0 Kudos
Reply
Workflow Hero

Re: Set Item Permission is not working intermittently

Jump to solution

Actually, whoever has initiated that item is also belong to one of the approver group, but item permission didn't get assign to anyone other than authenticated users group even though it is configured for Full control to approvers.

Reply
Workflow Hero

Re: Set Item Permission is not working intermittently

Jump to solution

have you checked what are effective permissions on reported item after workflow failed?

was respective user account listed there with sufficient permissions?

do you give permission to all the approver groups at once or do you give them just to a specific group that should take care of a given approval step?

0 Kudos
Reply
Workflow Hero

Re: Set Item Permission is not working intermittently

Jump to solution

Yes, we have checked the Permission after WF failed where permission got assigned only to NT/Authenticated user group and not for the approver group.

Approver group is nothing but a Collection variable which is getting loaded through the WF from another list (We observed that the variable is loaded with approver group)

Reply
Workflow Hero

Re: Set Item Permission is not working intermittently

Jump to solution

so I think reason of the error is clear - permissions were not given to the group, hence user lost former permissions on an item.

so question now is why the permissions weren't setup.

can you provide more info on content of collection variable and what exactly 'approver group' is?

is it just list of user accounts you load into collection?

is it SP or AD group?

is there single element in collection or multiple ones?

if you could write collection content into log and post it might as well help.

0 Kudos
Reply
Workflow Hero

Re: Set Item Permission is not working intermittently

Jump to solution
Reply
Workflow Hero

Re: Set Item Permission is not working intermittently

Jump to solution

++ what Philip said. This is likely a race condition and/or batching issue. Give this article a read as well:  

Reply