cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HarshChauhan
Advocate I
Advocate I

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

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)

1 ACCEPTED SOLUTION

Accepted Solutions
HarshChauhan
Advocate I
Advocate I

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😊.

 

View solution in original post

16 REPLIES 16
MichaelAnnis
Super User
Super User

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

----
If my post has answered your question, please thumbs up and mark this post as a solution.

I also offer paid consulting services. If you would like to discuss this option, please feel free to DM me and we can set up a time to join a Zoom call and fix any issues you are having.

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

mgrachii
Resolver II
Resolver II

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

Checked Sir, It's Updated.

HarshChauhan
Advocate I
Advocate I

Even I have reinstalled Power Automate and WPS software.

 

Do anyone, have any other suggestion?

HarshChauhan
Advocate I
Advocate I

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😊.

 

Yes, pls.

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

jhaskamp
Frequent Visitor

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]%

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

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

mtassara
Frequent Visitor

I had a similar problem.  The flow run ok in some PCs but failed in others.  I updated the flow software to the newest version and that solved the problem!

 

Adlen
New Member

I too tried all the possible solutions and apparently, the cause for this error is hidden.

Trigger: If you see an issue with Win 32 in the error message.

Cause: When Windows is updated it creates a text file named 'Program' in the C drive. This apparently occurs only in the updates of 2022 onwards.

Solution: All you need to do is delete that text file. ugh...  Follow this link to get more details: https://stackoverflow.com/questions/50970449/error-800700c1-in-instantiating-an-object-for-microsoft...

That's odd, because I updated the flow software to the newest version and it caused my problem.

@phuft - curious if you ever figured out the issue - I too have had the issue randomly appear after running a PAD flow for 9-months with no error - the only change was the PAD updates. Very frustrating!

phuft
Regular Visitor

This happened multiple times to me, and I tried all the steps mentioned above, starting with uninstalling and reinstalling the web extension for Edge. (It is confusing because the newest version of the extension icon is always greyed out, so I'm not sure if it is actually on.)

The first time I was able to find that text file mentioned in Adlen's post, and that worked.

The second time I reinstalled the extension, then in the flow I copied the offending step, deleted the original step, and pasted it back in in the same spot. (That is my goto for fixing steps that break for no reason, and it often works.)

The third time I reinstalled the extension and then restarted the machine and that seemed to do the trick. 

Unfortunately, there is no rhyme nor reason that I can see, other than that the updates seem to cause the problem.

mstjohnsomc
Helper I
Helper I

@phuft appreciate your response - FYI - My issue was some Update was causing ONE DRIVE Sync to "keep the file OPEN". So I moved the file to users\publilc directory (instead of the ODB location) and now having NO ISSUE! 

Helpful resources

Announcements

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!    

Welcome to the Power Automate Community

You are now a part of a fast-growing vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun.   Now that you are a member, you can enjoy the following resources:   Welcome to the Community   News & Announcements: The is your place to get all the latest news around community events and announcements. This is where we share with the community what is going on and how to participate.  Be sure to subscribe to this board and not miss an announcement.   Get Help with Power Automate Forums: If you're looking for support with any part of Power Automate, our forums are the place to go. From General Power Automate forums to Using Connectors, Building Flows and Using Flows.  You will find thousands of technical professionals, and Super Users with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Automate community forums. Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered. Galleries: The galleries are full of content and can assist you with information on creating a flow in our Webinars and Video Gallery, and the ability to share the flows you have created in the Power Automate Cookbook.  Stay connected with the Community Connections & How-To Videos from the Microsoft Community Team. Check out the awesome content being shared there today.   Power Automate Community Blog: Over the years, more than 700 Power Automate Community Blog articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on the future of process automation. In the Power Automate Community Blog, you can read the latest Power Automate-related posts from our community blog authors around the world. Let us know if you'd like to become an author and contribute your own writing — everything Power Automate-related is welcome.   Community Support: Check out and learn more about Using the Community for tips & tricks. Let us know in the Community Feedback  board if you have any questions or comments about your community experience. Again, we are so excited to welcome you to the Microsoft Power Automate community family. Whether you are brand new to the world of process automation or you are a seasoned Power Automate veteran - our goal is to shape the community to be your 'go to' for support, networking, education, inspiration and encouragement as we enjoy this adventure together.     Power Automate Community Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (6,214)