The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

After the command:

swPart = swApp.OpenDoc6(path, docType, swOpenDocOptions_e.swOpenDocOptions_Silent, "", errors, warnings)

The file exists and can be loaded manually.

Any clues?

SolidworksApi macros