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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Failed to open Excel d...
Power Automate
Unanswered

Failed to open Excel document (File related error)

(1) ShareShare
ReportReport
Posted on by 17

documentPathSafe: Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Failed to open Excel document 'C:\Users\...' (File related error). ---> System.IO.FileNotFoundException: documentPathSafe
at Microsoft.Flow.RPA.Desktop.Modules.Excel.Actions.ExcelActions.<>c__DisplayClass10_0.<LaunchExcel>g__SetActiveWorkbook|1()
at Microsoft.Flow.RPA.Desktop.Modules.Excel.Actions.ExcelActions.LaunchExcel(Variant documentPath, Variant varPassword, Variant& excelInstance, Int32 launchMode, Boolean visible, Boolean loadAddInsAndMacros, Boolean needsAuthentication, Boolean readOnly, Boolean launchInNewInstance)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.Excel.Actions.LaunchExcel.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

 

 

PAD fails to open the downloaded Excel file. The file exists and is able to opened manually via File Explorer. This issue has only occurred after the most recent PAD update. I tried uninstalling and reinstalling both PAD and Excel, but the error still persists. Any suggestions?

Categories:
I have the same question (0)
  • rosssmith123 Profile Picture
    18 on at

    Try this methods to fix File related error-

     

    Reset the file associations of Excel.
    Disable the Hardware Graphics Acceleration.
    If the box to ignore DDE has been checked, disable it.
    Conduct a repair for Office.
    Disable your add-ins.

     

    Greeting,

    Ross Smith

  • Usmikeyl48 Profile Picture
    5 on at

    I have run into this issue as well, we updated PAD during the last week and now I am unable to call any excel file that was called using a wildcard. PAD is still able to call specific files, but not any using the wildcard pathway. 

     

    Mostly commenting so that when this get's solved I'll know.

  • Verified answer
    sboxenbaum Profile Picture
    17 on at

    Hello all,

     

    I found the solution to my problem. When calling the variable %DownloadedFile%, the filename extension (.xlsx, .csv, etc.) must be included. 

    sboxenbaum_0-1660573020340.png

    Prior to the update, the filename extension was not required when opening the Excel file.

  • sboxenbaum Profile Picture
    17 on at

    See the solution I posted. I hope this helps.

  • Usmikeyl48 Profile Picture
    5 on at

    Unfortunately I'm still getting the (File Related Error) even with the .csv finish on the file I wished to open. 

    I am glad you were able to get your thing fixed! I've created a lengthy work-around in the meantime.

  • Community Power Platform Member Profile Picture
    on at

    Thank you very much !

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard