Integration issue - REST API PUT - {"error":{"message":"Exception while reading request","detail":"Cannot decode: java.io.StringReader@12fba12"},"status":"failure"}

Community Alums
Not applicable

Hi i have done one integration between two instance (Source and Target instance).

I am facing this issue when i am updating "u_solution" custom field in custom table of the target instance.

I am sending the below data to the target instance.

ab\ghi335r- User has already left the business - no access can be granted

ab\ghi565r- User does not have First Name which is a specific requirement for this request.
ab\ghi015r- User does not have Last Name which is a specific requirement for this request.

 

 

Kindly help me on the same.

 

Regards,

Sirraj

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Sirraj,

How are you sending the value from 1 instance to another?

are you using REST API?

If yes then how are you setting the string value?

you have backslash in your value are you escaping that

use JSON.stringify() to convert the data before sending

Mark Correct if this solves your issue and also mark 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

6 REPLIES 6

@Sirraj 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Thanks!
Ankur

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

@Sirraj 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Thanks!
Ankur

 

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