
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2017 06:37 AM
Hello,
I'm using OOTB MID Server Script Include called MIDServerRemoteFileImport to get a file from a MID Server and I'm getting this error in ECC queue result:
<results error="HTTP response 403 (script_include:MIDServerRemoteFileImport; line 24)" probe_time="12703" result_code="900000">
<result error="HTTP response 403 (script_include:MIDServerRemoteFileImport; line 24)">
<output>Evaluation error: HTTP response 403 (script_include:MIDServerRemoteFileImport; line 24)</output>
The code in the script include:
getRemoteFileAndUploadToInstance: function() {
var url = this._getInstanceConnectionURL();
var conn = this._getURLConnection(url);
var file = this._getFile();
var response = this._writeFile(conn, file);
if (response != 200)
throw "HTTP response " + response; /////LINE 24
this.logMsg("HTTP response " + response, "debug");
ms.log("Completed MID Server File Transfer");
return response;
},
It works on dev environment but it doesn't work on test or production.
Has anyone got a clue what is wrong?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2017 06:48 AM
Hi Filip,
Are you using same mid server for Dev and Production?
Can you check you have access to that script include because error 403 means forbidden and comes if you don't have access to the page etc
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
‎02-13-2019 12:39 AM
Hi Steve,
no, it is not OOTB.
It is part of Remote File Importer from Snow share.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2019 08:17 AM
Note I too received the error 403.
This is the midserver trying to send a file to https://instance/sys_import.do?sysparm_import_set_tablename=imp_user&sysparm_transform_after_load=true+
From an incognito mode browser you'll be prompted for credentials. Using admin credentials it says file couldn't be imported. Using midserver credentials you might receive 'User Not Authorized'.
Adding the role 'import_admin' to the midserver resolved issue when I had it. If it's not the username, ensure you can reach your ServiceNow instance when logged into midserver.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2019 01:13 PM
I am unable to see the script include "MIDServerRemoteFileImport" under Mid server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2020 12:24 AM
After committing the update set for the Remote File Importer, the MID Server Script Include "CSMIDServerRemoteFileImport" can be found in the table "ecc_agent_script_include".