Question
Flextronics Technologies PVT Ltd
IN
Last activity: 28 May 2019 1:08 EDT
The application called an interface that was marshalled for a different thread.
Hi Team,
I am facing a frequent exception which gets resolve by restating the BOT. The process step is : "BOT will run & close the excel macro file followed by C# script to kill all opened excel objects and then open another Excel." Logfile say then exception has occurred at excel opening.
Exception:
“Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass' to interface type 'Microsoft.Office.Interop.Excel._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{000208D5-0000-0000-C000-000000000046}' failed due to the following error: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD))."
Please find the attachments and help me to resolve it.
***Moderator Edit-Vidyaranjan: Updated SR details***
***Edited by Moderator Marissa to update platform capability tags' update SR details****