Unable to update / delete a record using SOAP Webservices

AbdulAzeez
Mega Guru

Hello All,

I am working on SOAP Webservices using Instance to Instance configuration..

I have a Dev Instance #1 where if i insert i can see that the record is created on Dev Instance #2 but when i am trying to update the existing record system is hitting an error on HTTP status: 500

<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>

Note: I provide the sys_id of existing record which i get it from Dev Instance #2.

Please help me out this, thanks in advance.

1 ACCEPTED SOLUTION

Hi Abdul Azeez,



Please try this SOAP message and let me know



<short_description>test</short_description>


<state>2</state>


<sys_id>5bc258724f213200ead63ce18110c705</sys_id>



You should not include ${} in the message.



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response


View solution in original post

11 REPLIES 11

Glad it worked. The system will not recognize sys_id's with ${}.



Can you please mark my answer as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.



https://community.servicenow.com/docs/DOC-5601




Thanks


Please Hit like, Helpful or Correct depending on the impact of the response


I did it. Thank you.


harishdasari
Tera Guru

Hi Abdul,



in 1st instance check the record is available or not. If it is exists then,


check the same record   exists in 2nd instance or not.



If the record exists in both the instances then compare the SYS ID, whether it is matching or not.



if it is saying that No sys id, then definitely that record might not be there in the instance.



thanks


Harish,



I tried removing $<> and it works. Thanks for your info.


AbdulAzeez
Mega Guru

Alikutty,



When i am trying for Change Management table trying to insert a new record i am getting a following error.




<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: Insufficient rights for creating new records</faultstring><detail>com.glide.processors.soap.SOAPProcessingException: Insufficient rights for creating new records</detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>




Any idea ?