Solving Errors in Canvas App: 4 Steps

Identifying Source Expressions or Formulas in Your App

Question

You have problems with your published canvas app.

You want to identify the source expressions or formulas in your app that have errors.

What four steps should you take to solve your problems?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E. F. G.

Correct Answers: A, C, E and G

To troubleshoot an app, you need to use the Power Apps Monitor.

A Monitor is a tool that provides a view of the real-time events during your app execution.

You can also use the Monitor during your app development.

The Monitor helps to debug your app and faster localize code problems.

When you need to narrow the errors to the source expressions or formulas, you can turn on the canvas app setting “Debug published app” (Number 3) in the app's Settings (Number 1) under the “Advanced settings” section (Number 2).

3! Power Apps

S Settings

Name + icon
New
Change the name, icon, and description PP debug x All
Open Screen size + orientation i
a Advanced settings
Change the aspect ratio and orientation
a . Debug published app
3 Advanced settings
Change the preview & experimental Publish debug information with the app. This enables app expressions and
Connections ( feature settings additional debug information to be displayed in the monitor tool when

debugging your published app. If you enable or disable this feature, save and

publish your app for it to take effect.
=
Flows & On @

Settings @

Save
Save as
Share

Collections
Media
Variables

Close

Then you can select your published canvas app in the Power Apps portal and click on the "Monitor" button in the top toolbar or select the three dots for the "More commands" and then the "Monitor" item.

You launch your app from the Monitor screen by clicking on the "Play published app" (Number 1)

The Power Platform opens a new screen with the app for you to interact.

After you finish your operations, you can switch back to the Monitor window and see the operations' timeline and results.

When you click on the operation that involves formula, on the Details panel (Number 2), you can review the insights and formula source on the Formula tab (Number 3).

Co nN OO MO SPW PY —

eo)

KeyAttributeCollection collKey = new KeyAttributeCollection();
collKey.Add("emailaddress", "“infor@cbindustries.com");

collKey.Add("businessphone", 1234-56-78");

Entit

customer = new Entity("customer", collKey);

customer["lastname"] =

customer["jobtitle"] = "CTO";

UpsertRequest request = new|UpsertRequest () 0

{ Target = customer };

G is)
Upse -tnesponsel TE AEE] = |(UpsertResponse) service. Execute( request);

All other options are incorrect.

For more information about using the Monitor and other debugging tools, please visit the below URLs:

If you are experiencing issues with your published canvas app and want to identify the source expressions or formulas that are causing the problem, you can follow these four steps:

  1. Turn on Debugging: The first step is to turn on the Debugging option for your published app. This option will allow you to see the errors and messages that are generated when the app runs. To turn on Debugging, go to the app settings and select the "Advanced" tab. From there, turn on the "Debug" option.

  2. Play the app: Next, play the app and try to replicate the error or issue you are experiencing. This will generate messages in the Debug panel that will help you identify the problem.

  3. Open the Debug panel: Once you have replicated the error, open the Debug panel by clicking on the "Debug" button in the top right corner of the screen. This will display the error messages and allow you to see which expressions or formulas are causing the problem.

  4. Use Application Insights or Azure Monitor: If you are still having trouble identifying the source of the error, you can use Application Insights or Azure Monitor to gather more information about the app's performance. These tools can provide you with detailed logs and telemetry data that can help you diagnose the problem.

Note that in the provided answer, only steps A, C, D, and G are relevant to this scenario. Steps B, E, and F relate to monitoring and analyzing app performance, but are not directly relevant to identifying the source of expression or formula errors in a canvas app.