UI policy running after being deleted

dannyk
Tera Contributor

I've encountered something very odd today. A UI policy that continues running after being deleted.

I had a UI policy that was setting some incident fields to read only on specific state values. This was inactive - but it turned out that it was still running. I searched for UI policies running against task doing the same thing - but there are none. UI policy debugging shows that it is the UI policy named "Set fields to read only on resolve". There was only one of these. And this UI policy was certainly inactive.

As the UI policy was inactive and had been replaced with another, I decided to delete it just to stop this odd behaviour.

And what do you know? It's still running and still showing up in the debug log. Even after clearing the log, creating a new incident, and trying again, it's still there. Clearing the log, disable debug, re-enable debug - retry. Still happening. cache.do - retry. Still happening!

Has anyone seen anything similar? This is a Fuji P12 HF1 version instance.

I'm starting to worry that maybe I'm losing my marbles...

Cheers,

Danny

1 ACCEPTED SOLUTION

Two options - option 1: turn on the field watcher on that field and see what's going on.



Field Watcher - ServiceNow Wiki



Option 2: check sys_ui_policy_action to ensure no other UI policies are working against that table/field.



Also, check your client scripts! (which may be revealed by option 1)


View solution in original post

9 REPLIES 9

Do you have Multi Domain Instance ?


That's a good question. Daniel, this doesn't happen to be a domain separated instance, does it?@


Ah ha! GOT IT! It's a Data policy. But field watcher, for whatever reason, shows it as a UI policy.



Nice. Thanks Chuck! Really appreciate your help.



D


dannyk
Tera Contributor

Because "use as UI policy on client" is set.



Guess who created it too? Me of course.



Doh!



Cheers all!


jtw1228
Giga Contributor

Thanks! I had this same exact problem and your post helped me out a lot. Thanks again!