Router is not getting discovered when "Network Device Exploration" option disabledDescription<!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> Router is not getting discovered when the "Network Device Exploration" option disabled. Error in pattern logs: 2019-01-13 23:03:53: Identification Engine: Discovery status is FAILURE, Identification sections in pattern failed: section: discovery, error: JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-Insert physical_interface_count to cmdb_ci_ip_router' at line 8 5: var interfaceType; 6: var physicalInterfaceTypesArray = physicalInterfaceTypes.split(","); 7: var numOfPhysicalInterfaces = 0; ==> 8: for(var i = 0; i < routerExitInterfacesTable.size(); i++){ 9: routeMask = routerExitInterfacesTable.get(i).get("ipRouteMask"); 10: interfaceType = routerExitInterfacesTable.get(i).get("ifTypek"); 11: if(routeMask != "255.255.255.255" || physicalInterfaceTypesArray.indexOf(interfaceType) > -1){ Release or EnvironmentAll Versions.CauseThe "Network Device Exploration" tab is referencing a record in the table "discovery_category_device_info". https://<Instance_Name>.service-now.com/nav_to.do?uri=discovery_category_device_info.do?sys_id=91d41a39c3510200d8d4bea192d3aed5 Observe the list of Probes and Libraries. If probes are used for Network Discoveries, under SNMP Classifications for records like "Standard Network Switch" and "Standard Network Router", this would set "Active = false" for the related probes in the "Triggers probes" related lists.For Patterns, there is a Business Rule on this "discovery_category_device_info" table called "Notify Mid about change". Patterns like "Network Router" and "Network Switch" do include calls to the libraries for probes like "SNMP - Routing" and "SNMP - Switching". Therefore, if this "Network Device Exploration" is set to false, this means that those steps will essentially not run when we run this Pattern. ResolutionOpen below link: https://<Instance_name>/nav_to.do?uri=%2Fdiscovery_category_device_info_list.do Open "Network Device Exploration" Under libraries -> Unlock and remove "SNMP - Routing". Under probes -> Unlock and remove "SNMP - Routing". Re-run the discovery with " "Network Device Exploration" option disabled.