Decision Table - DecisionAccessException

Trevor Muhl
Kilo Sage

I am receiving a random security error when calling a Decision Table within a record producer. It doesn't seem to matter what user submits it or what details are submitted, even as a full admin. At the moment, the issue seems completely random.

 

I have seen this issue from multiple users. However, it cannot always be reproduced.

 

Error log snippet (full log is attached):

Root cause of JavaScriptException: com.glide.decision_table.exceptions.DecisionAccessException
: com.glide.decision_table.exceptions.DecisionAccessException: User does not have access to decision table with id a191f9581b876110c4d0997a234bcb81: com.glide.decision_table.data.DecisionTableGlideRepository.getDecisionTable(DecisionTableGlideRepository.java:93)

 

Here is my record producer code for reference:

var decisionTableId = 'a191f9581b876110c4d0997a234bcb81';
var dt = new sn_dt.DecisionTableAPI();
var inputs = new Object();
inputs['u_type'] = producer.type.toString();
var response = dt.getDecision(decisionTableId, inputs);
var category = response.result_elements.u_category;

 

Any ideas what may be causing this? Perhaps I should contact ServiceNow support (a product bug)?

1 ACCEPTED SOLUTION

Trevor Muhl
Kilo Sage

After discussing this with ServiceNow support, this issue was caused by the "Accessible From" field on the Decision Table record. When that property is set to "This application scope only", calls from other application scopes will result in this error.

 

This issue seemed random because the scope of my user session would often change throughout the day.

View solution in original post

1 REPLY 1

Trevor Muhl
Kilo Sage

After discussing this with ServiceNow support, this issue was caused by the "Accessible From" field on the Decision Table record. When that property is set to "This application scope only", calls from other application scopes will result in this error.

 

This issue seemed random because the scope of my user session would often change throughout the day.