HPE NonStop SQL/MX Error – 1576 The seq-gen-option value is greater than the maximum allowed for seq-name data type.

In this blog post, let’s learn about the error message “1576 The seq-gen-option value is greater than the maximum allowed for seq-name data type.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

1576 The seq-gen-option value is greater than the maximum allowed for seq-name data type.

Reason for the Error

The sequence generator or the IDENTITY column option (seq-gen-option) value is greater than the maximum value allowed for the sequence data type.

Solution

Specify a value lesser than the maximum value allowed for the data type, and resubmit the statement.
NOTE:

For IDENTITY columns of LARGEINT data type, the error message does not contain the column name.

For example:

IDENTITY column A of type unsigned SMALLINT with MAXVALUE 65536:*** ERROR[1576] The MAXVALUE value is greater than the maximum
allowed for the IDENTITY column A data type. IDENTITY column A of type LARGEINT with MAXVALUE 9223372036854775807:*** ERROR[1576] The MAX
VALUE value is greater than the maximum allowed for the IDENTITY column data type