The CreatorCon Call for Content is officially open! Get started here.

Finding error messages

gunishi
Tera Guru

Hi there, 

 

I have a form that displays an error message if there are no comments on submission. 

 

I cannot seem to find the business rule or client script that contains this message though. 

 

Where/how should I start looking?

 

I've looked at the business rules and the client scripts to see if I can find the script there, but still to no avail. 

 

Any help would be much appreciated. 

 

Kind regards, 

G

1 ACCEPTED SOLUTION

gunishi
Tera Guru

Thanks @Dr Atul G- LNG @Maik Skoddow @Anurag Tripathi @Ankur Bawiskar for the responses. 

 

For those still looking for an answer I found a quick way to check (might not catch all instances) is to open up studio and code search within the application you are in.

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@gunishi 

Did you check any data policy is operating? that might be the cause

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Anurag Tripathi
Mega Patron
Mega Patron

Have you checked the ui policy?

How are you searching?

You may not get the message, but if the field is made Mandatory , and not filled in, then you will get the error.

-Anurag

Maik Skoddow
Tera Patron
Tera Patron

Hi @gunishi 

 

the problem with such messsage is, that you don't know whether the original message contains any placeholders which are replaced via API call gs.getMessage().

 

Open table sys_ui_message and search within the message text for example for "{0}":

 

MaikSkoddow_0-1702306607437.png

 

Instead, to find your error message you have to reduce your search to some certain text pieces which are candidates that have not been replaced by any dynamic values.

Maik

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @gunishi 

 

All who answered are experts here and if you can share the screen shot and form details , we are able to help you. I remember, few days back I saw same issue but user did not share the screen shot. So please do needful. 

*************************************************************************************************************
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]

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