Loading...
Loading...
Discovery's Business Rule 'Discovery - Update status started count' runs for ecc_queue Ouput inserts that are not actually from Discovery. This causes the error: JavaScriptException: Error: "<sys_id>" is not a valid sys_id of "discovery_status" table (sys_script_include.64949c364370311062f7f57c0ab8f26a.script; line 475) If the ecc_queue output happens to be for an Integration Hub Flow Action, then this error is also seen in the Flow Context log.
When flow action runs, it will create an ecc_queue output record for the IPaasActionProbe, then in the flow log or in the syslog, there's an error: 2025-11-15 16:00:03 (132) worker.6 worker.6 txid=98a54fac8715 TriggerEngine DEBUG: TriggerEngine:runEngine took 0.002ms to process for 'update' operation on the record sys_flow_context[xxx] 2025-11-15 16:00:03 (096) worker.6 worker.6 txid=98a54fac8715 ScriptEvaluator *** ERROR *** JavaScript evaluation error on: (function () { // Early return if action is aborted or if it is an RBA in the status if (current.isActionAborted() || (current.agent_correlator + '').indexOf('rba.') == 0) return; if (DiscoveryStatusMonitor.shouldUseOptimizedCountingForStatus(current.agent_correlator + '')) { DiscoveryStatusMonitor.trackProbe(current); return; } if (shouldUpdateCounters()) DiscoveryStatus.updateStatusStartedCount(current.agent_correlator); function shouldUpdateCounters() { return typeof _DO_NOT_UPDATE_STATUS_STARTED_COUNT == 'undefined' || _DO_NOT_UPDATE_STATUS_STARTED_COUNT == false; } })(); Stack trace: at sys_script_include.64949c364370311062f7f57c0ab8f26a.script:475 (getDiscoveryStatusRecord) at sys_script_include.64949c364370311062f7f57c0ab8f26a.script:442 (shouldUseOptimizedCountingForStatus) at sys_script.85e30e750a0a0b3500ea2102cdcfd118.script:6 at sys_script.85e30e750a0a0b3500ea2102cdcfd118.script:1 org.mozilla.javascript. JavaScriptException: Error: "xxx" is not a valid sys_id of "discovery_status" table (sys_script_include.64949c364370311062f7f57c0ab8f26a.script; line 475) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1200) at script.getDiscoveryStatusRecord(sys_script_include.64949c364370311062f7f57c0ab8f26a.script:475) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:940) at org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:127) at com.glide.caller.gen.sys_script_include_64949c364370311062f7f57c0ab8f26a_script.call(Unknown Source) at com.glide.script.ScriptCaller.call(ScriptCaller.java:22) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:125) at org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:3296) at org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:3204) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1968) at script.shouldUseOptimizedCountingForStatus(sys_script_include.64949c364370311062f7f57c0ab8f26a.script:442) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:940) at org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:127) at com.glide.caller.gen.sys_script_include_64949c364370311062f7f57c0ab8f26a_script.call(Unknown Source) at com.glide.script.ScriptCaller.call(ScriptCaller.java:22) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:125) at org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:3296) at org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:3204) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1968) at script(sys_script.85e30e750a0a0b3500ea2102cdcfd118.script:6) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:940) at org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:127) at com.glide.caller.gen.sys_script_85e30e750a0a0b3500ea2102cdcfd118_script.call(Unknown Source) at com.glide.script.ScriptCaller.call(ScriptCaller.java:22) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:125) at org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:3296) at org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:3204) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1968) at script(sys_script.85e30e750a0a0b3500ea2102cdcfd118.script:1) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:940) at org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:127) at com.glide.caller.gen.sys_script_85e30e750a0a0b3500ea2102cdcfd118_script.call(Unknown Source) at com.glide.script.ScriptCaller.call(ScriptCaller.java:22) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:125) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:722) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:4812) at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:141) at com.glide.script.ScriptCompiler.executeAndPublishMetric(ScriptCompiler.java:83) at com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:517) at com.glide.script.ScriptEvaluator.evaluate(ScriptEvaluator.java:242) at com.glide.script.fencing.GlideScopedEvaluator.evaluateScript(GlideScopedEvaluator.java:384) at com.glide.script.BusinessRule.runScript(BusinessRule.java:504) at com.glide.script.BusinessRule.runSyncBusinessRule(BusinessRule.java:359) at com.glide.sys.security.data_filter.DataFilterDisableOnCurrentUtil.lambda$withDataFiltersOnCurrentDisabled$0(DataFilterDisableOnCurrentUtil.java:24) at com.glide.sys.security.data_filter.DataFilterDisableOnCurrentUtil.withDataFiltersOnRecordDisabled(DataFilterDisableOnCurrentUtil.java:40) at com.glide.sys.security.data_filter.DataFilterDisableOnCurrentUtil.withDataFiltersOnCurrentDisabled(DataFilterDisableOnCurrentUtil.java:19) at com.glide.sys.security.data_filter.DataFilterDisableOnCurrentUtil.withDataFiltersOnCurrentDisabled(DataFilterDisableOnCurrentUtil.java:23) at com.glide.script.BusinessRule.runBusinessRule(BusinessRule.java:242) at com.glide.script.BusinessRule.run(BusinessRule.java:204) at com.glide.script.GlideRecordBusinessRules.run(GlideRecordBusinessRules.java:247) at com.glide.script.GlideRecord.runScripts(GlideRecord.java:1585) at com.glide.script.GlideRecord.runScriptsAndEngines0(GlideRecord.java:1475) at com.glide.script.GlideRecord.runScriptsAndEngines(GlideRecord.java:1466) at com.glide.script.GlideRecord.insert(GlideRecord.java:5800) at com.glide.script.GlideRecord.insert(GlideRecord.java:5723) at com.glideapp.ecc.ECCMessage.insert(ECCMessage.java:130) at com.snc.process_flow.engine.MIDSender.legacySend(MIDSender.java:87) at com.snc.process_flow.engine.integration.GlidePAEnvironmentShifter.shiftEnvironment(GlidePAEnvironmentShifter.java:46) at com.snc.process_flow.engine.ProcessAutomation.shiftEnvironment(ProcessAutomation.java:160) at com.snc.process_flow.engine.ProcessAutomation.runWithExecutionResult(ProcessAutomation.java:131) at com.snc.process_flow.engine.ProcessAutomation.run(ProcessAutomation.java:70) at com.snc.process_flow.engine.GlideProcessAutomation.runSync(GlideProcessAutomation.java:245) at com.snc.process_flow.engine.GlideProcessAutomation.runWithDomain(GlideProcessAutomation.java:388) at com.snc.process_flow.engine.GlideProcessAutomation.lambda$runAsUserSync$2(GlideProcessAutomation.java:353) at com.snc.process_flow.engine.PFSessionClone.run(PFSessionClone.java:47) at com.snc.process_flow.engine.GlidePFSession.run(GlidePFSession.java:70) at com.snc.process_flow.engine.GlideProcessAutomation.runAsUserSync(GlideProcessAutomation.java:352) at com.snc.process_flow.engine.GlideProcessAutomation.messageFlow(GlideProcessAutomation.java:457) at com.snc.process_flow.engine.GlideProcessAutomation._start(GlideProcessAutomation.java:752) at com.snc.process_flow.engine.GlideProcessAutomation$StartBuilder.start(GlideProcessAutomation.java:1853) at com.snc.process_flow.engine.subflow.StartFlowOperation.run(StartFlowOperation.java:435) at com.snc.process_flow.engine.Operation.run2(Operation.java:90) at com.snc.process_flow.v2.exec.OpRunner.runOperation(OpRunner.java:74) at com.snc.process_flow.v2.exec.OpRunner.runOperation(OpRunner.java:68) at com.snc.process_flow.v2.exec.OpInstructionExecutor.runOperation(OpInstructionExecutor.java:62) at com.snc.process_flow.v2.exec.OpInstructionExecutor.execute(OpInstructionExecutor.java:29) at com.snc.process_flow.v2.exec.OpInstructionExecutor.execute(OpInstructionExecutor.java:16) at com.snc.process_flow.v2.exec.EngineV2.executeInstructions(EngineV2.java:183) at com.snc.process_flow.v2.exec.EngineV2.run(EngineV2.java:107) at com.snc.process_flow.v2.exec.EngineRunner.lambda$run$0(EngineRunner.java:28) at com.snc.process_flow.v2.exec.enviroment.execution.ExecutionScopeRunner.run(ExecutionScopeRunner.java:37) at com.snc.process_flow.v2.exec.EngineRunner.run(EngineRunner.java:28) at com.snc.process_flow.engine.EngineV2Adapter.runWithExecutionResult(EngineV2Adapter.java:160) at com.snc.process_flow.engine.EngineV2Adapter.resumeWithExecutionResult(EngineV2Adapter.java:443) at com.snc.process_flow.engine.ProcessAutomation.runWithExecutionResult(ProcessAutomation.java:107) at com.snc.process_flow.engine.ProcessAutomation.run(ProcessAutomation.java:70) at com.snc.process_flow.engine.GlideProcessAutomation.runSync(GlideProcessAutomation.java:245) at com.snc.process_flow.engine.GlideProcessAutomation.runWithDomain(GlideProcessAutomation.java:388) at com.snc.process_flow.engine.GlideProcessAutomation.lambda$runAsUserSync$2(GlideProcessAutomation.java:353) at com.snc.process_flow.engine.PFSessionClone.run(PFSessionClone.java:47) at com.snc.process_flow.engine.GlidePFSession.run(GlidePFSession.java:70) at com.snc.process_flow.engine.GlideProcessAutomation.runAsUserSync(GlideProcessAutomation.java:352) at com.snc.process_flow.engine.GlideProcessAutomation.messageFlow(GlideProcessAutomation.java:457) at com.snc.process_flow.engine.GlideProcessAutomation.messageFlow(GlideProcessAutomation.java:428) at com.snc.process_flow.engine.GlideProcessAutomationWrapper.messageFlow(GlideProcessAutomationWrapper.java:29) at com.snc.process_flow.engine.ProcessHubEventHandler.doSendMessage(ProcessHubEventHandler.java:431) at com.snc.process_flow.engine.ProcessHubEventHandler.process(ProcessHubEventHandler.java:257) at com.snc.process_flow.engine.ProcessHubEventHandler.processEvent(ProcessHubEventHandler.java:184) at com.snc.process_flow.event.FlowNowMQMessageHandler.processEvent(FlowNowMQMessageHandler.java:91) at com.snc.process_flow.event.FlowNowMQMessageHandler.process(FlowNowMQMessageHandler.java:63) at com.glide.processing.framework.job.nowmq.NowMQProcessingFrameworkJob.process(NowMQProcessingFrameworkJob.java:149) at com.glide.processing.framework.job.nowmq.NowMQProcessingFrameworkJob.process(NowMQProcessingFrameworkJob.java:50) at com.glide.processing.framework.job.ProcessingFrameworkJob.processEntities(ProcessingFrameworkJob.java:147) at com.glide.processing.framework.job.ProcessingFrameworkJob.execute(ProcessingFrameworkJob.java:94) at com.glide.schedule.JobExecutor.lambda$executeJob$1(JobExecutor.java:216) at com.snc.db.data_replicate.replicator.DataReplicationAdvisors.runInOriginatorContext(DataReplicationAdvisors.java:74) at com.glide.schedule.JobExecutor.lambda$inDataReplicationContext$3(JobExecutor.java:246) at com.glide.schedule.JobExecutor.executeJob(JobExecutor.java:219) at com.glide.schedule.JobExecutor.execute(JobExecutor.java:195) at com.glide.schedule.JobExecutor.execute(JobExecutor.java:184) at com.glide.schedule_v2.SchedulerWorkerThread.executeJob(SchedulerWorkerThread.java:623) at com.glide.schedule_v2.SchedulerWorkerThread.lambda$process$3(SchedulerWorkerThread.java:409) at com.glide.worker.TransactionalWorkerThread.executeInTransaction(TransactionalWorkerThread.java:35) at com.glide.schedule_v2.SchedulerWorkerThread.process(SchedulerWorkerThread.java:409) at com.glide.schedule_v2.SchedulerWorkerThread.run(SchedulerWorkerThread.java:183) 2025-11-15 16:00:03 (058) worker.6 worker.6 txid=98a54fac8715 TriggerEngine DEBUG: TriggerEngine:runEngine took 0.002ms to process for 'update' operation on the record sys_flow_context[18a543ac8e15f6103df16e8768f0b55f] 2025-11-15 16:00:02 (813) worker.6 worker.6 txid=98a54fac8715 TriggerEngine DEBUG: TriggerEngine:runEngine took 0.005ms to process for 'update' operation on the record sys_flow_context[18a543ac8e15f6103df16e8768f0b55f]
This problem has been fixed in Australia. 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. Given this runs on insert of the ecc_queue Output, but does not prevent the record going into the ecc_queue, or being executed by the MID Server, this should not be breaking anything, and the error can probably be ignored.
PRB1919668
Click on a version to see all relevant bugs
ServiceNow Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.