SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 66784: Calling the same decision flow from two different levels generates an error in SAS® Intelligent Decisioning

DetailsHotfixAboutRate It

In SAS Intelligent Decisioning, the following error is generated (via Scoring ► Tests) when you call the same decision flow from different levels:  

ERROR: An error occurred while generating code for the node named "Diagram2" with type "application/vnd.sas.decision.step.custom.object". The decision includes a decision "d0ec04f6-15ac-4143-8471-c1fca654a2fb" that includes itself as a step in its decision flow.

For example, the error occurs when you call a decision flow from a top decision flow and from a subflow of that main flow. When the error occurs, the execution returns a null value. This problem happens,when both decision flows point to the same subflow. As illustrated below, Top diagram calls Diagram1 and Diagram2. Diagram2 also calls Diagram1, which creates the double reference to the same flow. 

Two flows pointing to the same flow

When the flow is called using a REST call to SAS® Micro Analytic Service, the error is not displayed. Instead, the values that are returned are null, even though a value is expected. 

To work around this issue, copy the flow that is referenced multiple times. Point to the copy (or copies) so that no one flow is referenced more than once for different levels of calls.   

Click the Hot Fix tab in this note for a link to instructions about accessing and applying the software update.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Intelligent DecisioningLinux for x645.45.5ViyaViya
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.