Skip to Content

RPC_E_SERVERFAULT

Hi everyone. We're developing an add-on which generates the following error:

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

The add-on calculates (UDF1 * UDF2) and puts the result in a UDF on rowlevel. When entering a value in the row the error appears.

Any help would be greatly appreciated.

Best regards,

Andy

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 06:21 PM

    I have the same error. It started back on the 2004 release. I found that when setting UDFs this error would occur. Even attempting to loop through all of a document's UDFs would raise the error. After speaking to support the solution was to delete the SM_OBS_DLL directory in the %temp% folder.

    I encountered the same error again this week. I'm trying to set the UDF values through a service. In doing so I get Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT) at SAPbobsCOM.IField.set_Value(Object pVal). If I run the exact same code through a desktop application then it works.

    The service is running under an the same administrator account as the desktop application.

    SBO 2005 SP1 is installed on the system and connecting to a seperate DB server (MSSQL 2000), both Win2003.

    I cannot find the SM_OBS_DLL directory anywhere on the server that has SBO installed.

    I can set UDFs for the OCRD table but cannot set any for RDR1 through the service. UDFs are standard string fields.

    Hopefully the above info helps to solve the problem. Let me know what you find.

    -Dave

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 07:04 PM

    I should also add that this error does not happen consistently. The system will run the same code (same data) many times and then just stop working.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      "The system will run the same code (same data) many times and then just stop working."

      We only develop UI/DI addons (no server), but I can say that we have also seen some paranormal phenomenons about this error. Most of the time, if we run over the same code again (eg. click on a button again on the form that triggers the event), it will work.

      Not easy to diagnose and debug, because it doesn't come 99% of the time.

  • author's profile photo Former Member
    Former Member
    Posted on Nov 13, 2007 at 05:22 AM

    Hi Andy,

    This type error is normal error,

    You have to restart your machine and then plz you run your pgm.

    Kind Regards

    Yogesh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 13, 2007 at 08:08 AM

    Hi Yogesh,

    Unfortunately that didn't do the trick. But it is interesting though. Could it be possible that some services aren't started? Or what is the general idea behind this restarting. Maybe we can find a solution in this direction. Or maybe whe should search for permissions.

    We found out that when the user is member of the domain administrators group, the error stays away.

    Does that make sence?

    Kind regards,

    Andy

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 22, 2007 at 02:46 PM

    Hi Everyone,

    In my case this piece of code was the cause of the error. It was copied from the SAP samples 😔

    'Use Windows Authentication to SQL Server

    oCompany.UseTrusted = True

    lRetCode = oCompany.Connect()

    The users don't have sufficient rights to use the Trused Connection. So the Use Trusted option should be false; and we've set the authentication like this:

    oCompany.Server = SERVERNAME;

    oCompany.CompanyDB = SBO_DataBase;

    oCompany.UserName = "manager"

    oCompany.Password = "manager"

    oCompany.DbUserName = "sa"

    oCompany.DbPassword = "password"

    oCompany.Connect();

    Thank you guys for the responses..

    Andy

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.