Oracle Error Message
ORA-06525: Length Mismatch for CHAR or RAW data
Reason for the Error
The length specified in the length variable has an illegal value. This can happen if you have requested requested a PL/SQL INOUT, OUT or RETURN raw variable to be passed as a RAW with no corresponding length variable. This error can also happen if there is a mismatch in the length value set in the length variable and the length in the orlvstr or orlraw.
Solution
Correct the external procedure code and set the length variable correctly.