Skip to main content

INVALID_HANDLER_DECLARATION error condition

SQLSTATE: 42K0Q

Invalid handler declaration.

CONDITION_NOT_FOUND

Condition <condition> not found.

DUPLICATE_CONDITION_IN_HANDLER_DECLARATION

Found duplicate condition <condition> in the handler declaration. Please, remove one of them.

DUPLICATE_SQLSTATE_IN_HANDLER_DECLARATION

Found duplicate sqlState <sqlState> in the handler declaration. Please, remove one of them.

INVALID_CONDITION_COMBINATION

Invalid combination of conditions in the handler declaration. SQLEXCEPTION and NOT FOUND cannot be used together with other condition/sqlstate values.

WRONG_PLACE_OF_DECLARATION

Handlers must be declared after variable/condition declaration, and before other statements.

Was this article helpful?