HPE NonStop SQL/MX Error – 4007 The select list index value1 is out of range. It must be between 1 and the number of select expressions, which in this case is value2.

In this blog post, let’s learn about the error message “4007 The select list index value1 is out of range. It must be between 1 and the number of select expressions, which in this case is value2.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

4007 The select list index value1 is out of range. It must be between 1 and the number of select expressions, which in this case is value2.

Reason for the Error

You specified an index value1 that is out of the range of between 1 and the value2 of SELECT expressions.

Solution

Correct the index and resubmit