HPE NonStop SQL/MX Error – 4122 NULL cannot be assigned to NOT NULL column name.

In this blog post, let’s learn about the error message “4122 NULL cannot be assigned to NOT NULL column name.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

4122 NULL cannot be assigned to NOT NULL column name.

Reason for the Error

You attempted to assign NULL to a NOT NULL column name.

Solution

Correct the syntax and resubmit