Oracle Error ORA-36722: (XSALLOC02) In AGGMAP workspace object, you specified an NA or ZERO sourceval but supplied formula workspace object as your source for ALLOCATE.

Oracle Error Message

ORA-36722: (XSALLOC02) In AGGMAP workspace object, you specified an NA or ZERO sourceval but supplied formula workspace object as your source for ALLOCATE.

Reason for the Error

The user requested that source values be modified during the allocation, but that is not possible when using a formula source.

Solution

Either use a VARIABLE source or remove the SOURCEVAL specification for your ALLOCMAP.