- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 08:05 AM
Hello,
I configured a business rule that is supposed to Query a Document task and find out if it has a parent and if it does, once the document task is done, it should close the parent task immediately instead of waiting a whole day (default automatically close when complete that ServiceNow has) I have this entire process working on one instance already. When I tried implementing it in another instance, I ran into an error. I have attached the Business rule created and the error.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 08:46 AM
@mlamin Yep, those error messages also made me scratch my head as the business rule itself was defined in the global scope.
To fix this issue your can try creating your BR in Document Template Scope, also since you are accessing the sn_hr_core_case table in your BR, you can create a Restricted Caller access record within Human Resources Core Scope and set Source Application as Document Template and Target as Human Resources Core.
Hope this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 08:21 AM
@mlamin On your instance, navigate to Application restricted caller access module and filter out all the records with Allowed Status. Now you will see all those records which are either having Invalidated or Requested status. Set all such records to Allowed status in their respective scopes and check if the error resolves.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 08:27 AM - edited 08-28-2023 08:35 AM
Hello,
@Sandeep Rajput Thank you for the fast response. I apologize I forgot to mention that in the explanations, When I navigate to the Application restricted caller access module, I see all that is listed but for some reason, I do not see the one that the error is referring to. That is my main issue I am having. Specifically with the Document Template Scope. I also dont have my Business in a Document Template Scope, but instead in a Global Scope so I am confused why it is saying Document Template scope if requesting the read access. Please screenshots above with what I am talking about.
The error seems to be wrong because it seems Document Template is denying itself form accessing its on sn_doc_task table. I tried creating a restricted access privilege to cover that but you cant have a target and source scope be the same.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 08:46 AM
@mlamin Yep, those error messages also made me scratch my head as the business rule itself was defined in the global scope.
To fix this issue your can try creating your BR in Document Template Scope, also since you are accessing the sn_hr_core_case table in your BR, you can create a Restricted Caller access record within Human Resources Core Scope and set Source Application as Document Template and Target as Human Resources Core.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2023 07:54 AM
Thank you I did that and the RCA showed up for me to allow and I was able to get it working.