Rollback is not working when "The server threw an exception" error

Hi
These are my transaction steps
1) Call the StartTransaction method of the company object (Function AA)
2) Add  Goods Issue (Rollback if error occurs) (Function BB)
3) Create record with oRecordSet object (Rollback if error occurs) (Function BB)
4) Add Journal Entry (Rollback if error occurs) (Function CC)
5) Add Goods Receipt (Rollback if error occurs) (Function DD)
6) Create record with oRecordSet object (Rollback if error occurs) (Function DD)
7) Call EndTransaction (with commit) to complete the whole process (Function AA)
These are working fine usually.
But problem is when user has "The server threw exception" error message.
Whole transaction must be rollback but still step 2 and 3 records are exist on DB.
Rollback is working fine with another error messages.
I programmed call Rollback transaction if calling function has any error.
Function BB, CC and DD are calling from Function AA.
I never have "The server threw an exception" error on my development machine with B1 2005 PL 51.
This is happened only  LIVE server with B1 2005 PL 51.
B1 was upgraded from PL29 to PL51 recently becaseu of Locking issue.
Then Locking issue was solved but have "The server threw an exception" error and rollback is not working properly.
I hope someone can help me!!!!.
Thank you
2) & 3) steps

Hi Joanne,
There are 2 things to check here.
1. is the Transaction
2. is the RPC_E_SERVERFAULT.
for the first one,
in step 2, just before you add the Good Issue, can you try to check first if you are still in a transaction ?
Just to make sure.
If it is, maybe you should open a ticket to SAP support.
BTW, Which version is your Live environment ?
for the second one,
try to search the error in this forum. there is a lot of posting about this.
The problem might also go away if you upgraded your SBO.
Please search and see if there is anything the same with your problem.
Regards
Edy

