My Oracle Support Banner

Why Does an Unassigned Identifier in the Rules Language Equate to Zero? (Doc ID 1270616.1)

Last updated on DECEMBER 04, 2019

Applies to:

Oracle Utilities Market Settlements Management - Version 4.5 and later
Oracle Utilities Energy Information Platform - Version 4.5 and later
Oracle Utilities Meter Data Management - Version 04.50 and later
Oracle Utilities Billing Component - Version 4.5 and later
Oracle Utilities Portfolio Management - Version 4.5 and later
Information in this document applies to any platform.


How does the Rules Language treat empty variables and why isn't an error returned if an empty uninitialized identifier is used in a calculation?

Consider the following:

In both cases, Y is returned.  This behavior can be confusing because NON_ASSIGNED_VARIABLE is not actually equal to zero. 

Why is this happening? 
How can one differentiate between zero and null if the above Rules Language won't do it?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.