Need help with Intune Import set Error Fixing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
14m ago
Hi All,
I attempted to run the Intune Import Scheduled Job; however, the job was getting cancelled with the following error in the Import Log:
"Error executing script: org.mozilla.javascript.JavaScriptException: Error: Unable to make a connection to Intune via Graph API call. Please check your credential configuration. Check system log for more details. (sys_script_include.6a4e0342773310102dfb23446810611c.script; line 661)"
During the investigation, I identified that the Intune credentials had expired. The Infrastructure team provided updated credentials, which were configured and validated successfully through Postman. We were able to establish connectivity and retrieve data from using the new credentials.
However, when the scheduled job was executed from ServiceNow, the import continued to fail. We then verified the MID Servers and found that they were down. After bringing the MID Servers back online, the scheduled job was executed again, but the issue persisted.
Upon further analysis, the error referenced a Script Include. When reviewing the Script Include, line 661 was found to be throwing a custom exception. The corresponding error observed in the system logs is:
"SG-Intune Custom Error: Error: Unable to make a connection to Intune via Graph API call. Please check your credential configuration. Check system log for more details."
Additional review of the ServiceNow logs and available online documentation did not provide sufficient information to determine the exact root cause. At this stage, connectivity has been validated through Postman, credentials have been updated, and MID Servers are operational; however, the integration continues to fail from within ServiceNow and requires further investigation.
Thanks,
Harsh