-10507: Internal error: No metadata available for row set operation

Explanation:

An internal error has occurred. As a result of this error, no information is available for the structure of the result set that should be opened for UPDATE operations.

User Action:

Simplify your SQL statement.