I am getting the following COMException in GetByKey():
System.Runtime.InteropServices.COMException: 'The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))'
I have verified that the SAPbobsCOM dll is of the same version as the SAP B1 client.Following is my code:SAPbobsCOM.Documents arInvoice = null; <br>bool isDocFetched = false;<br>arInvoice = oCompany.GetBusinessObject(BoObjectTypes.oInvoices);<br>//here I am using a DocEntry which exists in the database<br>docFetched = arInvoice.GetByKey(1);How should I debug it and fix it?
The SAP B1 version is 10.0 FP 2202 (technical version 10.00.190)