"Cancelled : flow took too long execute" in flow desinger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 11:32 PM
Hi Community,
In flow designer while executing the flow through record sometime facing this issue "Cancelled : flow took too long execute". Can anyone help me on this?
Thanks in Advance
Regards,
Harsha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 11:41 PM
HI @Harsha Reddy ,
I trust you are doing great.
Please find the below best practices we are following while creating a flow
To resolve this issue, you can take the following steps:
-
Review Flow Logic: First, review the logic of your flow to identify any potential bottlenecks or actions that might be causing delays. Pay close attention to any actions that involve external systems, as they can sometimes be the source of delays.
-
Optimize Queries: If your flow involves querying a large number of records, make sure your queries are optimized. Use appropriate filters and conditions to reduce the number of records being processed.
-
Limit Looping: Avoid using loops unnecessarily, especially when dealing with a large dataset. Loops can significantly increase the execution time.
-
Parallel Actions: Consider using parallel actions to execute multiple tasks concurrently, which can help reduce execution time.
-
Asynchronous Actions: If applicable, you can make certain actions asynchronous. This means they will run in the background, allowing the flow to continue without waiting for them to complete.
-
Error Handling: Implement error handling mechanisms in your flow to catch and handle exceptions gracefully. This can prevent the flow from being canceled due to unexpected errors.
-
Scheduled Flows: If your flow involves long-running processes, you might want to consider breaking it into multiple smaller flows or scheduling it to run during non-peak hours.
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi