Skip to Content

Problem with BP update


I'm creating and updating business partner from external system and gets the famous error:

DI Error: (-2035) This entry already exists in the following tables (ODBC -2035)

The table name is not shown but it must be either CRD1 (BPAddresses) or OCPR (ContactEmployees) as it's the only nodes that I send in besides OCRD.

It seems that I handle the key value wrong as it only happens when updating an existing customer. Creating a new customer works ok.

This is how I do:



          <AddressName>Name of address</AddressName>

          <BPCode>existing cardcode</BPCode>





          <InternalCode>existing CntctCode</InternalCode>

          <Name>existing name</Name>


The action is performed in a B1 Call atom. Here is the payload:

<Envelope xmlns="">


          <Action throwException="true" autoCommit="false">add</Action>

          <WritePolicy insert_on_exists="fallback2U" update_policy="regular" update_on_miss="fallback2I"/>















                              <CardName>Test Uppdatering 5</CardName>



                              <Notes>Lite allmän info</Notes>









                              <Street>Kungsgatan 1</Street>










                              <Name>Olof Gustafsson</Name>









What is wrong with this payload?

I have checked tables OCRD, CRD1 and OCPR and all these entries exists. But are not updated.

B1 version is 9.1 PL07 SQL version.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 04, 2015 at 01:39 PM

    Hi Lars,

    your issue seems to be caused by the address or the contact employees segment.

    In the update case, if either addresses or contacts are existing you need to update every address/contact line-by-line.

    Best regards


    P.S.: You're only updating the ship-to address, what is with the bill-to address? From my point of view you need to update two addresses minimum.

    Add comment
    10|10000 characters needed characters exceeded