- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2017 08:04 AM
Hello
While trying to run a script to reorganize data, I keep running into a Data Policy Error. I'm not sure what is happening but it would appear that someone modified a data policy on the production system without testing it on the development system first. Whatever it is, it is preventing the script from updating the data I need to update in the script.
Is there any procedure that I can use to stop data policies from running so the script can run as intended? GlideRecord.setWorkflow (false) does not seem to have any effect. This is a one time script so I don't want to change anything or deactivate anything unless it is absolutely necessary.
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2017 08:13 AM
Hello Tahnalos,
Use GlideRecord.setUseEngines(false); to disable Data policies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2020 07:10 AM
This does not work for scoped scripts;
any other solution??...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2020 07:29 AM
Hi Johnny,
You can create a script include in Global application and then you can call that function inyour BR in scoped application.
BR,
Meenal