Scenario:
During the execution of the process, UiPath stops working with the usual popup Window, “UiPath Executor has stopped working”. Looking on the windows logs I found out an error whose origin is .Net Runtime: in particular the error messages says “System.InvalidCastException
in System.StubHelpers.StubHelpers.GetCOMIPFromRCW(System.Object, IntPtr, IntPtr ByRef, Boolean ByRef)
in Microsoft.Office.Interop.Excel.ApplicationClass.set_SheetsInNewWorkbook(Int32)
in UiPath.Excel.WorkbookApplication.Dispose()
in UiPath.Excel.WorkbookApplication.Finalize()”
The xaml contains a lot of Excel Application Scope (around 20) but they are correctly closed with Close Workbook and the activity is out of the Excel Application Scope’s sequence
Steps to reproduce:
Current Behavior: UiPath stops working
Expected Behavior:End of the Process
Studio/Robot/Orchestrator Version: Studio’s Version 2018 , Orchestrator’s Version 2018 3.2
Last stable behavior:
Last stable version:
OS Version:
Others if Relevant: (workflow, logs, .net version, service pack, etc):