ITOM Pattern Scoped Pre Execution Scripts are not calling the global namespace causing "SNC is not defined" JavaScript ExceptionDescription 1. ITOM Pattern Scoped Pre execution Scripts are calling SNC.PrePatternExecutionData instead of global.PrePatternExecution to get the Pre Pattern Execution data which causes a "variable is not defined" JavaScript exception in below example. org.mozilla.javascript.EcmaError: "SNC" is not defined.Caused by error in script at line 85: * below is an example of the possible variables that can be added.6: */7:==> 8: var data = new SNC.PrePatternExecutionData();9:10: data.addString('shouldIncludeDomain',gs.getProperty('glide.discovery.hostname.include_domain', 'false'));11: data.addString('hostnameCase',gs.getProperty('glide.discovery.hostname.case', 'No change')) 2. Affected Pre/Post Scripts Fetch upper case and fqdn propertiesPattern: Kubernetessa_pattern_prepost_script.do?sys_id=4f269e68dbc40c9019e5233c8a9619a9Fetch Hostname Formatting Attributes - HMCPattern: IBM HMC Serversa_pattern_prepost_script.do?sys_id=66edf6cedb8fb34035cb3a8f29961913Get all Kafka BrokersPattern: ZooKeeper Serversa_pattern_prepost_script.do?sys_id=71f9220b1b21a890542a98efbd4bcb37Get all vCenter DataCentersPattern: AVI Load Balancer Controllersa_pattern_prepost_script.do?sys_id=e9945396db500010387fee805b9619bb Cause This looks like a regression from PRB1288983 that was raised back in the London release and has been fixed since Istanbul. Root Cause is still under investigation by ServiceNow Support and Dev teams. Resolution These Pre Execution Scripts should be calling "var data = new global.PrePatternExecution();" as are the other Pre execution scripts in the Discovery and Service Mapping application. 1. Open a record for one of the four affected Pre Execution Scripts. 2. Find the line "var data = new SNC.PrePatternExecutionData();" near the beginning of the Script (Note the exact line number will vary in each script) 3. Make the below change to the line. Old value:"var data = new SNC.PrePatternExecutionData();"New Value:"var data = new global.PrePatternExecution(); " 4. Save the Pre Execution Script 5. Repeat the procedure in Steps 1 through 4 for each of the Pre Execution Scripts.