Oracle Error ORA-24307: invalid length for piece

Oracle Error Message

ORA-24307: invalid length for piece

Reason for the Error

The length of the piece exceeded the maximum possible size.

Solution

Verify that the length of this piece and the cumulative length of all the previous pieces is not more than the desired value supplied by the application.