added TID override length check to prevent sending bad data to the API call