Oracle Error Message
OCI-22167: given trim size [string] must be less than or equal to [string]
Reason for the Error
Given trim size is greater than the current collection size.
Solution
Ensure that the given size is less than or equal to the collection size prior to calling this function.