- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2023 05:57 AM - edited 09-16-2023 06:01 AM
Hi,
When I'm using scheduled data import, I set the 'Run as' field as blank and job is executed as 'system' but there is an strange thing happened is that my "Import Set" was cancelled during the import. And I've found out the root cause is the REST API authentication is blocking the import set. Below here is my Scripted REST API Security:
=> After turned it off, the scheduled data import could run normally. Is my understanding for user 'system' should have access to everything is not correct ?
My Scheduled Data Import:
Import set log:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2023 08:42 AM
Hi @sieusaopolo15,
Are you trying to import data from another ServiceNow instance?
The issue is not with run as user, it is with the authentication credentials you are using to authenticate REST API, check the credentials you are using while calling the REST API if it's Basic Auth, oAuth token validity if it's oAuth type authentication.
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2023 08:42 AM
Hi @sieusaopolo15,
Are you trying to import data from another ServiceNow instance?
The issue is not with run as user, it is with the authentication credentials you are using to authenticate REST API, check the credentials you are using while calling the REST API if it's Basic Auth, oAuth token validity if it's oAuth type authentication.
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2023 10:27 PM
Please accept my answer as solution, if it helped you to fix your issue. 👍✔️
Otherwise please let me know if you need more help.
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2023 10:31 PM
Hi @AnveshKumar M , You are correct Anvesh, my scripted rest API needs basic authentication info or access token to execute the API so in the REST Action of Data Source I'm only need to add Authorization at the header and the problem is solved. Thanks !