Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    chidambaram CT
    Cannot update non-existing object - action does not refer to...Answered
    Topic posted October 30, 2018 by chidambaram CTGold Medal: 3,500+ Points 
    30 Views, 3 Comments
    Title:
    Cannot update non-existing object - action does not refer to an existing list entry
    Summary:
    Cannot update non-existing object
    Content:

    Hi All, 

    I get following error message while updating contact data from third party into service cloud(upgrade site).  .I can't figure out this issue. 

     

    Cannot update non-existing object - action does not refer to an existing list entry
    While processing Contact->Phones(rno_v1_4::PhoneList)->PhoneList(rno_v1_4::Phone[])->action(rnb_v1_4::ActionEnum)

     

    Best Comment

    chidambaram CT

    For the benefit of others, I share this.

    Change update to  upsert resolves my issue.  

    action = ActionEnum.upsert

    Comment

     

    • Neil

      It sounds like it's trying to update one of your lists to a value which doesn't exist (i.e. is not in the predefined list in the console). It looks like it's maybe PhoneList but I'm not sure from that message as you have a few lists in there.

      Check that you have your lists configured as expected and the same across your sites. You mentioned using an upgrade site so if you have amended the lists since it was cloned the IDs might be out of sync with live IDs etc.

    • chidambaram CT

      Below code is working in live site, but in the upgrade site causing the above issue. Can anyone shed some light on this?

                    var phoneArray = new Phone[3];
                      phoneArray[0] = new Phone
                      {
                          action = ActionEnum.update,
                          actionSpecified = true,
                          Number = String.IsNullOrEmpty(workphn) ? " " : workphn,
                          PhoneType = new NamedID { ID = new ID { id = 0, idSpecified = true } }  // Work phone - contacts.ph_office
                      };
                      phoneArray[1] = new Phone
                      {
                          action = ActionEnum.update,
                          actionSpecified = true,
                          Number = String.IsNullOrEmpty(homephn) ? " " : homephn,
                          PhoneType = new NamedID { ID = new ID { id = 4, idSpecified = true } }  // Home phone - contacts.ph_home
                      };
                      phoneArray[2] = new Phone
                      {
                          action = ActionEnum.update,
                          actionSpecified = true,
                          Number = String.IsNullOrEmpty(mb_phn) ? " " : mb_phn,
                          PhoneType = new NamedID { ID = new ID { id = 1, idSpecified = true } }  // Mobile phone - contacts.ph_mobile
                      };
                      existingcontact.Phones = phoneArray;

    • chidambaram CT

      For the benefit of others, I share this.

      Change update to  upsert resolves my issue.  

      action = ActionEnum.upsert