- Release Notes
- Getting Started
- Setup and Configuration
- Automation Projects
- Dependencies
- Types of Workflows
- File Comparison
- Automation Best Practices
- Source Control Integration
- Debugging
- The Diagnostic Tool
- Workflow Analyzer
- About Workflow Analyzer
- ST-NMG-001 - Variables Naming Convention
- ST-NMG-002 - Arguments Naming Convention
- ST-NMG-004 - Display Name Duplication
- ST-NMG-005 - Variable Overrides Variable
- ST-NMG-006 - Variable Overrides Argument
- ST-NMG-008 - Variable Length Exceeded
- ST-NMG-009 - Prefix Datatable Variables
- ST-NMG-011 - Prefix Datatable Arguments
- ST-NMG-012 - Argument Default Values
- ST-NMG-016 - Argument Length Exceeded
- ST-DBP-002 - High Arguments Count
- ST-DBP-003 - Empty Catch Block
- ST-DBP-007 - Multiple Flowchart Layers
- ST-DBP-020 - Undefined Output Properties
- ST-DBP-023 - Empty Workflow
- ST-DBP-024 - Persistence Activity Check
- ST-DBP-025 - Variables Serialization Prerequisite
- ST-DBP-026 - Delay Activity Usage
- ST-DBP-027 - Persistence Best Practice
- ST-DBP-028 - Arguments Serialization Prerequisite
- Variables
- Arguments
- Imported Namespaces
- Recording
- UI Elements
- Control Flow
- Selectors
- Object Repository
- Data Scraping
- Image and Text Automation
- Automating Citrix Technologies
- RDP Automation
- SAP Automation
- VMware Horizon Automation
- Logging
- The ScaleCoordinates Migration Tool
- The ScreenScrapeJavaSupport Tool
- The WebDriver Protocol
- StudioPro
- Extensions
- Troubleshooting
Studio User Guide
Microsoft Office Interop Issues
Various errors may occur when you build or run automations with Microsoft Office applications, especially Excel.
-
One of the following errors occurs when you are configuring an activity in the StudioX profile and you select Indicate in Excel in the Plus menu:
- Error opening workbook. Make sure Excel is installed.
-
Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)).::
- An Excel activity runs and the following error occurs:
Error opening workbook. Make sure Excel is installed. Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass' to interface type 'Microsoft.Office.Interop.Excel._Application'.
- The following error occurs when a Word activity runs:
Error opening document, make sure Word application is installed. If already installed, an Office Repair may be required.
- The following error occurs when an Outlook activity runs, or when you are configuring an activity in the StudioX profile and you are trying to access Outlook data such as folders or accounts from the Plus menu:
Property accessor 'Account' on object 'UiPath.Mail.Activities.Business.OutlookApplicationCard' threw the following exception:'Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.ApplicationClass' to interface type 'Microsoft.Office.Interop.Outlook._Application'...
Microsoft Office installation issues may result in incorrect COM Interop configurations in the Windows registry. For example, this may happen if:
- Microsoft Office is installed, then removed, and then an older version of Office is installed.
- With Office already installed, Skype for Business is installed, which comes with different Office components than the ones in the already installed version of Microsoft Office.
.reg
file that you can deploy to other machines.
-
Select Home (Studio Backstage View) > Tools > Repair
Tool for Microsoft Office Interop. The repair tool opens.
- Using the tabs at the top of the window, select the Microsoft Office application to repair: Excel, Outlook, Word, or PowerPoint.
- The tool automatically detects the application installation path, version, and whether it is a 32-bit or 64-bit version. Verify that the information is correct, and make adjustments if needed.
-
Click Generate repair plan. A list of actions to be performed is displayed.
- Select one of the following
options:
- Create a .REG file
- Generate a
.reg
file with the repair actions that you can then deploy on multiple machines. -
Run repair actions - Run the actions on your machine.
After the selected action is performed, the results are displayed on the lower part of the window.
- Create a .REG file
- Generate a
If the Repair Tool for Microsoft Office Interop doesn't fix the issue, try running Microsoft's Office repair tool.