Cannot disable before query business rule(s) across scope boundaries.

cc11
Tera Contributor

I have a custom table in a scoped app.

The table was extended from Task table.

I have a server side glide query script in which I am trying to update the 'Active' field on desired records.

It works fine.

However, in the same script, when I try to update a field that I newly created on the table (not a field from Task table), I get the exception below.

-----

Cannot disable before query business rule(s) across scope boundaries (current scope: rhino.global table scope: x_fain_company_cer)
---

My table Application-scope has been set as below.
find_real_file.png
1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee

If that's the case then I strongly recommend reaching out to customer support on this one. Sorry.

 

Thanks,

Pradeep Sharma

View solution in original post

9 REPLIES 9

Pradeep Sharma
ServiceNow Employee

Hello Ycd,

 

Can you please check if you are able to reproduce this on any other instance? If yes please let me know the STR and I will take a look.

 

Thanks,

Pradeep Sharma

Hi Pradeed, I am able to reproduce the issue in my personal instance.

I am new to the communities, could you please let me know how I could share the instance and login details with you?

 

Pradeep Sharma
ServiceNow Employee

Hello YCD,

 

You can ONLY share instance URL and steps to reproduce so that I can take a look.

Ok sure,

Here are the details,

 

1 https://dev42601.service-now.com

2 Username and password :

3 Query to run on script background:

var gr30 = new GlideRecord('x_137749_farmers_c_certificate');

gr30.query();

while (gr30.next()) {

gr30.dns = "something"; // Scoped variable  'dns' - update does not work

 //gr30.active = true; // Global variable  'active' - update works

gr30.update();

gs.info(gr30.number);

}