Configure Failure state in Circuit | Qntrl | Circuit | Online Help

Failure

The Failure state is also an end state that signifies the failure of the previous task executed in the circuit and stops its execution, marking it as a failure. It is used to represent a failed execution for the user's reference.
 
Example Use Case: In the employee onboarding case, specifically during the employee document verification stage, when the verification status indicates a failure, we can employ a Failure state to terminate execution along with an error message and reason for failure.

Builder View

To configure a Failure state to your circuit:

  1. In Builder Viewdrag and drop the Failure state from the left pane into your circuit or click the required Failure state in your Circuit.
  2. Under Configurationupdate the common state field attributes.
  3. You can add a specific Error Message and an optional Reason in the state for your reference that will be displayed in the execution response to help in debugging.
  4. In the Input/Output section, you can add the Result selector, to refine and filter the states' results.

There is no Next state for a Failure state since it is the last state for that path.
  


Code View

The below JSON is used in Code View and the equivalent fields for adding failure details are errorMessage and reason.


Failure state example:
"Offer Cancelled": {
"type": "failure",
"error_message": "Document verification unsuccessful",
"reason": "Documents submitted are invalid"
}






Next : Function state

    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









                                            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

                                                  Zoho Desk Resources

                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                    Zoho Marketing Automation

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

                                                                                                              • Error Handling

                                                                                                                In Qntrl Circuit, you can configure error handling while building a circuit. In most cases, state definition errors are detected even before saving the circuit, i.e. when you save the circuit, it runs a compilation check and lists out errors related ...
                                                                                                              • Success

                                                                                                                A Success state can be used to terminate an execution. It is used to represent a successful execution for the user's reference. As Success states are end states, they don't have any configuration or properties, such as Next state or End fields. So ...
                                                                                                              • Sample Use Cases

                                                                                                                Payment process In a typical payment process, for every purchase made, a payment link with the invoice will be shared with the purchaser. Upon successful payment, a receipt will be generated, and in the event of failure, the entire process will have ...
                                                                                                              • Branch

                                                                                                                The Branch state allows you to add conditions to the circuit's workflow, and execute tasks based on those conditions. It decides the path of the execution based on input to this Branch state. This is similar to having an 'If else' or 'switch' case. A ...
                                                                                                              • Test/Execute a Circuit

                                                                                                                Once you configured your circuit: You have options to either Save the Circuit or to Save and Execute the circuit. When you choose Save and Execute, a pop-up will appear with predefined JSON input. If required, you can edit the JSON input with the ...
                                                                                                                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