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
Answered

Failed to open Excel document '(Excel launching error.)'.

(0) ShareShare
ReportReport
Posted on by 52

Last Night It was working Fine, Today I haven't changed any settings and don't know why it not working.
Failed to open Excel document '(Excel launching error.)' . - Subflow: Main, Action: 1, Action name: Launch ExcelFailed to open Excel document '(Excel launching error.)' . - Subflow: Main, Action: 1, Action name: Launch Excel

 

DetailsDetailsError Message:- 
Microsoft.Flow.RPA.Desktop.Robin.SDK.ActionException: Failed to open Excel document '(Excel launching error.)' . ---> System.ArgumentNullException: Value cannot be null.
Parameter name: type
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
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)
--- 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 (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Go to Task Manager, find any Excel, right click and End Task.  Make sure they are all gone.  Then try to rerun.

  • HarshChauhan Profile Picture
    52 on at

    I tried closing all excel tasks. Also, I restarted the laptop, Still Not Working. 

  • mgrachii Profile Picture
    206 on at

    Do you have installed the most recent version of Power Automate for DEsktop?

  • HarshChauhan Profile Picture
    52 on at

    Checked Sir, It's Updated.

  • HarshChauhan Profile Picture
    52 on at

    Even I have reinstalled Power Automate and WPS software.

     

    Do anyone, have any other suggestion?

  • Verified answer
    HarshChauhan Profile Picture
    52 on at

    Finally, I got the Solution. This Works for me, I hope it works for you too.
    🎆🎆🎆🎆🎆🎆🎆🎆🎆🎆🎆🎆🎆🎆🎆🎆🎆🎆🎆🎆🎆🎆🎆

    Step 1:- Use "Run Application" Action As shown in the Images below.
    Solution for Excel Error In Power Automate DesktopSolution for Excel Error In Power Automate Desktop

     

    The Problem:-  WPS Software was asking for Make it default setting for opening all office files and power automate was unable to handle it. so when the application opened I clicked on "Don't ask me again" and now its's working. Maybe your software is asking for any permission, or update. so check it ones. Hopefully, I have explained it well.

    Don't forget to try other basic solutions like
    1. Restart PC
    2. Repairing Both Software(Office and Power Automate). Repair by offline and online Both.
    3. Check if your PC OS and software are updated.

    4. Try to "End Task" all excel processes in Task Manager before starting power automate.


    Thank you everyone for helping me 😊.

    ---------------------------------------------------

    Edit On 1-July-2022

    Reinstalling Software always works. Also, try to uninstall the software entirely because sometimes software keeps a few files(like cache, obsolete files, logs) on your PC.

     

    Before uninstalling any software make sure to save your document files somewhere safe. You can also create a restore point in windows and Backup your files in external storage to be extra safe😊.

     

  • HarshChauhan Profile Picture
    52 on at

    Yes, pls.

    It's always better to work with updated software than outdated.

  • jhaskamp Profile Picture
    6 on at

    For me this was due to the variable of the path being in a list so I had to set excel to open a file with name of %Excel_File_Path[0]%

  • Sheridon Profile Picture
    5 on at

    Been having the same issue since i updated PAD @HarshChauhan  did restarting work, i have restarted multiple times and i use a "terminate process EXCEL" before and after opening excel but i still get an error

  • Dion_tw Profile Picture
    66 on at

    I got the exact same thing since i updated PAD yesterday. Very strange and frustrating..

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard