- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2017 03:34 AM
I created a very basic UI Policy script for testing purposes and received the following error "Could not load UIPolicy script". What is going on and how can I fix this?
This is the UI Policy
I put the UI Policy to run on the portal (or 'All')
When I open the record producer on the service portal, I receive the following errors
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2017 06:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2023 05:57 AM - edited ‎10-19-2023 05:59 AM
This is how I fixed the error (very strange and random):
- comment all your code in the UI Policy except Alert() then save and refresh/hard reload the page.
-- You should see the alert but no errors.
- uncomment your code line by line, save, and reload the page.
-- no error you should see until a specific line, then try a different approach for that line, save, and reload the page.
- continue the same until all your ui policy code is error-free.
This worked for me good luck.