What role is required to view flow execution details?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2023 03:36 PM
When I open my flow and choose More Options | Executions it shows me a list of executions for my flow. But when I click on any row I get
There was an error loading the execution details for this flow context
and a popup saying
Exception while executing request: User doesn't have permission to view the report
So I assigned myself all the roles having flow or fd in the name, like so:
flow_report_viewer
flow_designer_scripting
flow_operator
etc
However this made no difference. What do I need to view the execution for my flow?
The property com.snc.process_flow.reporting.level is set to FLOW.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2023 09:12 PM
HI @thomaskennedy ,
You can see the "Run with" roles for a flow by viewing the flow execution details. Use the Run As field to determine which user ran the flow. Only flows that ran as the initiating user can have roles assigned. These flows have a Run with role(s) field that displays the roles assigned to the flow.
You will probably need to change the Flow reporting property: com.snc.process_flow.reporting.level
Set it to value "ON" to enable reporting.
Also note, best practice is to not enable this on a Production instance, use it on testing/development instances only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2023 09:53 AM
Sandeep,
Is there another way to see the run-with role? The flow execution is what it will not let me view.
I did set that system property. I also set the reporting property on the flow.
I believe the flow is running only a very short time, that is, it is failing quickly. In this snapshot I see the last four runs. The last was one I ran manually through the Test button. I believe all of these runs failed to run to completion, but I cannot see the execution details for any of them. The ones that run on schedule all ran as "guest", which seems odd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2023 09:16 PM
HI @thomaskennedy ,
I trust you are doing fine.
To troubleshoot this, follow these steps:
Verify your roles: Double-check that you have been assigned the following roles: flow_report_viewer, flow_designer_scripting, and flow_operator. Confirm with your ServiceNow administrator that these roles provide the necessary permissions to view execution details.
Check flow context permissions: The error message mentions that there is an issue with the user not having permission to view the report. Ensure that the flow context associated with your flow has the appropriate permissions set. Contact your administrator to confirm if the flow context's access controls are configured correctly.
Review the property configuration: The property com.snc.process_flow.reporting.level is mentioned, and it is set to FLOW. This property determines the level of reporting and might affect your ability to view execution details. Ensure that this property is correctly set and aligned with your requirements. Your administrator can assist you in reviewing and modifying this property if necessary.
Clear your browser cache: Sometimes, caching issues can cause unexpected behavior. Clear your browser cache and try accessing the execution details again.
Check for known issues: Consult the ServiceNow documentation, release notes, or community forums for any known issues related to viewing execution details in ServiceNow flows. There might be specific configuration steps or updates required to address this problem.
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2023 09:20 AM
Amit,
1. Verify your roles
Done
2. Check flow context permissions
Not sure what this means
3. Review the property configuration com.snc.process_flow.reporting.level
The property is set to FLOW. I set the flow's own property to ON but this made no difference.
4. Clear your browser cache
Done
The behavior is unchanged. Can you expand on #2? I see a table named sys_flow_context, and I don't see anything suspicious in there,