HPE NonStop SQL/MX Error – 1058 Lock lock-name already exists.

In this blog post, let’s learn about the error message “1058 Lock lock-name already exists.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

1058 Lock lock-name already exists.

Reason for the Error

The statement required creation of a lock with a unique lock name, which was not generated.

Solution

Specify a unique lock name and resubmit