Oracle Message OCI-22167 - given trim size [string] must be less than or equal to [string]

ERRORgiven trim size [string] must be less than or equal to [string]
CAUSEGiven trim size is greater than the current collection size.
ACTIONEnsure that the given size is less than or equal to the collection size prior to calling this function.