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 / Failed to Open Excel D...
Power Automate
Answered

Failed to Open Excel Document - PAD Issue after Update

(0) ShareShare
ReportReport
Posted on by 17

After the most recent update, I am having issues with a PAD launching Excel, and I previously have not had issues with this. I am downloading a file and launching the file (referencing the file as a variable). 

 

The flow gets to the point of opening the file, and a grey screen from Excel opens and then closes before giving the below error. Any tips? Anyone else having issues with this given the update? I have restarted, and repaired PAD to no avail.

 

Thanks. 

 

Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Failed to open Excel document 'INSERT FILE PATH' (File related error). ---> System.IO.FileNotFoundException: documentPathSafe
at Microsoft.Flow.RPA.Desktop.Modules.Excel.Actions.ExcelActions.<>c__DisplayClass11_0.<LaunchExcel>g__SetActiveWorkbook|1()
at Microsoft.Flow.RPA.Desktop.Modules.Excel.Actions.ExcelActions.LaunchExcel(Variant documentPath, Variant readPassword, Variant writePassword, 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)

I have the same question (1)
  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Just to clarify, did you manually remove the file path for this post? as it's showing the file path as "INSERT FILE PATH"

     

  • Verified answer
    hoosier_nyc Profile Picture
    17 on at

    Yes - I replaced the actual path with that. I just figured it out though. I originally had built the bot so to open the variable file in excel, I had to type in the file extension in PAD after the variable. But post the update it seems that PAD now picks up the file extension from the variable, so the hard coded file extension is no longer needed. Once I remove the extension and leave the reference to the variable, it works as intened. Weird change but I got it working now.

    Thanks!

     

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Sweet!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard