Skip to content

Latest commit

 

History

History
144 lines (94 loc) · 8.03 KB

fix-flow-failures.md

File metadata and controls

144 lines (94 loc) · 8.03 KB
title description services suite author ms.subservice ms.topic ms.date ms.author ms.reviewer search.audienceType ms.collection
Troubleshoot a cloud flow
Learn how to resolve some of the most common reasons why flows fail.
flow
DBEKI
cloud-flow
conceptual
10/09/2024
dbekirop
angieandrews
flowmaker
enduser
bap-ai-copilot

Troubleshoot a cloud flow

This article contains tips and tricks for troubleshooting cloud flows.

Identify specific flow runs

Once you build and deploy your flows, you might need to debug specific flow runs to confirm that your flow ran as expected. By default, the flow owner can look at the Start, Duration, and Status columns in the run history view in Power Automate to help them identify the flow run they're interested in debugging. The owner can also expand the troubleshooting section to identify the specific run in which they're interested, however, for flows that run frequently, this can be time-consuming.

To make it more efficient to identify flow runs when debugging, Power Automate provides the ability for flow owners to configure the list of columns that displays on the run history page for each flow run. These columns map to the trigger outputs for your flow. When you display the columns you want, you save time since you see the relevant columns by default on the run history view.

Follow these steps to add one or more columns to your run history view.

  1. Sign in to Power Automate.

  2. On the left side of the screen, select My flows.

  3. Select the flow for which you want to get more details.

  4. On the flow details page, select Edit columns.

  5. Select the columns that you want to add to your run history view for the flow that you selected, and then select Save.

  6. View the list of columns that displays on the run history view for the flow you selected.

    The hasAttachments and isHTML columns are now visible for the flow so that you can quickly see those values to help you debug the flow.

    :::image type="content" source="./media/triggers-introduction/new-columns-run-history-view.png" alt-text="Screenshot of the columns that display on the run history view for the flow you selected.":::

Tip

You can also configure the list of columns that displays with the All runs view.

Repair tips in email

Repair tips are sent to flow owners via email whenever a cloud flow fails. These repair tips emails contain specific, actionable feedback about certain errors. For example, one common error is setting up a cloud flow that attempts to get a person’s manager in Office 365—but there's no manager configured in Microsoft Entra ID. If this or several other conditions cause your flow to fail, you get a repair tips email.

The repair tips email contains the following sections:

Name Description
Time Displays the time the flow first failed.
What happened Provides a description of the problem that caused the failure in the flow.
How do I fix Provides tips for resolving the issue that caused the failure in the flow.
Troubleshooting tips Provides details including the number of times the flow failed, and a link to retry the flow with the same input data.

To fix the reported errors, select Fix my flow and follow the steps in the repair tips email.

Repair tips emails are optional. If you don't want to receive them, turn them off from the properties menu for the specific flow.

If your flow fails, you can also troubleshoot it directly in Power Automate. Here are some common failure scenarios and tips on how to fix them.

Identify the error

Follow these steps to find the error and learn how to fix it,

  1. Select My flows.

  2. Select the flow that failed.

  3. In the 28-day run history section, select the date of the failed run.

    Details about the flow appear, and at least one step shows a red exclamation icon.

  4. Open that failed step, and then review the error message.

    On the right pane, you can see the details of the error and how to fix it.

    Error message for a failed flow run.

Authentication failures

In many cases, flows fail because of an authentication error. If you have this type of error, the error message contains Unauthorized or an error code of 401 or 403 appears. You can usually fix an authentication error by updating the connection:

  1. On the right pane below How to fix, select View Connections.

  2. Scroll to the connection for which you saw the Unauthorized error message.

  3. Next to the connection, select the Fix connection link in the message about the connection not being authenticated.

  4. Verify your credentials by following the instructions that appear.

  5. Return to your flow-run failure, and then select Resubmit.

    The flow should now run as expected.

Troubleshoot in Copilot

The new troubleshoot in Copilot feature in Power Automate can assist you in identifying and resolving errors that might occur during the testing of cloud flows or when reviewing flow run history. You can use this Copilot feature when the new designer experience is enabled.

Troubleshooting in Copilot provides a human-readable summary of the error and, when possible, attempts to provide a solution to correct the error. This can greatly enhance your experience by reducing the time and effort required to troubleshoot and resolve issues.

Note

The troubleshooting in Copilot feature might not work in all scenarios. The good news is, it’s continuously learning and improving over time, which means its ability to assist users and resolve issues only gets better. This is a great example of how AI and machine learning can be leveraged to improve your experience and productivity.

:::image type="content" source="./media/fix-flow-failures/troubleshoot-copilot.png" alt-text="Screenshot of a troubleshooting in Copilot suggestion for fixing a failed flow run.":::

Action configuration

Flows also fail if a setting in an action of the flow doesn't function as expected. In this case, the error message contains Bad request or Not found, or an error code of 400 or 404 appears.

The error details should specify how to correct the failure. To update the configuration:

  1. Select Edit and then correct the problem inside the flow definition.
  2. Save the updated flow.
  3. Select Resubmit to try the run again with the updated configuration.

Other failures

If the error code 500 or 502 appears, the failure is temporary or transient. To try the flow again, select Resubmit.

Get help from support or the community

When you need help, you can use our Self Help options, or you can Ask for help from others.

Self help

The Power Automate Support site offers you several self help options.

  1. Go to Power Automate Support.
  2. In the Self Help category, select Learn, Samples, or Documentation.

Ask for help from others

  1. Go to Power Automate Support.

  2. In the Ask for help section, select Contact support.

  3. Type or select the environment to help identify the issue.

  4. To search recommended solutions, complete the Tell us what you need help with field, and then select the right arrow next to the field.

  5. If you found your solution, select Yes in the Were these solutions helpful field.

  6. If you don't find a solution, select Ask virtual agent.

  7. In the Virtual Agent screen, type your message, and then select Send.

  8. If you need more help from others, return to the Power Automate Support, and select Community.

    On the Microsoft Power Automate Community page, you can customize your search and get answers and tips directly from other Power Automate users.

Related information

Training: Best practices for error handling in Power Automate flows (module)

[!INCLUDEfooter-include]