Skip to Content
0

Error business partner update di api

Jul 13, 2017 at 12:00 PM

84

avatar image
Former Member

Hello ,

I would like to update a business partner but i received the error "This entry already exists in the following table ODBC-2035".SAP : 9.2 PL04.The code is the following :

Try

Dim oBusPartner As SAPbobsCOM.BusinessPartners
                    oBusPartner = oCompany.GetBusinessObject(BoObjectTypes.oBusinessPartners)
                    oBusPartner.GetByKey("1256935")

                    oBusPartner.CardName="Test"

                    lRetCode = oBusPartner.Update()

Catch ex As Exception
End Try

Kind Regards ,

Ifigeneia Koumbarda

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Danilo Kasparian Jul 13, 2017 at 01:04 PM
0

Hi,

To troubleshoot this error I would first check if I am doing sth wrong removing the empty try catch, checking the GetByKey and checking the LastErrorDescription, try to change your code and post your GetByKey result, LastErrorDescription and lRetCode.

Also double check if there is something in the Transaction procedure

Dim lastError As String
Dim oBusPartner As SAPbobsCOM.BusinessPartners
                    oBusPartner = oCompany.GetBusinessObject(BoObjectTypes.oBusinessPartners)
                    if (oBusPartner.GetByKey("1256935")) then

                    oBusPartner.CardName="Test"

                    lRetCode = oBusPartner.Update()
lastError = oCompany.GetLastErrorDescription()

End If
Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hello Danilo Kasparian,

There is no transaction at bp and the getbykey it is ok.Without using add-on i can update the specific cardcode.

Kind Regards,

Ifigeneia Koumbarda

0

What about the other results?

0
Former Member

Hello ,

For other results if you mean other cardcodes, i have successfully update others .I am wondering if something in this specific cardcode doesn' t let to be updated.

Kind Regards ,

Ifigeneia Koumbarda

0
avatar image
Former Member Jul 14, 2017 at 07:02 AM
0

Hello ,

Deleting one address from addresses the update had no error.

I cannot understand why this happened.Any idea?

Kind Regards,

Ifigeneia Koumbarda

Share
10 |10000 characters needed characters left characters exceeded