Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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
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
ServiceNow Employee

Thanks for the details. I did the exact steps in my instance and was not able to reproduce the issue that you have in your instance. If possible I would recommend you to take the backup of your work and raise an instance request. 

 

Thanks,

Pradeep Sharma

Thanks Pradeep,

The issue is actually occurring in our DEV & TEST instances as well.

I may want to raise a HI support request to see what is going on.

 

Thank you for your help,

Yogesh

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

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

 

Thanks,

Pradeep Sharma

No problem. Thank you for the help Pradeep.

Regards,

Yogesh

Hi Pradeep,

I got a reply from ServiceNow support. They figured out that a BR (On Display) was conflicting with the update. This was happening for all fields (not just scoped app fields).

They suggested to suppress the BR using gr30.setWorkflow(false); just before the .update(); api call. 

That worked.

Hope this will help someone.

 

Thank you for suggesting ServiceNow support's help,

Yogesh