Error messages related to using the LOAD-RESULT-INTO phrase
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Note the following situations in which error
conditions related to the use of LOAD-RESULT-INTO are reported:
- The ABL compiler issues an error if you try to specify
PROC-HANDLEandLOAD-RESULT-INTOon the sameRun STORED-PROCstatement. - The ABL compiler issues an error if you use
PROC-STATUSwithout specifying theLOAD-RESULT-INTOfunction. - The compiler issues error messages when the number of handles
is not equal to the number of result-sets specified in the statement.
For example:
- Error "Only 2 handles supplied but there are at least 3 result-sets (12209)" — This error message appears when two handles and three result-sets are specified in a statement.
- Error "Received an invalid handle (element 3) when processing stored procedure's result-set (12212)" — This error message appears when four handles and three result-sets are specified in a statement.
- If you try to execute the
CLOSE STORED-PROCstatement after theRun stored-proc statementfor which you have defined theLOAD-RESULT-INTOfunction, the following error message appears:- Error "No active stored procedures. (2101)" — This error message occurs when no handle is specified in the statement.
- Error "No active procedure for specified proc-handle. (2475)" — This error message occurs when a handle is specified in the statement.
The system generates either of the previous error messages as it assumes a second
CLOSE STORED-PROCstatement has been incorrectly executed in the current implementation.