How to fix error "Could not load UIPolicy script"?

peterraeves
Mega Guru

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

Image 1.png

I put the UI Policy to run on the portal (or 'All')

Image 2.png

When I open the record producer on the service portal, I receive the following errors

Image 3.png

1 ACCEPTED SOLUTION

Then this goes to ServiceNow support.


View solution in original post

10 REPLIES 10

Then this goes to ServiceNow support.


We're facing the same issue. Can you tell us what was the resolution to this?


We moved the functionality to client scripts


elemonnier
Tera Expert

Any update on this one?

Brian O_Donnell
Tera Guru

For anyone else looking, this is a known error with no fix yet:

https://hi.service-now.com/kb_view.do?sysparm_article=KB0695240