I am getting below error when I try to edit a SharePoint list item, created by another user. The list has been customized using PowerApps.
Error: "The requested operation is invalid. Server Response: Item does not exist. It may have been deleted by another user. clientRequestId: d74820cd-2778-4d38-b3bc-40xxxxxxx serviceRequestId: 6f302a9f-40ff-a000-c511-f651xxxxxx"
Once the form is submitted by another user, MS flow removes all permission on that item and assigns contribute to few users including me. That form has attachment as well.
Can someone point me in right direction. This is hampering a critical delivery scheduled to go-live. I thought PowerApps was supposed to increase productivity but seems it is not at the moment.
Solved! Go to Solution.
Thanks @Pstork1 for your input. It was indeed related to permissions.
Though, I had "Full Control" on the item to my account, I was still getting the error "The requested operation is invalid..."
It started working when I changed copyRoleAssignments from false to true in Break Inheritance step and then remove the permissions for SharePoint groups and assign the permissions to individual users.
break inheritance
_api/lists/getByTitle('<listname>')/items(<ID>)/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)
remove group permissions
_api/lists/getByTitle('<listname>')/items(<ID>)/roleassignments/removeroleassignment(<SharePoint Group ID>)
Hope this might help to someone getting the same error.
Verify that the steps that change the permissions are working appropriately. It sounds like you don't have permission to the item anymore.
Hi @Anonymous ,
Could you tell me the complex fields' related settings? like choice, lookup, person.
Here's a similar issue for your reference, please check your sharepoint custom form's settings :
Usually, formulas in the customization part will lead to this kind of problem.
So please check these formulas to see whether you made any mistake.
Best regards,
Thanks @Pstork1 for your input. It was indeed related to permissions.
Though, I had "Full Control" on the item to my account, I was still getting the error "The requested operation is invalid..."
It started working when I changed copyRoleAssignments from false to true in Break Inheritance step and then remove the permissions for SharePoint groups and assign the permissions to individual users.
break inheritance
_api/lists/getByTitle('<listname>')/items(<ID>)/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)
remove group permissions
_api/lists/getByTitle('<listname>')/items(<ID>)/roleassignments/removeroleassignment(<SharePoint Group ID>)
Hope this might help to someone getting the same error.
That's not a big surprise. If you don't copy the role assignments when you break inheritance then the only person with access to the item would be the original author. That would also make removing the groups unnecessary since they wouldn't be there to begin with if you don't copy roles. But it is much safer to copy the roles and then remove the extra groups, or make sure you are the owner of the item before breaking inheritance.
Hello,
I am having the same problem. Could you please explain more how to solve it.
Thank you,
Anas Siddique.
Please post this as a separate thread. You will get more help and responses as a new post rather than a reply to an old thread.
User | Count |
---|---|
252 | |
107 | |
88 | |
51 | |
44 |