- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2022 10:26 PM
Hi All,
I provided rest api explorer url and third party is sending data to middleware and middleware sending the data to servicenow. I am receiving the data in ServiceNow but middleware is not receiving any success from my side. It is shaowing waiting at middleware end so it is trying again after 10 min and in servicenow we are getting multiple entries for same data. They are getting error: Server returned code: 500. Attached is the snapshot for the error and information which middleware received.
Kindly help!
Regards,
Shivani
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2022 02:38 AM
Thanks everyone for helping. The issue was with number of sql queries which can run at a time in servicenow. Increased the number and it started working.
Regards,
Shivani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2022 03:46 AM
Hi Vijay,
I am getting data in u_new_join_fieldglass table in servicenow but middleware is still getting this error.
I checked the ACL and the role which is there is already added in user account.
Regards,
Shivani

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2022 04:40 AM
Hi,
Can you please check from rest API explore or Postman with the same request body which is send by Middleware and check response.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2022 04:55 AM
You are getting an HTTP 500 rather than success. That means that ServiceNow is having an issue processing the transaction as expected.
As others have said, I recommend you capture the JSON payload from the middleware and try submitting it to the endpoint using the service account via something like postman.
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2022 10:46 PM
Hi All
Thanks for your reply. I tested it in postman. From midleware they are sending as an XML. So i added content-type as application/xml in hesder and tested the same in postman and got error:
Shivani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2022 11:35 PM
Hi,
the endpoint is REST Based so why are they sending XML
they should send JSON request format
try using JSON body in postman and it would work
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader