Issue with the Remote File Importer Mechanism
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2018 11:56 AM
Hi Folks I am facing an issue with the Remote file importer functionality. Below is the error I am getting, can someone help me out on this issue please
When I am trying to execute the job I am getting the below error in the ECC Queue. Some kind of Java error
<?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="890" 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_import_sccm_midserver_data"/><parameter name="agent" value="mid.server.TestMid-01"/><parameter name="instance" value="https://aontest.service-now.com/"/><parameter name="response_to" value=""/><parameter name="filePath" value="D:\ServiceNow\Test-Mid-01\agent\export\app_store_export\appstore_export_output.csv"/><parameter name="from_sys_id" value=""/><parameter name="source" value=""/><parameter name="priority" value="2"/><parameter name="agent_correlator" value=""/><parameter name="script" value="var remoteFileImport = new CSMIDServerRemoteFileImport(); remoteFileImport.getRemoteFileAndUploadToInstance()"/><parameter name="processed" value=""/><parameter name="error_string" value=""/><parameter name="sys_id" value="23a03407dbae5700ef617868bf96194f"/><parameter name="sequence" value="163efa25fa60000001"/><parameter name="from_host" value=""/><parameter name="sys_created_on" value="2018-06-11 16:16:26"/><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="23a03407dbae5700ef617868bf96194f"/></parameters></results>
I sincerely appreciate your help in advance Regards
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2018 09:12 AM
Hi knopbrent,
Do you still have this issue? If not please let me know how did you resolve this. I am facing the same issue.
Thanks,
Poornima
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2018 09:22 AM
Hi Brent,
You would need to add log statements in the mid server script include and debug. Name of mid server script include is "CSMIDServerRemoteFileImport"
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2018 09:25 AM
Hi Ankur,
I did try adding log statements but no log message if printed from CSMIDServerRemoteFileImport. The log messages that are being printed are till CSRemoteFileImport Script Include.
Thanks,
Poornima
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2018 09:41 PM
Hi Poornima,
The log statement you add doesn't come in the system logs. They are present in the mid server directory under /agent/logs/agent0.log file
Also you need to use ms.log() in the mid server script include. If you have access to the mid server then you can directly get the file or else you also can grab the log file.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader