- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2024 01:30 AM
Hello experts,
I've a requirement where i need to run a flow for a large number of data set , and i'm not able to see logs inside for loops as the code runs for count,
check the screen shot , i'm not able to change the for loop counter to see other iterations, and output in them.
Kindly guide me , in case you've faced the similar issue, or if there is some property that is blocking it .
Regards,
Varun Sharma
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 01:52 AM - edited 04-25-2024 01:52 AM
Hey @Varun Sharma,
Can you verify the following system property? com.snc.process_flow.reporting.iteration.lastn
- Specify the number of recent iterations to report in the flow execution details. Use this property to sample a recent portion of flow logic iterations. Use a positive value to specify the number of recent iterations to display. Use the value of -1 to display all iterations. The system treats the value 0 as a value of 1.
The value might be set to something like 1 in your instance.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 09:15 AM - edited 08-07-2024 10:43 AM
I am attempting to see all of the iterations, in an iteration loop ('For Each Item in' Action step), which has only 5 iterations in its current configuration. It would seem that no matter how I configure the global Process Automation System Properties (I have tried several custom configurations of these properties), I continue to only be able to see the First and Last iteration loop. Furthermore, if I define specific System Flow Execution Settings {sys_flow_execution_setting} records, I still only get the First and Last iteration loops revealed in Execution Details records. I have created several of these records (System Flow Execution Settings {sys_flow_execution_setting}), on the triggering Flow, and on Subflows invoked by the triggering Flow, with no change in behavior of the Execution Details operational records. I still only see the First and Last iteration loops. I have tested 3 of the 4 'Reporting' levels
- 'Basic: Runtime states and durations only'
- 'Full: Action configuration and runtime values (for debugging only)'
- 'Trace: All values (for testing and Support only)'
I will test a few more times, focusing on observing the results when I define a System Flow Execution Settings {sys_flow_execution_setting} record that is set to the fourth reporting level of 'Off'.
This confounding behavior appeared only recently in Service Now Flow Designer/Workflow Studio (within the last 2 to 3 months). I used to be able to see all iteration loops, of large iteration sets (50 to 100, for example), by simply setting the appropriate global Process Automation System Properties. What has happened? This new behavior is preventing me from confirming proper operation of complex Subflow and Flow customizations that we are developing, as part of our System Testing of those customizations. This would appear to defeat one of the core reasons we decided to adopt Flows, Subflows, and Actions as our default Business Process logic in Service Now. Please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 02:48 AM
Please try to create a flow execution setting record to show all the iterations.
In my PDI, I was able to see only first and last records in the loop.
So created this setting for the flow. it worked. But, please use this setting in only non-prod instances.
i could see all the iterations
Useful links:
Please let me know, if you need more inputs here.
Thank you.
Regards,
Karunakaran.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 01:52 AM - edited 04-25-2024 01:52 AM
Hey @Varun Sharma,
Can you verify the following system property? com.snc.process_flow.reporting.iteration.lastn
- Specify the number of recent iterations to report in the flow execution details. Use this property to sample a recent portion of flow logic iterations. Use a positive value to specify the number of recent iterations to display. Use the value of -1 to display all iterations. The system treats the value 0 as a value of 1.
The value might be set to something like 1 in your instance.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 04:32 AM
Hi @James Chun ,
Thanks for the property , i just read it in documentation as well.
it works.
thanks for taking your time to share the stuff.
Regards,
Varun Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 09:15 AM - edited 08-07-2024 10:43 AM
I am attempting to see all of the iterations, in an iteration loop ('For Each Item in' Action step), which has only 5 iterations in its current configuration. It would seem that no matter how I configure the global Process Automation System Properties (I have tried several custom configurations of these properties), I continue to only be able to see the First and Last iteration loop. Furthermore, if I define specific System Flow Execution Settings {sys_flow_execution_setting} records, I still only get the First and Last iteration loops revealed in Execution Details records. I have created several of these records (System Flow Execution Settings {sys_flow_execution_setting}), on the triggering Flow, and on Subflows invoked by the triggering Flow, with no change in behavior of the Execution Details operational records. I still only see the First and Last iteration loops. I have tested 3 of the 4 'Reporting' levels
- 'Basic: Runtime states and durations only'
- 'Full: Action configuration and runtime values (for debugging only)'
- 'Trace: All values (for testing and Support only)'
I will test a few more times, focusing on observing the results when I define a System Flow Execution Settings {sys_flow_execution_setting} record that is set to the fourth reporting level of 'Off'.
This confounding behavior appeared only recently in Service Now Flow Designer/Workflow Studio (within the last 2 to 3 months). I used to be able to see all iteration loops, of large iteration sets (50 to 100, for example), by simply setting the appropriate global Process Automation System Properties. What has happened? This new behavior is preventing me from confirming proper operation of complex Subflow and Flow customizations that we are developing, as part of our System Testing of those customizations. This would appear to defeat one of the core reasons we decided to adopt Flows, Subflows, and Actions as our default Business Process logic in Service Now. Please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 10:36 AM
After further testing, it appears that the setting configuration I was in search of was the creation of a System Flow Execution Setting {sys_flow_execution_setting} record, specifically one targeting the triggering Flow (or the invoked Subflow - there's still a bit of ambiguity here). When I created such a record, with the attribute 'Report all iterations' set to 'true' and the attribute 'Reporting' set to 'None' (or 'empty'), then I was able to view all iterations of an iteration loop, both while execution was active, and after the completion of execution.