SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 71161: The CDAGet functions return an unknown value (#VALUE!) in place of the expected value and surface the message "System.NullReferenceException..."

DetailsHotfixAboutRate It

When you use SAS® Financial Management 5.62 in SAS® 9.4M8 (TS1M8), the CDAGet functions can return an unknown result such as (#VALUE!) instead of the expected zero value.

The image below illustrates this situation. The left side shows the read-only table and the crossing values equal to zero; the right side shows the CDAGet function with the unknown result (#VALUE!) for the same crossing visible in the table:

worksheet showing the incorrect behavior

In this scenario, SAS Financial Management Excel Add-In log contains the following error message:

System.NullReferenceException: Object reference not set to an instance of an object.

Cause

This issue occurs in SAS Financial Management 5.62. It occurs only when all the CDAGet functions in the report should return a value equal to zero.

Workaround

A possible workaround is to add a new CDAGet function with a value not equal to zero in your report. After you add the new function, the expected behavior resumes: the CDAGet functions return the same values as the read-only table:

worksheet showing the correct behavior

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 Financial ManagementMicrosoft® Windows® for x645.629.4 TS1M8
64-bit Enabled AIX5.629.4 TS1M8
64-bit Enabled Solaris5.629.4 TS1M8
Linux for x645.629.4 TS1M8
* 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.