Skip to Content
0
Former Member
Jul 15, 2014 at 11:21 AM

webservice call return "Could not commit transaction", but order is actually persisted successfully

51 Views

We are using SAP Business ONE 8.82 (8.82.078) and is using webservice to integrate with the SAP.

We have successfully used the "DraftsService" to "add" draft and so move to "OrdersService".

When we call the "Add" of "OrdersService", the webservice return "Could not commit transaction" and here is a sample soap response:

<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">

<env:Body>

<env:Fault>

<env:Code>

<env:Value>env:Receiver</env:Value>

<env:Subcode>

<env:Value>env:-1</env:Value>

</env:Subcode>

</env:Code>

<env:Reason>

<env:Text xml:lang="en">Could not commit transaction</env:Text>

</env:Reason>

<env:Detail>

<Command>Add</Command>

<SessionID>CFADC81D-9868-4799-990C-8B57560D65BD</SessionID>

</env:Detail>

</env:Fault>

</env:Body>

</env:Envelope>

However, the order actually is created at the database successfully, which can be verified using the SAP client or checking the db record.

Can you advise how we can solve this error?