Data Policy Exception: The following fields are mandatory: Resolution code

subhankarda
Giga Contributor

' {
"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 !!!!

2 REPLIES 2

Mohammed8
Giga Sage

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:

 

Mohammed8_3-1764475792644.png

 

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."
}

 

Mohammed8_4-1764476515584.png

 

Mohammed8_6-1764476765099.png

 

If you find the answer useful, please mark it as solution accepted/helpful 

 

Thanks and Regards,

Mohammed Zakir

kaushal_snow
Giga Sage

@subhankarda ,

 

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.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Technical Consultant - ServiceNow Class of Legends 2025