Data Policy Exception: The following fields are mandatory: Resolution code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
' {
"state": "7",
"close_code": "Closed/Resolved by Caller",
"close_notes": "Issue resolved successfully from Oracle integrated process."
}'
Now which one the 'Resolution code' ? I can't understand from the Incident json responce .
Please help me !!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hi @subhankarda ,
The error (403) happens because close_code is a choice field, and you need to map choice fields with proper backend value shown below:
I Modified your request body to proper backend label "Resolved by caller" as above and got 200 success , you can check:
{
"state": "7",
"close_code": "Resolved by caller",
"close_notes": "Issue resolved successfully from Oracle integrated process."
}
If you find the answer useful, please mark it as solution accepted/helpful
Thanks and Regards,
Mohammed Zakir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Field Resolution code actually corresponds to the database field close_code, and if you are closing or resolving an incident you must provide a valid value for that close_code from the choice list (for example Resolved by caller rather than Closed/Resolved by Caller)...........otherwise the system out of box data policy that makes Resolution code (and Resolution notes) mandatory when state is Resolved or Closed will trigger a Data Policy Exception.....
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Technical Consultant - ServiceNow Class of Legends 2025