How to find Info Message?

GeoffreyOptumOp
Tera Expert

OK.  This is downright embarrassing!  But I can NOT figure out where this blue message is coming from...

find_real_file.png

What in the world am I missing?  I have tried the following:

Global Search (Hourglass at top right of any page)
Code Search (Global)
Business Rules Table
Client Scripts Table
Messages table (sys_ui_message)
Search for the sys_id of the record.
Form Design (annotations) - No such annotation is present.
Tried disabling all associated Business Rules, Client Scripts and UI Actions.

1 ACCEPTED SOLUTION

GeoffreyOptumOp
Tera Expert

OK.  Wow.  This ended up being:

1) A message defined in a custom table "u_notes", which was NOT indexed.

and

2) A client script (sys_script_client) defined against table "global", which makes an AJAX call and looks for records in that custom table, and if found, does a showFieldMsg() or addInfoMessage() operation.  It uses the current table g_form.getTableName() and current sys_id getUniqueValue() as the input parameters.

So basically the concept allows the company to attach a custom message to any record or field, with no additional code being written, and no new fields defined.

I couldn't find the message because of the indexing, and I couldn't find the client script because it was defined at a level way above the table I was working with.

@shloke04 , @Tony Chatfield , @Hitoshi Ozawa , @Allen Andreas , @Mark Roethof Thanks for your input.

View solution in original post

19 REPLIES 19

Hi, @Hitoshi Ozawa ,

I did not have the "Enable I18N Debugging" option on my instance, but I selected "Displays translation prefix on translatable strings" and here is the result:

find_real_file.png

So that confirms, I guess, that this message is coming from Script.  So why can't I find it???

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

It looks like the message is pulling some variable(s) to populate that message. Do you know where this is stored -" the primary use of this server is for the MIM JDB Integration" I would track that down and do a code search on that field value that holds that string to see what is calling it. 

Allen Andreas
Administrator
Administrator

Hi,

Hmm, nice job so far checking through all of those things.

I'm reaching with some of this, but just throwing this out there:

  • UI Policy with an advanced script attached
  • Form layout (so not form design, but form layout and see if annotation is used there)

Otherwise, if you didn't say you checked those things I'd be saying:

  • onLoad client script
  • Display business rule

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Thanks @Allen A 

There was only 1 UI Policy, and I Deactivated it, along with all Business Rules and Client Scripts.  I even deactivated all UI Actions and a Notification, just for overkill.  Message is still there.

I had not looked at Configure Form Layout Before.  But I don't see an annotation at the top.  It looks like this:

find_real_file.png

 

Hi,

Understood.

For checking the business rules for display type, did you check just this cmdb table or did you check at any higher level (parent) that this table may have been extended from?

I would do a search on "display" business rules for any cmdb table that has script that says a snippet of what is in that info message and see if you get anything or not even with the snippet, but display BR on any table that contains "cmdb" and walk it from there.

This is definitely very intriguing as to where it's coming from.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!