PL-500 practice question 18 of 25

You have an automation solution that uses a desktop flow. The flow reads data from a file that is stored on UserA’s machine and writes data to an…

Full set: 173 questions

Domain Develop solutions

You have an automation solution that uses a desktop flow. The flow reads data from a file that is stored on UserA’s machine and writes data to an application. You import the solution to an environment that is connected to UserA’s machine. UseerB report that the flow fails. An alert indicated that the path to thee the file does not exist. You conform that the file is present on userB’s desktop. You need to resolve the issue. What should UserB Do?
Answer options
A: Delete and recreate the file.
B: Change access rights for the file to allow read operations for the PAD process.
C: Change the location of the file to a specific path that is not dependent on the signed-in user. Correct answer
D: Modify the action to retry if the process cannot find the file.
Correct Answer:
C. Change the location of the file to a specific path that is not dependent on the signed-in user.
Explanation

The error "path to the file does not exist" for UserB, even though the file is on their desktop, indicates the desktop flow contains a hardcoded file path specific to UserA's profile (e.g., C:\Users\UserA\Desktop\file.txt). This path is invalid when UserB executes the flow. To resolve this, the file should be moved to a location that is not tied to a specific user profile, such as C:\Automation\InputFiles\. The flow must then be updated to reference this static, shared path. This makes the automation portable and ensures it can be run successfully by any authorized user on the machine.

Why Incorrect

A. Delete and recreate the file. This action does not alter the incorrect, hardcoded path inside the flow, so the automation will continue to fail.
B. Change access rights for the file to allow read operations for the PAD process. The error message is "path... does not exist," which points to an incorrect path, not an "access denied" or permissions issue.
D. Modify the action to retry if the process cannot find the file. A retry mechanism is for intermittent or transient errors. It will not resolve a persistent configuration error like a fundamentally incorrect file path.

References

1. Microsoft Learn, Power Automate Documentation, "Use environment variables in Power Automate for desktop." This document emphasizes avoiding hard-coded input parameters. It states, "To avoid hard-coding connection strings and input parameters, you can use environment variables." Using a static, non-user-dependent path (as suggested in option C) is a direct application of this principle to make the automation's configuration independent of the execution environment or user.

2. Microsoft Learn, Power Automate Documentation, "Build resilient automation with Power Automate for desktop." In the "Best practices" section, it advises on creating automations that can handle different environments. A key aspect of this is ensuring that dependencies, such as file paths, are not specific to the developer's machine or user profile, which directly supports using a common, accessible path.

3. Microsoft Learn, Power Automate Documentation, "Error handling in Power Automate for desktop." This document details error handling strategies. The "Retry action if an error occurs" option is designed for actions that "might occasionally fail due to different reasons, such as network drop-downs." It is not intended to fix a static configuration error like an invalid path.

Scroll to Top