Message Oracle ORA-28552 - pass-through SQL: call flow error

ERRORpass-through SQL: call flow error
CAUSEA pass-through SQL function was called in an invalid order.
ACTIONCorrect program flow by changing the order of API calls to match the flow described in the manual.