Testing and Debugging Flows

Testing and Debugging Flows

With our testing and debugging tools, you can see more information about why a particular submission failed. You can also learn more about how flows are constructed and use what you've learned to build and test your own flows with our Flows SDK. You can use this information to troubleshoot halted submissions and failed flows in your production or development environments, or you can view it in a development instance as part of your flow-testing process.

Viewing execution details for a flow run

You can access the execution details for a particular flow in the following ways.

From the details page for a submission

  1. Click Submissions, and click on the name of the submission you'd like to view flow-execution details for.
  2. Click Actions, and then click View Flow Run.

From the Flow Runs page

  1. Go to the Flow Runs page (Flows > Flow Runs).
  2. Find the flow in the Flow Runs table, and click its Flow Run ID.

Note that you need the View Flow Executions permission to access the Flow Runs page, which is given to users in the System Admin and Business Admin permission groups by default.

From the Jobs page

  1. Go to the Jobs page (Administration > Jobs).
  2. Make sure Flows is selected in the drop-down menu at the top of the page.
  3. Click on the ID of the flow run that you want to view details for.

Note that you need the View Jobs permission to access the Jobs page, which is given to users in the System Admin permission group by default.

Navigating the Flow Run page

The Flow Run page has the following parts:

Debugging — The links in the top section of the left-hand sidebar show flow-level details that can help troubleshoot the flow’s execution:

Overview — The left-hand sidebar shows metadata for the submission or flow run.

If you access the Flow Run page from either the Flow Runs page or Jobs page, the Overview section contains the following metadata:

If you access the Flow Run page from a submission’s details page, the Overview section contains the following metadata:

Flow-run diagram — The upper-right panel shows a diagram of the flow.

Data — The Data panel can show either flow-level or block-level information.

Block-level data — By default, the Data panel shows details for the block currently selected in the flow-run diagram. Click on a block in the diagram to see its details in the Data panel. The panel contains the following tabs when a block is selected:

Flow-level data — If you click either of the View links in the Debugging section of the page, the Flow Runtime Errors, Flow Input, and Flow Output tabs appear in the Data panel. To learn more about these tabs, see the Debugging portion of this article.

You can copy any of the data shown in the Data panel by clicking Copy in the upper-right corner of the panel.

Retrying a submission

If you access the Flow Run page from a submission’s details page, you can retry the submission by clicking Resubmit submission in the upper-right corner of the page. This action will generate a new, separate submission using the same input as the submission you’re currently viewing flow-run data for.