on 04-13-2011 3:11 PM
hi,
When I use wf_commit I sometimes get this error "Could not commit transaction: Error -1 detected during transaction" but when I step through code i cannot see any errors, does anyone have any suggestion how I shall find the problem?
I'm runnig this in 8.8 pl18 in a SQL2008.
Thanks in advance.
Ulf
Hi,
I have the same problem. As I try to add a sales order I get an error: Could not commit transaction: Error -1 detected during transaction.
There is nothing on SP POST or SP TRANSACTIONS.
I am using SAP version 9 pl05
Did you find a solution for this problem?
Thanks in advance,
Yulia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi. Yuila lashina..
Actually the problem is comming bcz of stored procedure but you are saying there is no sp in your data base..
is there any addon is running..
if it is yes.
check in coding is there any transaction starting..
if yes check it in what cases it is starting and stoping..
every start it should need end ...
--------
if there is no transaction in coding or no addon is running..
try to restart the sql server ... and add again...
Hi Ulf Larsson ,
I think this is Store procedure problem . If you post your SBO_SP_TransactionNotification then i can help you .
Thanks and Regards
Surajit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem is that the return values are always correct and if I take way the transaction handling it works without errors.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi guys, i also have this error. program is working fine if there's no transaction handling. we'r using B1 8.8, dbms is ms sql 2008, and we have no codes placed in SP_TN.
here's the weird part, same program (w/ transaction handling) WORKS when using B1 8.8, dbms is ms sql 2005.
seems this issue can be related to dbms.
please please help, thanks.
Edited by: Emmanuel Pante on Jan 3, 2012 5:39 AM
Symptom
The following error occurs when you do query to "select Top 1" in DI API.
"ERROR: System.Runtime.InteropServices.COMException (0xFFFFFBA4): Could not commit transaction:Error -1 detected during transaction en SAPbobsCOM.CompanyClass.EndTransaction(BoWfTransOpt endType)"
Reproducing the issue
Use the following sample code:
oCompany.StartTransaction()
Dim sql As String = "SELECT TOP 1 ""CardCode"" FROM ""OCRD"""
Dim rs As SAPbobsCOM.Recordset
rs = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
rs.DoQuery(sql)
If rs.RecordCount > 0 Then
rs.MoveFirst()
While Not rs.EoF
rs.MoveNext()
End While
End If
If oCompany.InTransaction Then
oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_Commit)
End If
Actual Result:
ERROR: System.Runtime.InteropServices.COMException (0xFFFFFBA4): Could not commit transaction:Error -1 detected during transaction en SAPbobsCOM.CompanyClass.EndTransaction(BoWfTransOpt endType)
Expected Result:
No errors and successful commit
Cause
Application Error
Workaround:
The issue occurs when you use TOP 1 (when there is only one row). MoveFirst() and MoveNext() is not required when record count = 1.
Use the following logic to avoid errors:
If rs.RecordCount > 1 Then
rs.MoveFirst()
While Not rs.EoF
rs.MoveNext()
End While
End If
Hi, Gordon,
If you by DTW mean Data Transfer Workbench I am not using that. this is an addon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is a return document that I crete using DIAPI and some deliveries is just impossible to commit and some is no problem.
In SBO_SP_TransactionNotification we have added som control that profitcentre and project is entered.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are there anything in sp_TransactionNotification or sp_PostTransaction?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ulf,
If your issue is sometimes, how often do you get the problem? Half time or only occasionally?
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
6 | |
6 | |
4 | |
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.