Problem Note 68259: The ToNumericValue function is not working as expected in arithmetical expressions
In SAS® Risk Governance Framework 7.4, the ToNumericValue function is not working as expected in arithmetical expressions. The function now returns a Float value instead of a Long or Double value, so when it evaluates the addition (+) operation, the function does not know how to handle Float values.
For example, you use the ToNumericValue function in an arithmetical expression with the + operation, as shown below:
"ToNumericValue(if (not empty(temp.dd1), temp.dd1, temp.dd0)) + ToNumericValue(if (not empty(temp.dd2), temp.dd2, temp.dd0))"
The function then returns an error in the SASRiskGovernanceFramework log that is similar to the following:
SASRiskGovernanceFramework 18Aug20 06:31:54,290 [tomcat-http--13] ERROR com.sas.ui.cpb3.rest.CPBRest - Error evaluating expression: OPERATOR:+
|--CALL:
|--(FUNCTION)NAME:ToNumericValue
|--(ARG[0])NAME:TEMP.FIELD1
|--CALL:
|--(FUNCTION)NAME:ToNumericValue
|--(ARG[0])NAME:TEMP.FIELD2 java.lang.Float cannot be cast to java.lang.String
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS Model Risk Management | Windows 7 Ultimate x64 | 7.4 | | 9.4 TS1M5 | |
Windows 7 Ultimate 32 bit | 7.4 | | 9.4 TS1M5 | |
Windows 7 Professional x64 | 7.4 | | 9.4 TS1M5 | |
Windows 7 Professional 32 bit | 7.4 | | 9.4 TS1M5 | |
Windows 7 Home Premium x64 | 7.4 | | 9.4 TS1M5 | |
Windows 7 Home Premium 32 bit | 7.4 | | 9.4 TS1M5 | |
Windows 7 Enterprise x64 | 7.4 | | 9.4 TS1M5 | |
Windows 7 Enterprise 32 bit | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows Server 2016 | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows Server 2012 Std | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows Server 2012 R2 Std | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows Server 2012 R2 Datacenter | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows Server 2012 Datacenter | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows Server 2008 for x64 | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows Server 2008 R2 | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows Server 2008 | 7.4 | | 9.4 TS1M5 | |
Linux for x64 | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows 10 | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows 8.1 Pro x64 | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows 8.1 Pro 32-bit | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows 8.1 Enterprise x64 | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows 8.1 Enterprise 32-bit | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows 8 Pro x64 | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows 8 Pro 32-bit | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows 8 Enterprise x64 | 7.4 | | 9.4 TS1M5 | |
Microsoft Windows 8 Enterprise 32-bit | 7.4 | | 9.4 TS1M5 | |
Microsoft® Windows® for x64 | 7.4 | | 9.4 TS1M5 | |
*
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: | medium |
Date Modified: | 2021-10-27 15:22:42 |
Date Created: | 2021-08-16 12:31:10 |