Similar Messages

  • Why does the alarm not work when the iphone 4 is turned off

    why does the alarm not work when the iphone 4 for is  turned  off works fine when on most other phones work when off

    The only phone I've ever had that would turn on and sound the alarm is a Blackberry. So, I'd hardly say "most phones" have this function.

  • When connecting to cube via msmdpump.dll, an error pops up saying the following system error occurred: the server threw an exception

    users are able to pick the SSAS database and cube, it's at the final step and suddenly excel had this error:
    The following system error occurred: the server threw an exception...
    Other users have no such issues at all
    any ideas?
    thanks
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Hi Cat_ca,
    Glad to hear that your issue had been solved by yourself. Thank you for your sharing.
    Regards,
    Charlie Liao
    TechNet Community Support

  • The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_S

    Hi Experts,
    I have created some tables & fields in my Addon. When i am running the code in SAP B1 8.8, some tables & fields are creating and some are not creating. it's throwing exception "The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))". yet i hv added the reference of 8.0.
    When i am running in 2007 version its working fine and creating all the tables & Fields.
    Please help me out.
    Thanking all
    Vishwajit Kumar

    Hi Vishwajit Kumar,
    The data structure has been changed between versions. If your table has relationship with system table, you must review them all one by one.
    Thanks,
    Gordon

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

    I am working in SharePoint Server 2001 to extract its contents. My code was working fine. But it is now throwing exception
    COMException: The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) from the following code
    var _xmlHttp = new XMLHTTP60Class();
    var xmldoc = new DOMDocument60Class();
    _xmlHttp.open("SEARCH", "http://sanz/merosite/",false, "sanz","sanz"); // throws exception
    I have checked it in google but couldn't found any relevant solution. I am using
    Interop.MSXML2 and Interop.PKMCDO dlls in my project. Please ! suggest

    or you can try this from SAP Note :1235603
    This issue results from using the following code:
    SAPbobsCOM.Field f = oPOrders.Lines.UserFields.Fields.Item("U_test")
    Instead of the above syntax, you should use the following:
    SAPbobsCOM.ProductionOrders_Lines f1 = oPOrders.Lines
    SAPbobsCOM.Field  f =  f1.UserFields.Fields.Item("U_test")
    Using the suggested syntax lets you perform the operation correctly. The issue does not happen with a regular connection.
    The cause for this error in the behavior of the .NET Garbage Collector.
    When the Garbage Collector is activated, it decided which memory to release and which not. In the example above, the parent object is release, while the child object (Field in our case) remains which causes the exception.
    The Garbage Collectors activation is controlled by .NET. The DI cannot control its activation.
    Thanks,
    Neetu

  • The server threw an exception

    Private Sub LoadGRN()
            Dim ddlGRN As SAPbouiCOM.ComboBox
            Dim objRecord As SAPbobsCOM.Recordset
            Dim intI As Integer
            Dim intValue As Integer
            Try
                ddlGRN = SBO_Application.Forms.ActiveForm.Items.Item("ddlGRN").Specific()
                SBO_Application.Forms.ActiveForm.Items.Item("ddlGRN").DisplayDesc = True
                objRecord = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                objRecord.DoQuery("Select * from OPDN ")
                If ddlGRN.ValidValues.Count = 0 Then
                    For intI = 0 To objRecord.RecordCount - 1
                        If intI = 0 Then
                            intValue = objRecord.Fields.Item(1).Value
                        End If
                        ddlGRN.ValidValues.Add(objRecord.Fields.Item(0).Value, objRecord.Fields.Item(0).Value)
                        objRecord.MoveNext()
                    Next
                    objRecord.MoveFirst()
                    If ddlGRN.ValidValues.Count > 0 Then
                        ddlGRN.Select(intValue)                Else
                        ddlGRN.ValidValues.Add(0, "No data found")
                    End If
                End If
            Catch ex As Exception
                SBO_Application.MessageBox(ex.Message)
            End Try
        End Sub
    I am loading dropdown using the above code.I am displaying goods receipt no in the dropdown.I want to select the first value when the dropdown is loaded.For this I have used the code which is highlighted in bold.But it gives error as,
    The server threw an exception
    So how can I select the first value ?

    Hi dilip
    replace this code
    If ddlGRN.ValidValues.Count > 0 Then
    ddlGRN.Select(intValue) Else
    ddlGRN.ValidValues.Add(0, "No data found")
    End If
    with
    If ddlGRN.ValidValues.Count > 0 Then
    ddlGRN..Select(0, SAPbouiCOM.BoSearchKey.psk_ByIndex)
    Else
    ddlGRN.ValidValues.Add(0, "No data found")
    End If
    Regards
    Vishnu

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

    I am getting
    The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) When i try to open any file using Adobe
    Private Template As String = "C:\temp\test.pdf"
    Dim gApp As New AcroApp()
    Dim gPdDoc As New AcroPDDoc()
    Dim gAvDoc As New AcroAVDoc()
    try
    ' open the PDF
    gAvDoc.Open(Template, "") 'This is the line where the exception is thrown
    ' do something
    Catch ex As Exception
    End Try
    Can anyone please help me..Is there anything wrong with the acrobat Installation..

    It's the reinstall that fixed the issue.  Turning off Automatic Updates has nothing to do with it, since when you reinstall after making that change it will reset that preference anyways.
    If for some reason your COM objects are no longer registered with Windows, I would suggest a repair instead of a reinstall.  From Acrobat, choose Help > Repair.

  • Error : The Server threw an exception.

    Hi all,
            I found one exception, this comes from when i switch to one column to another column in the Matrix.that Matrix's columns having combobox control.
    Error :<b>The Server threw an exception. (Exception from HRESULT:0x80010105
    (RPC_E_SERVERFAULT)) </b>

    The "The Server threw an exception" is the top-node exception, that is cast if something unexpected happened that the developers of the SDK haven't considered... "The Server threw an exception" is most common in early releases of a new version, and is on the road replaced with more informative exceptions or bug-fixes... You should report it to the SAP Support

  • When deleting the signature using Acrobat 9.0 -server threws an exception error displays

    Hi Everyone,
    I have built an application using VC++ ,in my application i try to sign a document using Acrobat 9.0 ,it gets properly signed and when i try to remove the signature it throws an exception that " Server threws an exception" ,the same code if executed in Acrobat in 7.0 is properly working.
    The code is as below
    DISPID dispid2;
    OLECHAR *methodName2 = { L"removeField" };
    dispparam1.cArgs = 1;
    dispparam1.rgvarg = new VARIANT[ dispparam1.cArgs ];
    dispparam1.rgvarg[ 0 ].vt = VT_BSTR;
    dispparam1.rgvarg[ 0 ].bstrVal = varResult.bstrVal;
    dispparam1.cNamedArgs = 0;
    dispparam1.rgdispidNamedArgs = NULL;
    hr = jso->Invoke( dispid2, IID_NULL, GetUserDefaultLCID(),
    DISPATCH_METHOD, &dispparam1, NULL, NULL, NULL );
    here after executing this line the hr throws "Server thres an exception"
    What could be the reason please throw ur ideas.
    Regards,
    Nethaji

    While deleting manually using acrobat 9.0 we are able to deleted it. But while deleting the same through code we get the following exception
    hr = jso->Invoke( dispid2, IID_NULL, GetUserDefaultLCID(),
    DISPATCH_METHOD, &dispparam1, NULL, &exceptionInfo,
    &puArgErr );
    ExceptionInfo = "NotAllowedError: Security settings prevent access
    to this property or method."
    puArgErr = 0
    Exception id : 0x80020009
    How to give the permission to invoke this method?

  • SCOM 2012 Console not responding when the server to be connected is down.

    SCOM 2012 Console hangs when the server to be connected is down or gone (e.g. lease replaced).  How to change the 'connection server' to point to a valid server without re-installing SCOM Console? Thx

    To enable high availability for your Operations Manager Data Access service, you can use Network Load Balancing (NLB)
    PLz refer: http://blog.coretech.dk/kra/how-to-make-operations-manager-2012-rc-scom-2012-fault-tolerance/
    Faizan

  • Cascading LOV not working when the page is public

    Hi ,
    I have a cascading LOV in a tabular form which I have built using Denes Kubicek example from
    http://apex.oracle.com/pls/otn/f?p=31517:176:2702932664861989:::::
    Thanks to this wonderful examle I was able to make my cascading lov work.
    However when I make the page public , the second lov(which is based on the first one) does not work.
    Inorder to debug i changed get.get('XML') to get.get() and put an alert on it; to check if the select list string is being returned correctly by the application process - it returns null. The same alert returns the select list string when I put the authentication back on the page.
    Also I noticed when the page is public the application item (TAB_CASCADING_ITEM) is not getting populated with the value of the first select list.
    has anybody encountered the same issue ?
    Appreciate any suggestions?
    Thanks,
    Dippy

    One of the parameters in the htmldb_get is the page the process runs on. You should change that to the current page or make page 0 public as well.

  • Vertical Elasticity on Field is not working when the data contains - in it.

    Hi,
    I have a report which has to print a large invoice number(around 30 characters) per invoice line, but I got only space for 12-14 characters, so I have set the vertical elasticity property of the field to Expand which makes the data to wrap to the next line.
    But if the data contains any '-' character in it, the data wraps to the next line even though there is enough space on the current line.
    Sample outputs:
    When the vertical elasticity is set to Expand
    <p>
    Invoice Number Invoice Description
    123456789023 First Invoice on first line
    345678957694
    347634763476
    12345678-     Second Invoice but the number gets wrapped because of the hyphen
    345734573476
    569456573456
    When the vertical elasticity is set to Fixed
    Invoice Number Invoice Description
    123456789023 First Invoice on first line
    12345678-345     Second Invoice but the number does not get wrapped after hyphen
    </p>
    Is it a bug on reports editor, how do I avoid this?
    I would like to see the output like the following,
    Invoice Number Invoice Description
    123456789023 First Invoice on first line
    345678957694
    347634763476
    12345678-345     Second Invoice number with correct format.
    734573476569
    456573456
    PS: The version of the Report Builder is 10.1.2.0.2
    Thanks in Advance,
    Senthil

    It looks as if the logic that Oracle Reports uses to determine where to break the line is interpreting the "-" character differently from other characters. This is probably because it is used (at least in English) to break words at the end of a line (see http://en.wikipedia.org/wiki/Hyphen#Justification_and_line-wrapping).
    One workaround might be to replace "-" character with another character (or more) that looks the same (or similar), but that Oracle Reports does not interpret differently from other characters. For me (on Windows), CHR(173) seems to work. However, whether or not it works for you will depend on whatever character set(s) you're using. The same goes for the Unicode characters like U+2010 (hyphen), U+2011 (non-breaking hyphen), and U+2212 (minus).
    For example, in your data model, you might try replacing your current invoice number column with an expression that looks something like this:
    REPLACE(YOUR_INVOICE_NUMBER_COLUMN, '-', CHR(173))
    Hope this helps.

  • LED for accessibility notifications does not work when the flash is turned off for the camera, LED for accessibility notifications does not work when the flash is turned off for the camera

    I use the LED notifications and the notifications weren't working. I found out when I had the flash off in the camera app, my LED notifications did not work.

    OK... so turn it on?

  • I just installed Adobe CreatePDF desktop printer, when I try to use from Word or Excel, it does not work.  The Adobe print queue says "error" in the status screen.  I have uninstalled and re-installed.  Any ideas of what to do next?

    I just installed Adobe CreatePDF desktop printer on a Windows 7 home PC.  When I try to use from Word or EWxcel, it does not print.  The Adobe print device queue reports an "error" in the status column.

    Adobe retired this Feb 17, 2014.
    This app sent content to and got content from the web based services of "CreatPDF" and "PDF Pack".
    These are subscription services out in "the cloud". When the app was live you had to be online and signed into your account.  The user forum for CreatePDF has a DOC that speaks to the app removal.
    Be well...

  • [Forum FAQ] Group Policy Preferences Scheduled Tasks Item not working when the option Run whether user is logged on or not is selected

    Scenario:
    We use one of the following Group Policy Preferences Scheduled Tasks item to deploy a task to clients:
    Computer Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Scheduled Task (At least Windows 7)
    Computer Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Immediate Task (At least Windows 7)
    User Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Scheduled Task (At least Windows 7)
    User Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Immediate Task (At least Windows 7)
    (Note that on some platforms, "At least Windows 7" is replaced with "Windows Vista and later.")
    After designating a user account to run the task, we select “Run whether user is logged on or not” option, and “The Do not store password…”
    check box is automatically grayed out (See Figure 1).
    Figure 1
    After finishing configuring the task item, on a client, we run command
    gpupdate/force to forcefully update group policy. However, on the client, when we check if the task is listed in Task Scheduler snap-in, the task is not displayed, and when we run
    gpresult/h report.html to collect group policy result for troubleshooting, we see an error as similar as shown in the following figure (Figure 2).
    Figure 2
    Cause:
    To make the scheduled task run whether the user is logged on or not, we need to store the password of the designated user account. However, for the content of the scheduled
    task item is stored in Sysvol where it’s not safe to store passwords, this function has been deprecated.
    Workaround:
    We can run the task with system account
    NT Authority\System, or we can use specific user accounts to run the task when the given user is logged on. (See Figure 3)
    Figure 3
    Reference:
    MS14-025: Vulnerability in Group Policy Preferences could allow elevation of privilege: May 13, 2014
    http://support.microsoft.com/kb/2962486
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Hello Everyone,
    Succeeded !!!!!!!
    Even i was struggling with this same Problem to execute a batch via Window scheduler and set the setting to "Run whether the user is logged in or not".
    I tried many time but the batch runs with " Run
    whether user is logged on" and not with "Run
    whether user is logged on or not".
    what i discovered is that there was one mapped drive
    path in my batch file which was not the complete path like y:/AR.qvw actually what i did i changed that map path to the complete path like \\servnamename\d$\AR.qvw and the batch executed successfully with the setting "Run
    whether user is logged on or not"
    The
    conclusion is that check the dependency of the script on external resources because when you check this option "Run
    whether user is logged on or not" It actually conflicts. This my discovery.
    If
    you have any question write me on [email protected]
    Thanks
    & Regards,
    Arun

Maybe you are looking for