UiPath-ADAv1 Files, Folders, and Data Manipulation Practice Question
Exhibit
Error: System.IO.IOException: The process cannot access the file 'C:\Data\Report.xlsx' because it is being used by another process.
Refer to the exhibit. Your automation is failing with this error when trying to move a file. Which technique is most effective to resolve this intermittent access violation?
⚠ Common exam trap
Candidates often attempt to use a simple 'Delay' activity to wait for a file, which is inefficient and unreliable, failing if the application takes longer than the static delay.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Wrap the Move File activity in a Retry Scope with a short delay and a condition.
Intermittent file access errors are common when an external application has not yet released its handle on a file. Implementing a retry scope with a delay allows the process to wait for the file to become available. This pattern is essential in real-world scenarios where file generation speeds vary, ensuring the automation remains stable and does not fail due to external application latency.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Increase the timeout property on the Move File activity to 60 seconds.
Why it's wrong here
The Move File activity does not have a timeout property that makes it wait for file availability. It performs an immediate operation. If the file is locked, the activity will immediately throw an exception. Simply increasing settings on the activity itself will not resolve the underlying file lock issue.
- ✓
Wrap the Move File activity in a Retry Scope with a short delay and a condition.
Why this is correct
A Retry Scope allows the robot to repeatedly attempt an operation until it succeeds or a retry limit is reached. Adding a Delay activity within the loop ensures the robot waits for the file to be released, effectively handling intermittent file locks caused by external software still accessing the file.
- ✗
Use the Kill Process activity to force close all applications before moving the file.
Why it's wrong here
While this might solve the lock, it is an aggressive approach that could cause data loss in other applications. Killing processes blindly without checking if they are currently working on the specific file is poor practice and can lead to unstable system states or loss of unsaved user data.
- ✗
Change the file extension to .tmp before moving it, then rename it.
Why it's wrong here
Renaming a file that is currently locked by another process will result in the same IOException. The OS prevents any modification or movement of a file while an application has an open handle to it. This approach does not bypass the underlying file system lock enforced by the operating system.
Visual reference
About these practice questions
Courseiva writes every UiPath-ADAv1 question from scratch — 285 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official UiPath exam blueprint
This UiPath-ADAv1 practice question is part of Courseiva's free UiPath certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the UiPath-ADAv1 exam.