- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2025 03:02 AM
Hello Team,
I am encountering the following error while creating a data source in the Global scope:
“Access to API 'setValue(sys_data_source.data_loader)' from scope 'sn_gcp_integ' has been refused due to the API's cross-scope access policy.”
However, the data source I am creating is unrelated to the application mentioned in the error.
To solve the issue I created 3 cross scope records (Create, Read, Write) with below info, but the error still persists:
Source Scope: SGC GCP
Target Scope: Global
Target Table: sys_data_source
Could someone please advise how to resolve this cross-scope access issue?
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Response from HI
/*
Our development team has created Problem (PRB1619997) for this issue and they will continue work on providing a solution to this behavior in a future release. No additional changes will be necessary to uptake this fix.
Until then you can disable the Business Rule to prevent the error banner, or you can ignore the error banner as the Data Source is created even if it is displayed.
Next Steps:
Because the implementation of a PRB fix can take weeks or months, this case will be closed while work on the PRB continues.
*/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2025 03:24 AM
Is this for PDI or Customer instance?
if PDI then PDIs are highly unstable and we never know what it behaves.
if it's Customer instance then you need to debug further.
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2025 03:26 AM
Customer Instance.
Any suggestions to debug?
I have used Script tracer/BG script to create a record in data source table/Checked logs, but no luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2025 03:28 AM
seems you are trying to create data source with Load by Script.
Did you try with simple data source?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2025 03:43 AM
I am creating simple data source only, but that field is getting populated with default value as:
(function loadData(import_set_table, data_source, import_log, last_success_import_time, partition_info) {
// Add your code here to insert data to import_set_table
})(import_set_table, data_source, import_log, last_success_import_time, partition_info);
