SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 68259: The ToNumericValue function is not working as expected in arithmetical expressions

DetailsHotfixAboutRate It

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

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Model Risk ManagementWindows 7 Ultimate x647.49.4 TS1M5
Windows 7 Ultimate 32 bit7.49.4 TS1M5
Windows 7 Professional x647.49.4 TS1M5
Windows 7 Professional 32 bit7.49.4 TS1M5
Windows 7 Home Premium x647.49.4 TS1M5
Windows 7 Home Premium 32 bit7.49.4 TS1M5
Windows 7 Enterprise x647.49.4 TS1M5
Windows 7 Enterprise 32 bit7.49.4 TS1M5
Microsoft Windows Server 20167.49.4 TS1M5
Microsoft Windows Server 2012 Std7.49.4 TS1M5
Microsoft Windows Server 2012 R2 Std7.49.4 TS1M5
Microsoft Windows Server 2012 R2 Datacenter7.49.4 TS1M5
Microsoft Windows Server 2012 Datacenter7.49.4 TS1M5
Microsoft Windows Server 2008 for x647.49.4 TS1M5
Microsoft Windows Server 2008 R27.49.4 TS1M5
Microsoft Windows Server 20087.49.4 TS1M5
Linux for x647.49.4 TS1M5
Microsoft Windows 107.49.4 TS1M5
Microsoft Windows 8.1 Pro x647.49.4 TS1M5
Microsoft Windows 8.1 Pro 32-bit7.49.4 TS1M5
Microsoft Windows 8.1 Enterprise x647.49.4 TS1M5
Microsoft Windows 8.1 Enterprise 32-bit7.49.4 TS1M5
Microsoft Windows 8 Pro x647.49.4 TS1M5
Microsoft Windows 8 Pro 32-bit7.49.4 TS1M5
Microsoft Windows 8 Enterprise x647.49.4 TS1M5
Microsoft Windows 8 Enterprise 32-bit7.49.4 TS1M5
Microsoft® Windows® for x647.49.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.