Oracle Error ORA-13000: dimension number is out of range

Oracle Error Message

ORA-13000: dimension number is out of range

Reason for the Error

The specified dimension is either smaller than 1 or greater than the number of dimensions encoded in the HHCODE.

Solution

Make sure that the dimension number is between 1 and the maximum number of dimensions encoded in the HHCODE.