Skip to main content
Question

can not open excel files

  • Nov 9, 2026 5:51 AM UTC
  • 3 replies
  • 91 views

I cannot open Excel files using the Excel Advanced: Open action.
Could you please tell me how to solve this issue?

3 replies

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+6
  • Automation Anywhere Team
  • Nov 9, 2026 2:20 PM UTC

​@TKD-M The error says that it was an “unknown error”. A couple possible solutions:

  1. Check the file itself for corruption. Make sure it opens correctly in Excel.
  2. Make sure you don’t have the file open in Excel when running the automation.
  3. In a worse-case scenario, you may have to perform a refresh of your installation of Microsoft Office. You do not need to remove it, just perform a refresh, kind of like installing on top of itself to fix any missing/corrupted/unregistered files.

Check those things first, then we can move onto other ideas if necessary.


bkdabb
Cadet | Tier 2
Forum|alt.badge.img
  • Nov 11, 2026 7:06 PM UTC

​@TKD-M The error says that it was an “unknown error”. A couple possible solutions:

  1. Check the file itself for corruption. Make sure it opens correctly in Excel.
  2. Make sure you don’t have the file open in Excel when running the automation.
  3. In a worse-case scenario, you may have to perform a refresh of your installation of Microsoft Office. You do not need to remove it, just perform a refresh, kind of like installing on top of itself to fix any missing/corrupted/unregistered files.

Check those things first, then we can move onto other ideas if necessary.

#1 has been the main culprit 99% of the time for me whenever I run into this issue.  This is the first check I do whenever I see an Excel file fails to open


KhaledMostafaMe
Most Valuable Pathfinder
Forum|alt.badge.img+2
  • Most Valuable Pathfinder
  • Nov 12, 2026 8:17 PM UTC

@TKD-M  The "unknown error" is a generic wrapper around a failure in the Excel COM layer, so the fix is in the file or the Excel environment, not in your bot logic.
 

Here is how I would narrow it down:

  1. Check the file and its path. Open the same file manually in Excel with no other copy open. A zero-byte file or a file name containing %20 (a space in a network path) produces this exact error, because the bot passes the encoded path to Excel and Excel cannot find the file.

  2. Check that Excel itself works. Right-click the desktop, choose New, and confirm that "Microsoft Excel Worksheet" appears. If it does not, reinstall or run an online repair of Office. A 32-bit Office install on a 64-bit OS (or the reverse) also breaks COM calls, so match the Office bitness to your OS.

  3. Check the Excel Advanced package version. In Control Room, set the package version to Default. This matters most after an upgrade of Control Room or Office.
     

The full list of causes and fixes for this error is in this A-People article: A360 | Error: An unknown error occurred when executing the 'OpenExcel' command.

Could you tell me whether the same file opens by hand on the machine that runs the bot, and whether the path is local or on a network share? That will tell us which step to focus on.