Microsoft Excel Related Issues

Symptom

Sometimes, when you try to run a Process file, you may run into one of the following errors.

DISP_E_BADINDEX

Exception from HRESULT

Document with name “TempXL.xlsx” is already open

RPC_E_SERVERCALL_RETRYLATER

TYPE_E_LIBNOTREGISTERED

System.Runtime.InteropServices.COMException:Cannot access document when in modal condition

Solution

To resolve this issue, perform the following:

  1. Close all the sessions of Process Runner and Excel.
  2. Open Task Managerand select Processes tab. Ensure that no Excel or Process Runner instance is running.
  3. If you see any Process Runner or Excel instance, select Excel.exe or ProR.exe and click End Process.
  4. Delete the .xlsx file from My Documents\Innowera\Other folder.
  5. Open Excel and check whether any temporary instance is open.

Now, open the Process file and check whether you are able run the Process file. If you are still running into an Excel-related issue, perform the following: