on 2023 Aug 21 5:12 PM
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)
Request clarification before answering.
As soon as I posted the question, I could see a similar question, which I did not find earlier when I searched before posting the question.
I followed the steps as suggested in the other question and the issue got resolved.
I followed these steps:
1. Deleted the folder SM_OBS_DLL under the TEMP directory, and in fact, deleted everything in the %TEMP% folder that Windows allowed to delete.
2. Closed and restarted the SBO application.
If you find this answer useful, please upvote. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
112 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.