Flow loops | Help - Zoho Flow

Flow loops

How to prevent infinite flow looping?

Looping is a scenario in which a set of connected tasks execute repeatedly. When such loops are not regulated, they execute endlessly, creating infinite loops. A flow loop happens when a flow gets invoked repeatedly without any intended trigger events. A typical case is when two flows perform actions in such a way that they trigger each other. This can cause the flows to send the same data to and fro repeatedly, creating numerous duplicate entries in your connected apps. This also leads to exhaustion of your available tasks within a brief period.

Symptoms of an infinite flow loop

Infinite flow loops may show some or all of these symptoms when the flow is switched on:

  • ​Your task count is increasing rapidly and unexpectedly
  • The flow is triggered when there are no actual changes in the source application
  • Multiple duplicate entries are created in the connected apps without actual record creation
  • Records are modified numerous times with the same redundant data without actual updates in the connected apps

How to prevent infinite flow looping in different scenarios

Looping can occur in different ways.

Scenario 1: Syncing data bidirectionally between two apps 

Suppose you want to sync newly created data between Zoho Projects and Trello. Every project created in Zoho Projects must have a corresponding board in Trello, and vice versa. However, when a board is created in Trello as a result of the first flow's action, it triggers the reverse flow automatically, creating a new project in Zoho Projects. This continues because the flow is set up to trigger on any newly created entry. The solution is to understand how your apps are connected, and to implement logical conditions in your flows that prevent duplication of data.

Solution:

Step 1: Ensure that the trigger in one of the flows contains a field that you have control over. For example, you could create a custom field, say Status, a field that you can fill in with a keyword of your choice.

Step 2: Click Logic in the flow builder and drag the Decision block onto the builder between your trigger and action. Set the decision to run only if the custom field from step 1 contains your keyword. For example, you could configure your flow to run only if your keyword is entered in the custom field created (in this example, Status). Whenever you create a project, remember to use your keyword (for example, "key1").

Step 3: Set up the second flow.

Step 4: Whenever you create a project, make sure you include "key1" in the custom field in Zoho Projects. This avoids the exchange of duplicate entries between the connected applications.

Note: This method works by using a user-controlled field that indicates to the flow that the record creation was performed by a user, and not an automated duplicate entry. Remember to use a newly created custom field or typically unused fields, like Description or Notes, for keywords to keep the auto-generated or important fields like Title or Project ID undisturbed.
If you are using a fetch action to sync newly created records between two apps, add a Decision block that allows the flow to continue only if the fetched record values return null. This ensures that the second app does not hold similar data. Configure the second flow in the same way.

Suppose you have created a flow that takes in new tasks created in Asana and creates to-dos in Basecamp. There might be another flow that creates a new row in Zoho Sheet for every to-do created in Basecamp. Later on, a flow is created that syncs the task data between Zoho Sheet and Asana. This completes a loop, and there is no filter to stop the flows from executing repeatedly.

Solution:

This happens when multiple flows connecting different apps form a chain that returns data to the initial app, resulting in a loop. 

Identify all the flows that connect your apps. If there are flows that sync data, make sure that none of the actions in your flows trigger other flows. If such a connection is necessary, make sure to set Decision blocks to let the flows run only if the records do not match the original.

Scenario 3: When you sync data between two apps and one app has a custom function or logic feeding data into the other.

Suppose you have an already-existing custom function that syncs data from Zoho CRM to Zoho Books. If you create a flow that syncs data from Zoho Books to Zoho CRM using Zoho Flow, it can complete the loop and generate duplicate entries.

Solution:

Identify already exiting connections between the apps. This includes direct integration using code, external data syncing applications and others.

Troubleshooting

Wherever you come across the symptoms that are usually associated with infinite looping, try to resolve the issues yourself by carrying out the following steps:

TURN OFF the concerned flows immediately
Immediately turn off all the flows that connect your concerned apps when you detect something is wrong with its records. Wait for a few minutes to see if the data duplication is still going on. If it's not, check if the scenario falls under the above-mentioned scenarios and try the solutions given.

