Flow Designer giving error on Run As: System User
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2025 10:39 AM
We have a flow that is throwing an error in Create record for sys_user_grmember table.
Error:
Although we are encountering this error, the group was still added in users' profile so this does not make sense.
In our properties, the Run As is set to System User as well.
How can we eliminate the error that is happening on this flow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 10:16 AM
Hi @Ankur Bawiskar / @Robert H ,
In the Step 3, I am checking the approver if the user has ITIL or Business Stakeholder role. Then in Step 4, I am checking if there is no record for the approver/user then that will be the time I will be adding the group to the user.
Also, the group was added the same time it had an error, so it means that it was still created.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 01:49 PM - edited 04-21-2025 01:49 PM
Hello @pjftenorio ,
You want to add the user to a group, so your step #3 needs to check if the user is already in that group.
That information can be found in the Group Members [sys_user_grmember] table, not in the User Role table.
So please change that step to check the correct table.
If the error persists please check the System Log for more clues, as suggested earlier.
If you say the Group is actually being created by the Flow when the error happens there might also be something wrong with your step #2
Regards,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 02:18 PM
Any chance your group contains a role that requires a certain permission to assign?