The CreatorCon Call for Content is officially open! Get started here.

"Cancelled : flow took too long execute" in flow desinger

Harsha Reddy
Tera Contributor

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?

HarshaReddy_0-1700033495601.png

 

Thanks in Advance

 

Regards,

Harsha

1 REPLY 1

Amit Gujarathi
Giga Sage
Giga Sage

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:

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

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

  3. Limit Looping: Avoid using loops unnecessarily, especially when dealing with a large dataset. Loops can significantly increase the execution time.

  4. Parallel Actions: Consider using parallel actions to execute multiple tasks concurrently, which can help reduce execution time.

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

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

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