Application Scope Access (yes I checked "Can Update" for Application Access)

kemmy1
Tera Guru

When Running a Flow I'm getting: Scope does not have write access to table x_g_dh5_common_dat_facility.  I'm running my flow as "System User" and the table that I'm updating to has this configuration.

find_real_file.png

 

I'm not sure why I'm still getting this error?  "Scope does not have write access to table x_g_dh5_common_dat_facility"

 

Lisa 

1 ACCEPTED SOLUTION

Michael Jones -
Giga Sage

Was the table always set with those permissions, or did you modify them (check a box that wasn't checked originally)? I have seen this occur when permissions are added after creation, due to a caching issue. Typically this will either "resolve itself" with sufficient time, which seems to be random, or can often be resolved by running these commands in a background script to hasten the process (global scope). 

GlideTableManager.invalidateTable(<table_name>);
GlideCacheManager.flushTable(<table_name>);

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0695145

I hope this helps!

If this was helpful, or correct, please be kind and mark the answer appropriately.

Michael Jones - Proud member of the GlideFast Consulting Team!

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

View solution in original post

2 REPLIES 2

Michael Jones -
Giga Sage

Was the table always set with those permissions, or did you modify them (check a box that wasn't checked originally)? I have seen this occur when permissions are added after creation, due to a caching issue. Typically this will either "resolve itself" with sufficient time, which seems to be random, or can often be resolved by running these commands in a background script to hasten the process (global scope). 

GlideTableManager.invalidateTable(<table_name>);
GlideCacheManager.flushTable(<table_name>);

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0695145

I hope this helps!

If this was helpful, or correct, please be kind and mark the answer appropriately.

Michael Jones - Proud member of the GlideFast Consulting Team!

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

Yes, those permissions were added after creation of the table and you were correct, it finally started to work!