Failed to add data -1116 could not commit transaction

Hello Experts
After installation of our add-on on client machine with SAP 8.8.1. we have received this error:
"Failed to add data -1116 could not commit transaction" after traing to add data to our table by using this code :
Dim oUserTable As SAPbobsCOM.UserTable
oUserTable = oCompany.UserTables.Item("UserTab")
'Set default, mandatory fields
oUserTable.Code = UniqueID
oUserTable.Name = UniqueID
'Set user field
oUserTable.UserFields.Fields.Item("U_UserField").Value = "UserValue"
oUserTable.Add()
What should I do?
Thanks

Hello
Also execute the following statement on server in a query analizer
select @@version
if the versions (client and server) are the same it is correct. If not, you can apply the sql native client (sqlncli.msi) from sql server patch
regards
János

Similar Messages

  • Could not commit transaction

    Hi,
    I am creating an approval procedure for SO, checking balance, due inovices and payment terms. The approval should not be trigger when the SO is cash basic. The payment term cash basic has code -1. This is my query. I got the error Could not commit transaction.
    What is wrong?
    SELECT CASE WHEN T0.Balance+$[$29.0.NUMBER] >  T0.CreditLine AND
    $[ORDR.GroupNum] <> (-1 ))
    OR
    (SELECT COUNT(*) FROM [dbo].[OINV] T1 WHERE T1.DocDueDate<GetDate()  AND T1.DocStatus='O' AND T1.CardCode = $[ORDR.CardCode]) > 0
    AND
    $[ORDR.GroupNum] <> (-1 )
    THEN 'TRUE'
    ELSE 'FALSE' END
    FROM [dbo].[OCRD] T0
    WHERE T0.CardCode = $[ORDR.CardCode]
    Tks
    Adriana

    Hi Adriana,
    By analyzing your logic, I simplified it. Please try this query:
    SELECT Distinct 'TRUE' From dbo.OCRD T0, dbo.OINV T1
    WHERE (T0.CardCode = $[$4.0.0]) AND ($[ORDR.GroupNum] !=N'-1') AND
    ((T1.DocDueDate<GetDate() AND T1.DocStatus='O' AND T1.CardCode = $[$4.0.0])
    OR (T0.CreditLine - T0.Balance < $[$29.0.NUMBER]))
    Thanks,
    Gordon

  • Web Services,Delivery Document Adding Error  Could not commit Transaction

    Dear All,
       I am working with SAP Business One Web Services, While adding Delivery Document it's giving error  "Could not commit transaction"  Please Give your Suggestion It's urget.
    Thanks,
    Madhu
    9701155577

    Hi,
    Do you mean there is no journal entry created orthat the link is missing?
    If this really is a delivery for stock/inventory items there should be a journal entry, else it sounds like an error in SAP.
    Are there still changes in the stored procedure? Also have a look at the TansactionNotice. It is possible the roll back does not work correctly.
    Again sounds like an error.
    Doe sit happen all the time?
    Only for certain items?
    Are the stored procedures now clean?
    What Version are you using?
    Kind Regards,
    Friederike

  • Error 'Could not commit transaction'

    Dear Expert,
    I am facing error ' Could not commit transaction' while entering  Good Receipt PO . All GL account mapped.

    Hi,
    Please check for the Approval procedures and see if the user for which
    you are getting error is defined the originator for the affected
    documents.
    You can check this by going through all the Approval template for that
    particular document.
    Then check the Terms tab of that template and if in Launch Approval
    Procedure "When the following applies" is ticked then check the "Ratio"
    column and "Value" column and make sure that some value is given there.
    There should not be any undefined type.
    If there is any Template which has undefined type selected then please
    logged in as the Authoriser or Approver of that template and modify
    that term.
    Check all the approval template and go through the term tab and see the
    value defined there.
    Hope this will help.
    Regards,
    Gagan Thareja
    SAP Business One Forums Team

  • Could not commit transaction Error 1 Detected During Transaction G/L Account

    hi experts
    when i was adding Sales Order i am getting an error as Could not commit transaction Error 1 Detected During Transaction G/L Account

    Hi,
    Plz find the following threads:
    Transaction failure with error message \&quot;Error -1 detected during transaction\&quot; when update the G\\L Account D…
    "Could not commit transaction: Error -1 detected during transaction"
    Could not commit transaction: Error -1 detected during transaction 'Payment Methods for Payment Wizard' (OPYM)
    Could not commit transaction when inserting new items

  • "Could not commit transaction: Error -1 detected during transaction"

    hi guys,
    im getting this error "Could not commit transaction: Error -1 detected during transaction" when trying to create standard document/s. i am now using B1 8.8, MS SQL 2008.
    originally, my program was written for B1 2005, MS SQL 2005, and it WORKED.
    we upgraded into B1 8.8, MS SQL 2008, and now my program is not working. it is now having the mentioned error upon committing transaction (vCompany.EndTransaction(wf_Commit)). tried removing transaction handling, and it WORKED. also, tried simplifying the program, instead of creating multiple documents, i modified it in just creating one document with transaction handling, and it WORKED.
    initialliy, this issue seems to be related to MS SQL 2008.
    please help, thanks.

    Hi Emmanuel........
    You get this error due to the Approval Procedure.
    Please check if it is activated then please deactivate it from Administration> Approval> Approval Template.......
    Then try.......
    Regards,
    Rahul

  • Deadlock - Could Not Commit Transaction

    Hi Experts,
          While posting Journal Entries through B1if, we encountered an 'Deadlock Error' 'error, unable to commit the transaction. Although the process is executed through Queue, we faced the same multiple times. Solutions are highly appreciated.

    HI,
    While ur inserting through DI API.try to lock the table and insert.
    ROM A WITH(NOLOCK)
    regards,
    Prasad

  • Lock wait timeout: Could not commit JPA transaction

    We are using MySQL v5.1.67 under Solaris (SmartOS) in a zone. We are using Java EE and Jetty as our servlet container (Hibernate, Ehcache). Sometimes we get: "Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while commiting the transaction" and then "Lock wait timeout exceeded; try restarting transaction". We have the database as one file instead of one file per table. The file is large about 20 GB. There are millions of rows in many tables. One table has 30 million rows. Some table has varchar(255)s. Some others have texts. It seems like cells in the database has been broken. Because if you try to update the same entry in the DB you get a "Lock wait timeout exceeded; try restarting transaction", just by issuing a MySQL query. The problem persists until you restart the DB server. Sometimes they start appearing again after a while. Now they seem to come more and more often. There are a lot of threads in the Java EE .war application. We send more and more JMS messages. There is also PHP-code accessing the database. How do we stop this problem from occuring?

    I don't think it's threads deadlocking. I've seen this problem many times before and I've always been able to fix it by restarting the MySQL-server. Then it executes normally day after day. Then something special happens and then it fails every day until I restart mysql. I've also encountered the same problem using the test database I have on my local machine. Only one job executes, the one I'm testing. First it works every run. Something special happens usually triggered by errant code. I fix the error. The job continues to fail with the same message "Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Error while commiting the transaction". If try to do a simple UPDATE SQL query accessing exactly the row that's been corrupted, I get a lock wait timeout. But if I restart the database it starts working again. The update works and the Java job works both locally and on the server. But now a special job has experienced more severe problems of this nature. I restart mysql and the job works when triggered manually but not when triggered chronologically on schedule. Actually all failed first and then a few worked but most failed. It's the same job executing multiple times.

  • Add feature - assembly could not be found error 0x80073701

    I am trying to install the SNMP service on this server - succesfully did this on an identical server.
    Windows reports back "The request to add or remove features on the specified server failed. The reference assembly could not be found. Error 0x80073701"
    This error has been posted in a few places on the forums so I have followed the advice which includes the following:
    1) I have run a chkdsk and rebooted.
    2) I have run the system file checker (sfc / scannow) and this reported no issues with system integrity.
    3) I have run DISM /Online /Cleanup-Image /RestoreHealth. Reported repair made and I rebooted.
    4) I have only the English language pack installed.
    On inspecting the CBS log I see these errors, just a sample:
    i)2014-03-24 14:49:57, Error                
    CSI    0000000d 2014/3/24:14:49:57.330 (F) base\wcp\componentstore\csd_locking.cpp(216): Error STATUS_SXS_ASSEMBLY_MISSING originated in function CCSDirectTransaction::LockComponent expression: (null)[gle=0x80004005]
    ii)2014-03-24 14:49:57, Error                
    CSI    0000000e (F) STATUS_SXS_ASSEMBLY_MISSING #5681# from CCSDirectTransaction::OperateEnding at index 0 of 1 operations, disposition 2[gle=0xd015000c]
    iii)2014-03-24 14:49:57, Error                
    CBS    Failed to process single phase execution. [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
    iv)2014-03-24 14:49:57, Error                
    CBS    Failed to perform operation. 
    [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
    However I am still getting the same message. Can anyone advise how I should progress?
    Many thanks for your input.

    Hi,
    >>I am trying to install the SNMP service on this server
    In fact, SNMP is deprecated. Instead, use the Common Information Model (CIM), which is supported by the WS-Management web services protocol and implemented as Windows Remote
    Management.
    However, we still can use SNMP service on Windows Server 2012. For double check, we can follow the blog below to check whether something is missing during installation process.
    Install SNMP on Windows Server 2012
    http://michaeljgirard.com/index.php/install-snmp-on-windows-server-2012/
    Best regards,
    Frank Shen

  • The filter expression is on external data and could not be validated.

    The filter expression is on external data and could not be validated. It may not be supported in Web browser forms.
    I am reciveing this error in my infopath 2010 browser form when I am trying to filter a drop down list from sharepoint.
    I thought filters were available on infopath 2010 browser forms or are they only available from values inside the form?
    I did have a look around the forums but only could find this error occuring during beta stage.
    Thanks

    Ok, so you shouldn't be filtering in the form, because that means it downloads the entire list first and then filters out the items.  That's client-side filtering.  What you want to do is server-side filtering by doing a parameterized query.
    Set the data connection NOT to automatically download
    Add Form Load rules that do the following:
    First, "Set a Field's Value" and set the position query node of the data connection to the value of "manager" (whatever the exact syntax is)
    Then query the data connection
    Doind this should make it ONLY download items where position=manager instead of downloading all items and filtering.  This is a much better practice and was not even available in 2007, so you should make full use of it in 2010.  Even so, what you
    were doing should have worked anyway, so I'm not sure what's going on there.
    When you do the filtered dropdown, your Source field should be the repeating group of the data connection, not the property itself.  The property should only be selected in Value and DisplayName.  The group should be in the Source field, and THAT'S
    where you apply the filter.
    SharePoint Architect || Microsoft MVP ||
    My Blog
    Planet Technologies ||
    SharePoint Task Force

  • System synchronization failed--Protocol Error: Handheld file could not be opened. (4004)

    I have reviewed Palm Support Page and the forums and recognize this is an old story but the solutions offered haven't worked for me.  I have had my Tungsten 2E for over a year and an earlier version before that.  It has been working well for me until I had a problem (out of the blue) with the HotSync.  I reinstalled the Palm software after checking cables, etc.  I was able to relink and get updated info from my handheld to the desktop but with a few blips in DocstoGo where I had to delete documents and add them back to the desktop and resync with the handheld.  All the info is on the handheld but see the log below to see the message "System synchronization failed".  A suggestion by other users is to delete the "PmTraceDatabase" to file C:\Program Files\Palm\N\Backup\PmTraceDatabase.PDB but I cannot find the named file on my desktop program files for Palm. 
    Does anyone have an explanation other than "live with it" since I believe I'm getting all my info synced?
    HotSync operation started 02/14/08 09:26:07
    OK Calendar
    OK Contacts
    OK Tasks
    OK Memos
    OK Expense
    OK Note Pad
    OK Documents To Go
    OK Photos
       - Installed file: C:\Program Files\Palm\N\Install\DocsToGo.prc
       - Installed file: C:\Program Files\Palm\N\Install\GraphicsLibrary.prc
       - Installed file: C:\Program Files\Palm\N\Install\SheetToGo.prc
       - Installed file: C:\Program Files\Palm\N\Install\SS_P2P.prc
       - Installed file: C:\Program Files\Palm\N\Install\WordToGo.prc
       - Installed file: C:\Program Files\Palm\N\Install\WP_P2P.prc
       - Installed file: C:\Program Files\Palm\N\Install\WTGFontPackage.pdb
    OK Install
       -- Backing up db psysLaunchDB to file C:\Program Files\Palm\N\Backup\psysLaunchDB.PDB
       -- Backing up db PmTraceDatabase to file C:\Program Files\Palm\N\Backup\PmTraceDatabase.PDB
    System synchronization failed
    Protocol Error: Handheld file could not be opened.  (4004)
    HotSync operation complete 02/14/08 09:26:47
    Post relates to: Tungsten T2
    This question was solved.
    View Solution.

    1. download and install FileZ from here
    http://nosleepsoftware.sourceforge.net/index.php?page=filez
    2. Launch FileZ and tap on view and edit files
    3. Open the internal folder and tap pmtracedatabase and put a check mark next to it
    4. Tap details
    5. Tap on the "Attrs" tab
    6. Uncheck the box next to backup
    7. Click Save
    8. Sync

  • After installing any version of itunes. Told failed to install properly and could not burn or import music from Cd's. Also will not allow eithre one of my 2 ipods to sync with it as well.

    After installing any version of itunes. Told failed to install properly and could not burn or import music from Cd's. Also will not allow eithre one of my 2 ipods to sync with it as well.

    Could you post your diagnostics for us please?
    In iTunes, go "Help > Run Diagnostics". Uncheck the boxes other than DVD/CD tests, as per the following screenshot:
    ... and click "Next".
    When you get through to the final screen:
    ... click the "Copy to Clipboard" button and paste the diagnostics into a reply here. (Use your Ctrl-V keyboard shortcut to paste.)

  • Crystal Report failed because a free license could not be obtained

    My question is about Crystal Report Standard (v. 10) and Crystal Report Professional (v.10)
    Trying to print labels on from my application using Crystal Report Standard Edition (v. 10) and I am getting the follow error.  And it doesnu2019t print any more.
    "Crystal Reports job fauile because a free license coukd not be obtained in the time allocated.  More licenses can be purchased direct from Crystal Decissions or thorough the Crystal Decisions Online Store"
    If a run the same application on another server using Crystal Report Professional Edition (v. 10) and get this error, but the print after few seconds.
    "A Crystal Reports job was delayed 2 seconds waiting for a free RDC runtime concurrente license to become available.  More licencses can be purchased direct from Crystal Decisions or through the Crystal Decisions Online Store"
    Is this happening because Standard / Professional differences?.  It is any way to workaround on the standard edition and made print again with out reboot server.  How many users can print at the same time?
    Thanks for your help.

    Hello Monica,
    In your earlier posts you said the RDC was referenced in one of the licensing warning messages.  The licensing warnings you've listed here would normally be seen in a Crystal Reports .NET application, not an RDC application.  I don't see any details about your application though.  More details about the actual application would be helpful.  What type of application is it? Which Crystal component are you using?  Which IDE did you use to create your application?  How did you deploy the application?  What type of keycode did you use to deploy?   Is a full version of Crystal Reports also installed along with the runtime application?  Also, please confirm whether or not this is a web or windows application.
    Since these are CR.NET licensing warnings I'll address the errors and warnings related to the CR.NET object model.
    Crystal Reports 10 Standard edition and Professional edition are not a development level products.  These types of keycodes would not normally allow a runtime application to operate.  You'd normally see the warning messages if you were using either a CR10 Developer, or CR10 Advanced Developer keycode when deploying a CR.NET application.
    The CR.NET runtime licensing model has 3 Concurrent Processing Licenses (CPLs).  This number can not be changed.  CR10 Developer edition does not include queuing in it's licensing model, so when the 4th request comes in if the 3 CPLs are in use then the 4th request will fail with the "free license could not be obtained" error message.
    CR10 Advanced Developer edition includes queuing in it's licensing model, so when the 4th request comes in if the 3 CPLs are in use then the 4th request will queue and test to find a free license every 2 seconds for approximately 2 minutes.  In this case you'll see warning messages in the event viewer.
    The 3 CPLs can not be increased - they're a fixed limit based on the number of CPUs on a particular web server.  If you use a web garden or web farm and use load balancing then the number of CPLs increases as the number of CPUs increases.  It's 3 CPLs per CPU.
    There is no way to force the licenses to be freed up.  This is handled by the CR.NET report engine.  When the engine is finished using the license it is freed up automatically.
    The Report Designer Component (RDC) does have a 5 seat model in CR10, but it does not follow the same queuing model seen with the CR.NET component.
    Once you post more information about your application, and the Crystal Reports runtime component you're really using we can see if the above information applies or not.
    Sincerely,
    Dan Kelleher

  • Item Could not commit action because it is currently in focus error.

    Hi experts,
    we developed addons for our client in 2007 B version.
    Recently we upgraded our client server from SAP 2007B to 8.8.
    The addons worked fine in 2007B.when we upgraded to 8.8 the error is occuring like
    "Item-could not commit action because item is currently in focus [66000-23]"
    when i disable a textbox(already it is focus) in my form the above  error is occuring.
    But this error was not happened with  2007B.
    Please tell me is there any solution with out changing the code(i am unable to change the code).
    Thanks in advance.
    Edited by: vivek.Y on Jun 11, 2011 5:15 PM

    Hi Jonathan,
    Besides setting the focus and trying to disable the control, it was still throwing exception. So I tried a following:
    Work around for this issue.
                                        Try
                                            oForm.Items.Item("ControlWithFocus").Enabled = False
                                        Catch ex As Exception
                                            Dim oItem As Item = oForm.Items.Item("AnyOtherItem")
                                            oItem.Click(BoCellClickType.ct_Regular)
                                            oForm.Items.Item("ControlWithFocus").Enabled = False
                                        End Try
    This is a trick where you can set focus to another control and set enable to false.
    Hope this helps.
    Regards,
    Kashif Ali
    Edited by: Kashif Ali on Sep 21, 2011 11:43 AM

  • TS5168 some of my pictures say that the necessary data reference could not be resolved. help

    some of my pictures say that the necessary data reference could not be resolved. help

    It means iPhoto can't find the file.
    There are 9 different versions of iPhoto and they run on 9 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

Maybe you are looking for