Inserting Multiple Siebel CRM Business Components When a Record Already Exists

When you insert multiple Business Component records, it is possible that a record with the same user key combination already exists. When this happens, the entire request is rejected, none of the records are inserted, and the error message in the following example is displayed.

The following details describe a request that is trying to create two new Account records. However, one of these Account record already has the same user key as an existing record on the Siebel CRM Server.

  • URL: https://ServerName:port/siebel/v1.0/data/Account/Account

  • HTTP Method: POST

  • Content-Type: application/json

  • Authorization: Basic

  • Request body:

    [
        {
            "Name": "AccountExample1",
            "Primary Organization": "Millennium Institutional Finance Services IF ENU",
            "Location": "HQ-Distribution",
            "Description": "AccountData 1",
            "Primary Organization Id": "1-1DG"
        },
        {
            "Name": "AccountExample3",
            "Primary Organization": "Millennium Institutional Finance Services IF ENU",
            "Location": "HQ-Distribution",
            "Description": "AccountData 3",
            "Primary Organization Id": "1-1DG"
        },
        {
            "Name": "AccountExample4",
            "Primary Organization": "Millennium Institutional Finance Services IF ENU",
            "Location": "HQ-Distribution",
            "Description": "AccountData 4",
            "Primary Organization Id": "1-1DG"
        }
    ]
    
  • Response body with a status code: 409 (Conflict)

    {
        "ERROR": "Insert operation on integration component 'Account' failed because a matching record in business component 'Account' with search specification '[Location] = \"HQ-Distribution\" AND [Name] = \"AccountExample1\" AND [Primary Organization] = \"Millennium Institutional Finance Services IF ENU\"' was found.(SBL-EAI-04383)"
    }