Since Yokohama, the "Audit Relationship Changes" Business rule on cmdb_rel_ci has an undefined 'gr' variable in the conditions, causing Warnings in the system logDescriptionThe performance-related fix in Yokohama for the "Audit Relationship Changes" business rule on CI relationships table introduced new terms to the condition using undefined "gr" variable name.This causes Warnings in the system log and appnode localhost logs, every time a cmdb_rel_ci record is inserted/updated/deleted via GlideRecord (which means most CMDB IRE operations won't trigger it) and potentially prevents the business rule running.Steps to Reproduce Insert a record in cmdb_rel_ci, cmdb_rel_person or cmdb_rel_groupThe relevant "Audit Relationship Changes" business rule will run The following Warning is seen in the logs. 2025-05-20 00:38:57 (034) worker.6 worker.6 txid=5370f53ec329 SSI_5b615f5edb489950ad0c3ec3f396199d WARNING *** WARNING *** Evaluator: com.glide.script.RhinoEcmaError: "gr" is not defined. sys_script.ef316c58c0a8000600bf8a02710dd8ce.script : Line(2) column(0) 1: if (new GlideAuditor(current.getRecordClassName(), current.sys_id).auditTable() &&==> 2: !(sys_action == 'update' && !gr.parent.changes() && !gr.child.changes() && !gr.type.changes()) && 3: !SNC.CMDBUtil.isExcludedFromBR(current.parent.sys_class_name) && 4: !SNC.CMDBUtil.isExcludedFromBR(current.child.sys_class_name)) 5: new RelationshipAuditor().audit(current, sys_action); Stack trace: at sys_script.ef316c58c0a8000600bf8a02710dd8ce.script:2 at sys_script_include.5b615f5edb489950ad0c3ec3f396199d.script:540 at cmdb_inst_application_feed.a67d9f46dbc05550ad0c3ec3f39619bf.after_script:23 at cmdb_inst_application_feed.a67d9f46dbc05550ad0c3ec3f39619bf.after_script:29 The Stack trace is likely to be different depending on what's doing things to relationships. e.g. Stack trace: at sys_script.ef316c58c0a8000600bf8a02710dd8ce.script:2 at sys_script_include.771175e37f7012008c5abb87adfa9102.script:540 (updateRelationship) at sys_script_include.771175e37f7012008c5abb87adfa9102.script:507 (relocated) at sys_script_include.771175e37f7012008c5abb87adfa9102.script:219 (inner) at sys_script_include.771175e37f7012008c5abb87adfa9102.script:155 (process) at sysevent_script_action.8418fb8f7f7012008c5abb87adfa91a5.script:4 at sysevent_script_action.8418fb8f7f7012008c5abb87adfa91a5.script:8 Stack trace: at sys_script.ef316c58c0a8000600bf8a02710dd8ce.script:2 at sys_script.448824870a0a0b24000b128f92f7c975.script:12 at sys_script.448824870a0a0b24000b128f92f7c975.script:12 Stack trace: at sys_script.ef316c58c0a8000600bf8a02710dd8ce.script:2 at <refname>:1021 (createUpdateServers) at <refname>:2609 Stack trace: at sys_script.ef316c58c0a8000600bf8a02710dd8ce.script:2 at sys_script_include.445d60709733200010cb1bd74b2975a1.script:181 (updateDb) at sys_script_include.445d60709733200010cb1bd74b2975a1.script:160 (ensure) at sys_script_include.445d60709733200010cb1bd74b2975a1.script:145 at sys_script_include.445d60709733200010cb1bd74b2975a1.script:131 at sys_script_include.445d60709733200010cb1bd74b2975a1.script:9 at <refname>:1etc.WorkaroundThis problem has been fixed. If an upgrade is possible, please refer to the Fixed In section to determine the latest version with a permanent fix that the instance can be upgraded to. The attached untested/unapproved update set includes the fixed Zurich version of the BR. sys_remote_update_set_5c0ef57e1bdea69021a310ee034bcb7f.xml Current workaround is to modify the BR to remove the condition "!gr.parent.changes() && !gr.child.changes() && !gr.type.changes()) &&" and add "!gs.nil(current.parent) && !current.parent.changes() && !gs.nil(current.child) && !current.child.changes() && !gs.nil(current.type) && !current.type.changes()) &&" Final condition should be "new GlideAuditor(current.getRecordClassName(), current.sys_id).auditTable() && !(sys_action == 'update' && !gs.nil(current.parent) && !current.parent.changes() && !gs.nil(current.child) && !current.child.changes() && !gs.nil(current.type) && !current.type.changes()) && !SNC.CMDBUtil.isExcludedFromBR(current.parent.sys_class_name) && !SNC.CMDBUtil.isExcludedFromBR(current.child.sys_class_name)" Related Problem: PRB1894123