What role is required to view flow execution details?

thomaskennedy
Tera Guru

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.

10 REPLIES 10

Community Alums
Not applicable

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.

 

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. 

 

thomaskennedy_0-1686675047726.png

 

Amit Gujarathi
Giga Sage
Giga Sage

HI @thomaskennedy ,
I trust you are doing fine.

To troubleshoot this, follow these steps:

  1. 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.

  2. 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.

  3. 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.

  4. Clear your browser cache: Sometimes, caching issues can cause unexpected behavior. Clear your browser cache and try accessing the execution details again.

  5. 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



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,