This is a public Forum  publicRSS

Topic

    Farhad Pagdiwala
    Unable to update Customer Address containing a NamedID...
    Topic posted August 2, 2017 by Farhad PagdiwalaRegular, last edited August 11, 2017 
    49 Views, 7 Comments
    Title:
    Unable to update Customer Address containing a NamedID element.
    Content:

    We are having issue while updating CustomerAddress object, which is a custom object.

    The web service is returning the below error.

    SOAP fault from Item: RightNowSyncService|urn:wsdl.ws.rightnow.com/v1_3 failed
    Found out-of-order or unrecognized node while parsing node of type DataValue|urn:generic.ws.rightnow.com/v1_3
    NULL value is set to a non-nillable element GenericFields of object GenericObject
    Failed in setting value for element GenericFields array position 0 of object GenericObject
    NULL value is set to a non-nillable element RNObjects of object UpdateMsg
    Failed in setting value for element RNObjects array position 0 of object UpdateMsg
    NULL value is set to a non-nillable element Update of object Update 
    NULL returned from the Update deserializer due to missing or invalid XML

    This object contains a NamedID type field called Purpose, which stores a value 1 = Bill_To or 2 = Ship_To based on Menu Option.

    Can anyone please guide me as to how the XML payload should be designed so that it can update the NAMED_ID object element.

    Version:
    Oracle Service Cloud August 2016 (Build 619 SP 5, CP 619)

    Answer

     

    • Pramod V

      PFA sample code. In my case:

      Parent Object: Incident

      Menu only object name: test_menu_only_co

      I have shared samples on setting this using both Name and IDs. Replicate the same for Contact.

      ~VIP

    • Farhad Pagdiwala

      Thank you Pramod for guiding me and for the sample XML SOAP payload files.

       With regards to the sample file where it's been updated using ID for NAMED_ID type field, I've a few questions.

      1. Since I need to update the Custom object (CustomerAddress), do I need to have CustomFields tag?

      2. In the GenericFields tag, the name is set  to "CO". I believe, this is the name of package. Is that correct? I

              a. f yes, then you're again adding the custom object IncidentCustomFields with Namespace and TypeName tags, why is that?

              b. Do you've a custom package called IncidentCustomFields and custom object called IncidentCustomFields as well?

              c. I would think that the typename should be test_menu_only_co object?

              I'm trying to wrap my thinking  around your sample XML payload format. So, please guide me here.

      Thanks,

      Farhad.

    • Pramod V

      Thanks for your questions, 

      I have provided an example of Standard object to Custom only menu object linking. So if I understand is CustomerAddress and Purpose is a menu ID field and you say that the object is residing in "CO" package.

      Please correct me if I understand wrong.

      ~VIP

    • Farhad Pagdiwala

      Yes, you're correct. CustomerAddress object is a custom object and Purpose is a menu ID field in that object. The custom object and the menu both reside in CO package.

      For better understanding of the object structure, I'm uploading the document containing the screenshot of CustomerAddress object structure.

      Please guide me. Appreciate your help.

      Thanks,

      Farhad.

       

    • Pramod V

      Apologies for late response, PFA code.

       

    • Farhad Pagdiwala

      Hello Pramod:

                  No Problem. Thank you so much for the sample code. So, basically for update operation as well it will be the similar SOAP XML structure, but with Update call in                           <soap:Body> tag or is it that we cannot perform Update on NAMED_ID columns?

      Thanks,            

      Farhad.

    • Pramod V

      Yes. PFA sample code.

      ~VIP