Update soap message function error

geet
Tera Guru

Hi All,

I am using update soap function to update incidents from source to destination but i am getting the below error message while testing it.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>com.glide.processors.soap.SOAPProcessingException: Web service update called without a sys_id, ignored</faultstring><detail>com.glide.processors.soap.SOAPProcessingException: Web service update called without a sys_id, ignored</detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

Kindly help me in resolving it.

Regards,

Shikha Khanna

1 ACCEPTED SOLUTION

Hi Shikha,



Did you try insert function for updating. Generally insert function is preferred to insert/update information.


When the incident number matches it will update the info and if not found it will create a new incident. This holds true when your coalesce field is incident number.


Just try using insert function and also verify the syd ids



Mark Correct if this solves your issue or hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

30 REPLIES 30

Hello Ankur , When i'm inserting record , i see sys_id's are different when compared btw instances A and B . How to make the sys_id same in both instances when a record is inserted .


@Ankur Bawiskar   Hi Ankur, It works for update but when I try insert operation with the same webservice what I should pass in number mapping? If I pass blank like below it gives me error: Unable to resolve target record, coalesce values not present: u_number

If I pass any random incident number in number field it creates incident with the number I passed.

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://www.service-now.com/u_incident_create">
<soapenv:Header/>
<soapenv:Body>
<u:insert>
<u_assignment_group>Event Management</u_assignment_group>
<u_caller_id>nagarwa3</u_caller_id>
<u_contact_type>Systems Management</u_contact_type>
<u_category>Application</u_category>
<u_description>Create Incident by ESB-Update</u_description>
<u_short_description>SD-Create Incident by ESB</u_short_description>
<u_impact>2 - Medium</u_impact>
<u_urgency>2 - Medium</u_urgency>
<u_number></u_number>

</u:insert>
</soapenv:Body>
</soapenv:Envelope>

Hi,

Seems quite old thread.

I believe for number if you send empty then try checking the coalesce empty checkbox for the field map

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Old thread but very helpful.

coalesce on empty field worked on for updating and creating the record.

Thank you.

Glad to help.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader