Hello,
Since I updated my Office version to 365, my UiPath is not able to launch Excel anymore with UiPath.Excel.Activities.
I have the following error :
RemoteException wrapping System.Exception: Erreur lors de l’ouverture du classeur. Assurez-vous qu’Excel est installé. —> RemoteException wrapping System.InvalidCastException: Impossible d’effectuer un cast d’un objet COM de type ‘Microsoft.Office.Interop.Excel.ApplicationClass’ en type d’interface ‘Microsoft.Office.Interop.Excel._Application’. Cette opération a échoué, car l’appel QueryInterface sur le composant COM pour l’interface avec l’IID ‘{000208D5-0000-0000-C000-000000000046}’ a échoué en raison de l’erreur suivante : Interface non enregistrée (Exception de HRESULT : 0x80040155).
à System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
à Microsoft.Office.Interop.Excel.ApplicationClass.set_SheetsInNewWorkbook(Int32 RHS)
à UiPath.Excel.WorkbookApplication.StartNewApplication()
— End of inner exception stack trace —
à UiPath.Excel.WorkbookApplication.StartNewApplication()
à UiPath.Excel.WorkbookApplication.InitializeExcelApp()
à UiPath.Excel.Activities.ExcelApplicationScope.<>c.<.ctor>b__48_0(WorkbookArguments args)
à UiPath.Excel.Activities.ExcelApplicationScope.Execute(NativeActivityContext context)
à System.Activities.NativeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
à System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
à System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
I tried all solutions already found in the forum but none of them worked :
- uninstall/reinstall office
- repair office (easy and offline)
- unistall/reinstall uipath
- uninstall/reinstall UiPath.Excel.Activities
- make sure registry {00020813-0000-0000-C000-000000000046} is on Win64 (like my OS and Office version)
- remove registry {00020813-0000-0000-C000-000000000046}
- remove OFFICE.DLL in C:\Windows\assembly\GAC_MSIL\office\15.0.0.0__71e9bce111e9429c
If anyone is able to help me, it would be very welcome.
Thanks a lot.
Evane