Problem Note 67116: Running a publish validation test for a decision published to SAS® Micro Analytic Service incorrectly shows 201 in the dcm_http_response_code colum
You use SAS® Intelligent Decisioning to run a publish validation test against a decision that is published to a SAS Micro Analytic Service destination.
In the output table, you might observe that some rows of the DCM_HTTP_RESPONSE_CODE column incorrectly display a 201 value even though the DS2 code did not run successfully for that row. If you check the corresponding sas-microanalyticservice-core log file, it contains either the message “ERROR.entry” or “WARNING.entry” for the corresponding call. If you want the value for the DCM_HTTP_RESPONSE_CODE column to be 500, which indicates that the call did not execute successfully for this case, then you need to apply the hot fix following the instruction below.
Click the Hot Fix tab in this note for a link to instructions about accessing and applying the software update.
After you install the hot fix, you need to define the environment variable MAS_PROMOTE_DS2_ERROR in the microanalyticservice.conf file. This file is located in /opt/sas/viya/config/etc/sysconfig. Note: If this file does not exist, you need to create this file. The value for this environment variable is not relevant as long as you define this environment variable. After you modify this file, you need to restart the sas-viya-microanalyticservice-default service.
If you want the value 500 to display for the DCM_HTTP_RESPONSE_CODE column when the DS2 code execution generates either a WARNING or ERROR message, you need to define the MAS_PROMOTE_DS2_WARNING environment variable. If you define MAS_PROMOTE_DS2_WARNING, there is no need to define MAS_PROMOTE_DS2_ERROR.
Here is an examples for defining MAS_PROMOTE_DS2_ERROR variable for a UNIX platform:
MAS_PROMOTE_DS2_ERROR=1
export MAS_PROMOTE_DS2_ERROR
Operating System and Release Information
SAS System | SAS Micro Analytic Service | Microsoft® Windows® for x64 | 5.4 | 5.5 | Viya | Viya |
Linux for x64 | 5.4 | 5.5 | Viya | Viya |
*
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.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2024-01-10 17:01:26 |
Date Created: | 2020-12-16 14:23:13 |