Oracle Error ORA-08459: invalid format parameter length

Oracle Error Message

ORA-08459: invalid format parameter length

Reason for the Error

The format parameter passed to a UTL_PG conversion routine was not the correct length. Format parameters must be 2048 bytes in length.

Solution

Check to be sure that the format parameter was built by MAKE_RAW_TO_NUMBER_FORMAT or MAKE_NUMBER_TO_RAW_FORMAT, and that it was not accidentally overwritten or modified by the PL/SQL procedure.