Getting Error in "Input ECC Queue" as "No sensors defined". I am getting this when trying to execute one of the "Remote file import".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2016 08:14 AM
We have recently upgraded to "Helsinki Patch 1". Before this we were on "Dublin" version.
Post upgrade we are unable to upload the .csv file using "Remote File Imports", which uses MID Server. Whenever we are trying to execute this import, we are getting error in "Input ECC Queue" as below -
<?xml version="1.0" encoding="UTF-8"?><results error="Caused by error in JavaScript probe 'CSRemoteFileImport' at line 2 1: var remoteFileImport = new CSMIDServerRemoteFileImport(); ==> 2: remoteFileImport.getRemoteFileAndUploadToInstance() " probe_time="120" result_code="900000"><result error="Caused by error in JavaScript probe 'CSRemoteFileImport' at line 2 1: var remoteFileImport = new CSMIDServerRemoteFileImport(); ==> 2: remoteFileImport.getRemoteFileAndUploadToInstance() "><output>Evaluation error: Caused by error in JavaScript probe 'CSRemoteFileImport' at line 2
1: var remoteFileImport = new CSMIDServerRemoteFileImport();
==> 2: remoteFileImport.getRemoteFileAndUploadToInstance()</output></result><parameters><parameter name="targetImportSet" value="u_hecat_nps_coa"/><parameter name="agent" value="mid.server.apps1534"/><parameter name="instance" value="https://removed.service-now.com/"/><parameter name="filePath" value="\\test\InterfaceFiles\ServiceNow\Outgoing\Archive\SNCOA20160704.csv"/><parameter name="priority" value="2"/><parameter name="script" value="var remoteFileImport = new CSMIDServerRemoteFileImport(); remoteFileImport.getRemoteFileAndUploadToInstance()"/><parameter name="sys_id" value="8ec67cc7db012e0049f5fb9dae961973"/><parameter name="sequence" value="1566fbac7cf0000001"/><parameter name="sys_created_on" value="2016-08-09 14:35:27"/><parameter name="name" value="CSRemoteFileImport"/><parameter name="topic" value="JavascriptProbe"/><parameter name="state" value="ready"/><parameter name="queue" value="output"/><parameter name="ecc_queue" value="8ec67cc7db012e0049f5fb9dae961973"/></parameters></results>
I checked few things as below -
1. Checked below ACLs if they have "MID_Server" role added for read access, it is there
a. record/ecc_agent_script_include.*/read
b. record/ecc_agent_script_include/read
2. Tried to add "skip_sensor" parameter to probe "JavascriptProbe" with value "true", but still the same error.
3. Checked some where for REST & SOAP messages we can add "rest.setEccParameter('skip_sensor', true);" or "soap.setEccParameter('skip_sensor', true);", but unable to get where we can add in the script include "CSRemoteFileImport".
Can anyone help me to check this? PFA the "CSRemoteFileImport" script include for the reference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2016 05:20 AM
I have added the following as Comments to the package on Remote File Importer (Import Files from a MID Server) on ServiceNow Share:
Tried this on Helsinki but got errors. ECC Queue returned "Caused by error in JavaScript probe 'CSRemoteFileImport' at line 2" and Grabbing MID Logs agent0.log.0 had "WARNING org.mozilla.javascript.EcmaError: "java" is not defined" at line 67, line 21 and line 2.
== FIX ==
Navigate to MID Server / Script Includes and click CSMIDServerRemoteFileImport to Edit
Line 67 after "new" prepend "java." with "Packages."
Line 113 after "newInstance" prepend "java." with "Packages."
Submit and run again
67: var userpass = new Packages.java.lang.String(this.probeParameters.instanceUser + ":" + this.probeParameters.instancePassword);
113: var data = new Packages.java.lang.reflect.Array.newInstance(Packages.java.lang.Byte.TYPE, 4096);
Good Luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2016 04:55 AM
HERO!!!
U solved my issue! Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2016 02:24 AM
Hi Alex & arthurm.gallagher
I'm trying to utilize this utility for importing files from the remote servers.
Steps taken:
1) I have imported and committed the update set
2) Ran the remote file import,
3) Got the error like below:
4) I tried searching in the 'MID Server Script Includes and click CSMIDServerRemoteFileImport to Edit' like Arthur suggested, i dont see the lines like below:
Line 67 after "new" prepend "java." with "Packages."
Line 113 after "newInstance" prepend "java." with "Packages."
i think i need to some initial set up before running this utility, could you please let me know, what am i missing?
Thanks
Yogish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2018 06:40 AM