Delete operation against 'ecc_agent' from scope 'x_xxxx_yyyyy_midut' has been refused due to the tab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2025 01:07 AM
Hi Devs,
I'm fighting with long know issue and trying to find the solution for it.
I have custom app dealing with ecc_agent table. The goal of the app is perform CRUD operations as adding/deleting mid servers etc.
Since I had this problem earlier I've tried to follow same steps.
1. [DEV] The table ecc_agent has following settings -> Can read, Can create, Can update, Can Delete; Allow access to this table via web services; Allow configuration
2. From my scoped app I executed basic GlideRecord queries to create mid server and then delete it.
3. Cross scope privileges were created on DEV
4. I deployed the app to the TEST instance and ecc_agent table has following settings
5. I see the cross scope privileges created earlier were deployed correctly
6. If I execute GlideRecord to create a new MID it works, the deletion doesn't work and I receive error message "Delete operation against 'ecc_agent' from scope 'x_xxxx_yyyyy_midut' has been refused due to the table's cross-scope access policy"
Goal: How to achieve after the app deployment to the higher instances with working deletion and without need to set up the Application access to 'delete'? My aim is to set everything on dev instance with creation of proper cross scope policies and after app deployment to the higher instances it will work flawlessly.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 05:44 AM
Hi @Imi NOW
In ServiceNow, the cross-scope policy restrictions prevent scripts from deleting records in the ecc_agent
table unless the "Can delete" checkbox is explicitly enabled for the application scope.
If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!
Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI
YouTube: https://www.youtube.com/@learnservicenowwithravi
LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/