-514 Referenced cursor has not been prepared
Possible Cause
The referenced dynamic cursor has not been successfully prepared prior to the current OPEN request.
Possible Solution
Prepare the dynamic statement associated with the cursor prior to attempting the OPEN.