Error message when creating UI Policy

hosmmz
Tera Contributor

Hi all, 

 

I sometimes get the following error message in a red banner at the top "There are multiple UI Policies with the same Order for this field - their run order is" when i try creating UI Policies/ UI Policy Actions. Any thoughts?

1 ACCEPTED SOLUTION

Sayali Gurav
Tera Guru
Tera Guru

Hello @hosmmz ,

"There are multiple UI Policies with the same Order for this field their run order is"

  • It shows when using the same variable in "Catalog Conditions" and the variables which are added in the 'Catalog UI Policy Actions' section, its order number is the same, try it by changing the order numbers of all the UI policies which are using the same variables in Policy Action.

Thanks & Regards,

 Sayali Gurav

View solution in original post

6 REPLIES 6

Siva Jyothi M
Mega Sage

Hi @hosmmz,

 

This is a sort of warning message to let you know that there can be conflicts in your UI policies if the order is not properly set. You may have written multiple UI policy actions on the same field and it should run in a specific order on client side.

Please set an Order value for the UI policies on the table you are referring to and the error would disappear.

If this is specific to a catalog item, only update the one which are having the same field or variable used in different UI policies.

Please have a look at this if it helps.

https://www.servicenow.com/community/developer-forum/multiple-ui-policies-on-the-same-field/m-p/1968...

 

Mark this answer as correct and helpful if it solves your issue.

 

Regards,

Siva Jyothi M.

Nivedita Patil
Mega Sage
Mega Sage

Hi @hosmmz ,

 

Error occurs because there are multiple UI policies with same order. please change the order of UI policies.

 

Mark my answer correct and helpful if helps you.

 

Thanks,

Nivedita Patil

AndersBGS
Tera Patron
Tera Patron

Hi @hosmmz ,

 

You should go to your UI Policies and verify the order you have listed on the specific table / field just as shown below:

AndersBGS_0-1694066668881.png

Based on your finding, you should decide which UI Policy that should come in which order, and then change the order.

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @hosmmz 

 

Greetings!!

The prime reason for this to aware the user that he/she building UI policy on same field with same order number.  So user need to decide which UI policy run first.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************