5717 Ranges are not constant.
For a RANGE_N function, a range value must be a constant expression or * (an asterisk is only allowed in the start of the first range and the end of the last range). Also, a range size value must be a constant expression.
End User. DR62813-bessc
Examine the SQL statement and verify that the request is correct. Change the statement to adhere to the RANGE_N rules and resubmit the request.