web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Random File.ReadFromCs...
Power Automate
Unanswered

Random File.ReadFromCsvError error when running a Power Automate Desktop flow in unattended mode.

(0) ShareShare
ReportReport
Posted on by 12

If i manually run the process in PAD it is perfect every time, but when i run via a scheduled Power Automate Cloud flow, it is hit and mis, full error is:

 

Problem while executing action 'ReadCSV'. Import failed. Error while parsing

Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Import failed. Error while parsing ---> System.IO.FileNotFoundException: Could not find file 'C:\Users\#######\#####\Business Intelligence - Power Automate\Unpaid Direct Debits\Test.csv'.
at Microsoft.VisualBasic.FileIO.TextFieldParser.ValidatePath(String path)
at Microsoft.VisualBasic.FileIO.TextFieldParser.InitializeFromPath(String path, Encoding defaultEncoding, Boolean detectEncoding)
at Microsoft.Flow.RPA.Desktop.Modules.File.Actions.ReadFromCSVFileAction.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.File.Actions.ReadFromCSVFileAction.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

 

i have hashed out parts of the path but they are correct (tested by creating a shortcut directly from the path and it opens). The issue i have is that, in unattended mode, it sometimes works but regularly fails.

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @waltz313 

     

    Error says file is not exists in the given path "C:\Users\#######\#####\Business Intelligence - Power Automate\Unpaid Direct Debits\Test.csv".

     

    It's advisable to condense the file path, reducing its length (if its lengthy), and ensure to check if the file exists before attempting to open the URL. and also add some wait duration 

     

    Deenuji_0-1714123235355.png

     

    If possible share some screenshot of your flow, so that we can understand bit deeper on the reported issue.


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • Jacksonong2020 Profile Picture
    21 on at
    Hi, 
     
    I have the same issue. The file exists and in there, when I use attended bot the files runs correctly, but when it run unattended, the file cannot be found.
     
    I have already added a file check to check if file exists, and put in a delay loop to wait until file exists. 
     
    there is no error if I were to run it attended, only unattended the file cannot be found. File path is also not long, the file is on sharepoint folder. 
     
     
  • Jacksonong2020 Profile Picture
    21 on at
    Hi all,
     
    I found out the problem with unattended machine. For Excel file, the open excel function on power automate desktop will wait for the file to be loaded and downloaded from sharepoint, but CSV, the files doesnt wait for the file to arrived.
     
    Solution : On the folder that the bot is reading, always Keep on this device.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 202

#3
David_MA Profile Picture

David_MA 180 Super User 2026 Season 2

Last 30 days Overall leaderboard