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 questionsDomain Develop solutions
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.
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.
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.
Keep practicing
Take the free PL-500 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PL-500 practice questions
- Question 1You are developing automation solutions that process sensitive employee data for a compan…
- Question 7Note: This question is part of a series of questions that present the same scenario. Each…
- Question 10You need to resolve the issue with the DataCollector flow. What are two possible ways to …
- Question 11You need to configure the RailStatusUpdater cloud flow. What should you do?
- Question 12You are creating a cloud flow that will use two Update Row actions to interact with Micro…
- Question 13Note: This question is part of a series of questions that present the same scenario. Each…
