Getting "RP is not defined" error on Agent Workspace

kushal_dangare
Tera Expert

Hi,

I am getting "RP is not defined" error on Agent Workspace when I open any incident or change request.

Its coming from Business rule "SN - Hide Empty Catalog Variables" condition "!RP.isPopup()".

How can I get rid of this error?

 

find_real_file.png

 

find_real_file.png

 

Thanks,

Kushal.

6 REPLIES 6

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I think disabling that business rule would probably do it. I would figure out what it's doing and then try to replicate it with a different condition.

Community Alums
Not applicable

Hi Brad,

We also have this issue.  This business rule is hiding empty variables on catalog tables.  We have this same business rule at our company as well.  Hoping @Mark Stanger might have some insight as well?

https://servicenowguru.com/scripting/business-rules-scripting/hide-empty-variables-standard-form/

Arpitha Gopalsw
Giga Guru

Same issue we are also facing.. Please advice

Aldrin Dionisi1
Tera Contributor

I was able to fix this by adding (typeof RP !== 'undefined')

So in your condition you can add this:

typeof RP !== 'undefined' && !RP.isPopup()