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.
Hi rajesh.khater,
The error RPC_E_SERVERFAULT occurs because of OBServer connection recycling.
In Feature Package 2202, there is a possibility to increase the idle time out and stop cleaning up of connection.
Refer to SAP Note: 3200647 for the same.
Hope it helps!
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ankit.chauhan1 misa_lalo moshe.naveh2 edy.simon johan.hakkesteegt
Can you please assist me with these questions:
https://answers.sap.com/questions/13952445/oformbusinessobject-raises-comexception-e-nointerf.html
https://answers.sap.com/questions/13952503/best-practices-for-cleanup-of-com-objects-ui-api-d.html
i was also facing the same issue. kindly check whether this solution works for you or not
https://www.linkedin.com/feed/update/urn:li:activity:7166391771059482624
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
9 | |
9 | |
8 | |
5 | |
4 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.