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

Kalaiarasan Pus
Giga Sage

Not sure if this is the correct reason, but can you add semi colons on the alert lines?


Same result.


What does commenting clear value statement do?


Same result.