If you export a file as GPX, and Garmin Connect accepts it... but Garmin connect rejects a TCX file, this probably means that you selected an Activity Type that Garmin Connect does not understand. See Screen Shot Below:
I have added a warning message that should notify the user if they are trying to export with these criteria.