Unable to cast COM object of type âMicrosoft.Office.Interop.Word.ApplicationClassâ to interface type âMicrosoft.Office.Interop.Word._Applicationâ. This operation failed because the QueryInterface call on the COM component for the interface with IID â{00020970-0000-0000-C000-000000000046}â failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
Message: Unable to cast COM object of type âMicrosoft.Office.Interop.Word.ApplicationClassâ to interface type âMicrosoft.Office.Interop.Word._Applicationâ. This operation failed because the QueryInterface call on the COM component for the interface with IID â{00020970-0000-0000-C000-000000000046}â failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
Exception Type: System.InvalidCastException
RemoteException wrapping System.InvalidCastException: Unable to cast COM object of type âMicrosoft.Office.Interop.Word.ApplicationClassâ to interface type âMicrosoft.Office.Interop.Word._Applicationâ. This operation failed because the QueryInterface call on the COM component for the interface with IID â{00020970-0000-0000-C000-000000000046}â failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at Microsoft.Office.Interop.Word.ApplicationClass.get_Documents()
at UiPath.Word.WordDocumentâŠctor(String documentPath, Boolean createNew)
at UiPath.Word.Activities.WordApplicationScope.Execute(NativeActivityContext context)
at System.Activities.NativeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
09:37:31.6241 => [ERROR] [UiPath.Studio.Shared.Logging.OutputLogger] [5] System.InvalidCastException: Unable to cast COM object of type âMicrosoft.Office.Interop.Word.ApplicationClassâ to interface type âMicrosoft.Office.Interop.Word._Applicationâ. This operation failed because the QueryInterface call on the COM component for the interface with IID â{00020970-0000-0000-C000-000000000046}â failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at Microsoft.Office.Interop.Word.ApplicationClass.get_Documents()
at UiPath.Word.WordDocumentâŠctor(String documentPath, Boolean createNew)
at UiPath.Word.Activities.WordApplicationScope.Execute(NativeActivityContext context)
at System.Activities.NativeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
09:37:42.5749 => [ERROR] [UiPath.Studio.Shared.Logging.OutputLogger] [5] System.InvalidCastException: Unable to cast COM object of type âMicrosoft.Office.Interop.Word.ApplicationClassâ to interface type âMicrosoft.Office.Interop.Word._Applicationâ. This operation failed because the QueryInterface call on the COM component for the interface with IID â{00020970-0000-0000-C000-000000000046}â failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at Microsoft.Office.Interop.Word.ApplicationClass.get_Documents()
at UiPath.Word.WordDocumentâŠctor(String documentPath, Boolean createNew)
at UiPath.Word.Activities.WordApplicationScope.Execute(NativeActivityContext context)
at System.Activities.NativeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
I mentioned before, Repair Tool seems for Excel but my error related to Word Automation.
Iâve tried Repair Tool and Word Automation error remain the same
hello
which 20.10 version are you running? can you please update to 20.10 beta754 which was uploaded this monday? As @loginerror said you have the tool to repair also the word installation.