Canvas Apps – Track errors in Custom Connector or Power Automate Flow call
Image Source:
Power Automate
Jun 19, 2023 8:30 AM

Canvas Apps – Track errors in Custom Connector or Power Automate Flow call

by HubSite 365 about Suparna Banerjee

Cloud Solution Architect at Microsoft UK | Power Platform

Citizen DeveloperPower AutomateLearning Selection

To enable Error handling in a Canvas App, we need to turn on the Preview Feature Formula Level Error Management from Settings>Upcoming Features>Preview Get Cust

This article provides a guide on tracking errors in custom connectors or Power Automate Flow calls from a Canvas App. Error handling is crucial for providing user-friendly messages and carrying out necessary actions when errors occur.
To enable error handling in a Canvas App, the Preview Feature Formula Level Error Management has to be turned on. The article shows how to track error details from another service like Power Automate Flow or Custom Connector.

For a Custom Connector, a connector is created with the Azure Open AI Service. If an error occurs (e.g., if the token limit is exceeded), the error message is passed to the Canvas App by parsing the JSON response of the custom connector.
To track errors from a Power Automate Flow, one can track the output of any action using expressions. A simple flow triggered from the Canvas App can get details like the Email ID. If the flow fails, the "actions" expression captures details as JSON. The error message is then retrieved, set up in a variable, and sent back to the Canvas Apps to display as a notification.

In both cases, specific code snippets are written in the "OnSelect" event of the relevant Canvas App button. This allows for capturing and displaying the error messages from the Custom Connector or Power Automate Flow.

More about Canvas Apps and Error Handling

Canvas Apps offer a powerful way to develop custom connectors and Power Automate Flows. With the introduction of Formula Level Error Management, developers can now handle errors efficiently during runtime. This feature helps in preventing crashes and allows for better user experience while working with complex data resources like APIs. By integrating Azure Open AI Service as a Custom Connector, we can ensure seamless data processing and management, making our Canvas App robust and efficient.


Read the full article Canvas Apps – Track errors in Custom Connector or Power Automate Flow call

Learn about Canvas Apps – Track errors in Custom Connector or Power Automate Flow call

Canvas Apps are a powerful way to create applications that can be used to track errors in Custom Connector or Power Automate Flow calls. To enable error handling, users must turn on the Preview Feature from the application's settings. This feature allows users to manage errors at a formula level.

Users can also enable custom connector error details in a Canvas App. This requires creating a custom connector with parameters such as api-version, prompt and max_tokens. The result should be in JSON format, and the value of the choices>text should be picked up in a variable within the Canvas App. If the max token limit is exceeded, the custom connector will throw an error. This error should be passed into the app in order for it to be handled properly.

Error handling is an important part of creating applications with Canvas Apps. By understanding how to enable and manage errors in Canvas Apps, users will be able to create more reliable and secure applications.

More links on about Canvas Apps – Track errors in Custom Connector or Power Automate Flow call

Power Apps - Error Handling for APIs - Never Stop Learning
Mar 1, 2021 — Error Handling in Power Apps for Custom APIs can be easy by using IfError like a Try-Catch-Block. I show you this in a short example...
3 Power Automate Error-Handling Patterns You Must Know
Oct 30, 2022 — Learn to use these 3 Power Automate error-handling patterns: 1. Try, Catch Finally, 2. Terminate Actions, 3. Get the Flow Run URL.
How to use custom connectors in Power Apps - Help Center
Jan 13, 2023 — 1. Navigate to Power Apps and select +Create from the side menu, then choose Blank app > Blank canvas app. · 2. Search for your new connector in ...
Power Platform custom connector works in flows but not in ...
Jun 24, 2022 — When I try to use the same connector in a canvas app, nothing seems to happen. There are no error messages either and the monitor indicates ...
10 tips I wish to know before I've started with PowerApps
Protip #1: If you're beginning with PowerApps focus on templates with the “Canvas app” label. Protip #2: There are two app templates you can't miss: ...
DLP Violation for ALM Accelerator for Advanced Maker ...
Apr 21, 2021 — After I Imported Power Platform DevOps ALM Solution and when I open the Canvas App it throws DLP violation error. I have added the custom ...
Call a Flow from Canvas Power App and get back response
Apr 29, 2021 — Summarizing how you can call a Flow from a Canvas App and read back the response sent by the Flow.


Canvas Apps, Custom Connector Error, Power Automate Flow Call, Formula Level Error Management, Preview Feature, Open AI Service