Check your flow logs
Go to Settings and navigate to History to view your Task History. This gives you the status of how your flows are running, and lets you identify problems as soon as they occur. Click on a task to view the detailed log of that particular execution.

Check for other integrations or codes
If turning off the concerned flow does not stop the behavior, look for other integrations using code or other third party applications that connect your concerned apps.

Contact support
If everything else fails to solve the issue, you can write to our support team at support@zohoflow.com



        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            Zoho CRM Training Programs

            Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

            Zoho CRM Training
              Redefine the way you work
              with Zoho Workplace

                Zoho DataPrep Personalized Demo

                If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

                Zoho CRM Training

                  Create, share, and deliver

                  beautiful slides from anywhere.

                  Get Started Now


                    Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                    BOOK A SESSION







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG

                                  Zoho FSM Video Tutorials


                                        All-in-one knowledge management and training platform for your employees and customers.

                                                  Create. Review. Publish.

                                                  Write, edit, collaborate on, and publish documents to different content management platforms.

                                                  Get Started Now




                                                                    You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                        Manage your brands on social media


                                                                          • Desk Community Learning Series


                                                                          • Digest


                                                                          • Functions


                                                                          • Meetups


                                                                          • Kbase


                                                                          • Resources


                                                                          • Glossary


                                                                          • Desk Marketplace


                                                                          • MVP Corner


                                                                          • Word of the Day


                                                                          • Ask the Experts


                                                                            Zoho Sheet Resources

                                                                             

                                                                                Zoho Forms Resources


                                                                                  Secure your business
                                                                                  communication with Zoho Mail


                                                                                  Mail on the move with
                                                                                  Zoho Mail mobile application

                                                                                    Stay on top of your schedule
                                                                                    at all times


                                                                                    Carry your calendar with you
                                                                                    Anytime, anywhere




                                                                                          Zoho Sign Resources

                                                                                            Sign, Paperless!

                                                                                            Sign and send business documents on the go!

                                                                                            Get Started Now




                                                                                                    Zoho TeamInbox Resources





                                                                                                              Zoho DataPrep Demo

                                                                                                              Get a personalized demo or POC

                                                                                                              REGISTER NOW


                                                                                                                Design. Discuss. Deliver.

                                                                                                                Create visually engaging stories with Zoho Show.

                                                                                                                Get Started Now








                                                                                                                                    • Related Articles

                                                                                                                                    • Best practices while using Zoho Flow

                                                                                                                                      Workflows form a part of business processes and day-to-day activities. An effective business workflow requires a good deal of planning and a set of practices that ensure that they continue to work as intended. Similarly, automated workflows can also ...
                                                                                                                                    • Flow Control

                                                                                                                                      Flow Control elements help you define the execution path of your flow using conditions, variables, delays, and reusable workflows. This category includes: Set Variable Decision If else Delay Subflow Set Variable The Set Variable action lets you ...
                                                                                                                                    • Encryption in Zoho Flow

                                                                                                                                      Encryption is primarily used to safeguard the contents of a message so that only the intended recipient can read it. This is done by replacing the contents with unrecognizable data, which can be understood only by the intended recipient. This is how ...
                                                                                                                                    • Zoho Meeting

                                                                                                                                      What is Zoho Meeting? Zoho Meeting is a secure online meeting platform and webinar solution that helps people find new ways to collaborate and work remotely with efficacy. How to connect your Zoho Meeting account to Zoho Flow Select the trigger or ...
                                                                                                                                    • Zoho Flow app for iPhone

                                                                                                                                      Overview The Zoho Flow app for iPhone is your on-the-go solution for managing and monitoring your workflows. While Zoho Flow lets you to connect business applications and automate complex workflows seamlessly, with the Zoho Flow mobile app, you can ...
                                                                                                                                      Wherever you are is as good as
                                                                                                                                      your workplace

                                                                                                                                        Resources

                                                                                                                                        Videos

                                                                                                                                        Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                        eBooks

                                                                                                                                        Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                        Webinars

                                                                                                                                        Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                        CRM Tips

                                                                                                                                        Make the most of Zoho CRM with these useful tips.



                                                                                                                                          Zoho Show Resources