Oracle Error ORA-40118: insufficient number of target values in weights table

Oracle Error Message

ORA-40118: insufficient number of target values in weights table

Reason for the Error

The weights table had less that 2 target values.

Solution

Provide at least two target values in the weights table.