Decision Table Error Using Business Rule

Alon Grod
Tera Expert

Hi, 

Why Im getting this error? What am I doing wrong?

This is my Decision table:

Screenshot 2024-06-16 at 18.43.17.png



This is my Business Rule:

(function executeRule(current, previous /*null when async*/ ) {

    // Add your code here
    var dt = new sn_dt.DecisionTableAPI();
    var inputs = {}
    inputs.u_category = current.category;
	inputs.u_name = 'alon';
    var response = dt.getDecision('542898e593be4210b73aba7efaba103a', inputs); //
    var result_a = response.result_elements.u_answer;

	gs.log('alonfsafas: ' + result_a);

})(current, previous);


This is the error that Im getting:

Screenshot 2024-06-16 at 18.55.42.png



6 REPLIES 6

Kristin Acree
Mega Sage

did anyone get further on this? im getting the same problem?

i confirmed my inputs are going through properly.

this was a domain issue, we moved it to global and it worked correctly.