Troubleshooting Canvas App Errors

Identifying Source Expressions and Formulas | PL-400 Exam | Microsoft Power Platform Developer

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

parent.Xrm.WebApi. retrieveMultipleRecords("contact",'"?$select=fullname, emailaddressi&$top=3").then(
function success(result) {
for (var i = 0; i < result.entities. length; i++) {
alert(result.entities [i].fullname) ;
// perform additional operations on retrieved records

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:

To identify the source expressions or formulas in a published canvas app that have errors, you can follow the following four steps:

  1. Turn on Debug published app: In the Power Apps studio, go to the File menu and select App settings. In the App settings, go to the Advanced settings tab and turn on the Debugging option.

  2. Play published app: Open the published app and try to reproduce the issue. This will generate error logs that can be used to identify the source of the error.

  3. Open Monitor: Go to the Power Apps portal and open the Monitor. This will show you the telemetry data generated by your app.

  4. Open Application Insights: In the Monitor, you can select the App insights option to open the Application Insights. This will give you more detailed information about the errors, including the source expressions or formulas that have issues.

Therefore, the correct steps to identify the source expressions or formulas in a published canvas app that have errors are to turn on Debug published app, play published app, open Monitor, and open Application Insights.