- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2014 11:35 AM
Hello Guys,
I'm facing some issue to run a background script to update some fields in the CMDB CI table, the problem is that we have other fields that are mandatory in this form and also, we have a lot of empty data in these mandatory fields (I think this was caused by an import from the old system to ServiceNow, some of the fields are empty today but they should have data and they are mandatory).
So, when I try to run a background script to update two or three of these fields, I've got an error saying the others are mandatory:
Background message, type:error, message: Data Policy Exception: Operating System is mandatory , OS Service Pack is mandatory , Asset Ownership is mandatory , Part Number is mandatory , Warranty expiration is mandatory
Background message, type:error, message: Data Policy Exception: Part Number is mandatory
My question is: Is there any way to run the script, update the fields I need and ignore the ones that is empty and are mandatory?
Thanks!
Milton P. Silva Junior
Solved! Go to Solution.
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2014 12:48 PM
Check out what Data Policies (System Policy \ Data Policies) you have configured and you could temporarily deactivate them, run the script then activate them once again? You can minimize the possibility of someone else updating records without the Data Policies being active if you do this after hours, which I would highly suggest anyways.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 09:26 PM
Hi,
There is a new way introduced by ServiceNow recently.
You can use "setUseEngines(false)" in your background script. With the help of this all the data policies running during that period of time be stop and your script will be executed successfully.
Please mark helpful if you were able to solve your problem with the help of my article.