This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Import Huawei activities to Garmin Connect

Hello, 

I used like three years watches from Huawei and recently switched to Garmin. I sucesfully exported all my data from Huawei and used Hitrava tool to get .tcx files. I slowly uploading all my activities to Strava (i can upload only 100/day). I used Fitbit to import all my steps, exported .csv from there and uploaded to Garmin, but I can't use it for activities (I want a GPS and map).

Now I need to get all my activities (like 843 files) and import them to Garmin. I tried tapiriik, but it's not working because of Garmin API changes. The original .tcx files don't work either (I got message: There was problem with uploading your files). From Strava I can only download original file, so it's not working either.

I installed Fit File Repair Tool and there I got message: Please check entries in the fields "Manufacturer" and "Product" on the register page "Devices, File Info", this information is missing!

And this is all I can do, I have only demo version and I don't know how to repair all 843 .tcx files, so I can import them to Garmin.

Many thanks for any help.

  • Export one of your Garmin activities in the TCX format, and then open both, the Garmin and the Huawei TCX files side by side, and compare where they differ. That should help you fixing and importing the Huawei files.

  • Well, the files has 9k rows and I'm not expert in this and don't know what I'm looking for.

    I tried to repair the file with Fit File Repair Tool and it's working, but I have only demo version. 

    Could I ask someone with full version to do a one time conversion for me? I don't want to spend $50 for one time conversion which should be pretty fast and straightforward.

    Thank you.

  • Fit File Repair Tool is an application for editing FIT files. I do not use it, so do not know for sure, but I do not think it can do anything with TCX files.

  • It's not only for .fit files. Works with everything .fit, gpx, tcx and more. Supports conversion, repairs etc. Like i said I tried demo and it sucesfully converted .tcx to .fit and repaired the corrupted file. But demo version is pretty limited, so I'm looking for someone with full version here.

  • OK, I stand corrected. You can also post a sample TCX file here - you need to zip it, in order to be able inserting it into the thread with the function Insert » Video/Image/File » Upload. We can try to find out what the problem is, and perhaps tell how to fix it.

  • Okay, tcx file is down there, but if it can be simple fixed manually, I would need some advices how to do it in batch, because it's not in human power to do it 843x manually :).

    HiTrack_20200310_114351_001.rar

    Thank you!HiTrack_20200310_114351_001.rar

  • OK, in this specific file there are two problems:

    1. The tag <TrainingCenterDatabase ...> containing the documents schemas, needs to be replaced with the one from Garmin's files (see below for the details)
    2. For some odd reason (possibly a bug on Garmin's side), the import does not recognize the tag <Activity Sport="walking">, you have to use <Activity Sport="Other"> instead. <Activity Sport="Running"> works all right. I did not verify any other types.

    So, first of all, install an advanced text editor, such as Notepad++, or PSPad. Place all your TCX files into the same folder, and use the editor function Search & Replace in Files, where you select the concerned directory with your files, and the tcx extension. Then replace the original TrainingCenterDatabase tag with the one from Garmin's tcx file.

    Original:

    <TrainingCenterDatabase xmlns="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2" xmlns:ns3="http://www.garmin.com/xmlschemas/ActivityExtension/v2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2 http://www.garmin.com/xmlschemas/TrainingCenterDatabasev2.xsd">

    Garmin's:

    <TrainingCenterDatabase
      xsi:schemaLocation="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2 http://www.garmin.com/xmlschemas/TrainingCenterDatabasev2.xsd"
      xmlns:ns5="http://www.garmin.com/xmlschemas/ActivityGoals/v1"
      xmlns:ns3="http://www.garmin.com/xmlschemas/ActivityExtension/v2"
      xmlns:ns2="http://www.garmin.com/xmlschemas/UserProfile/v2"
      xmlns="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns4="http://www.garmin.com/xmlschemas/ProfileExtension/v1">

    Also, in the same way, replace all tags <Activity Sport="walking"> with <Activity Sport="Other">

    Save all files, open the folder with the files, and drop them onto the page https://connect.garmin.com/modern/import-data I never tried importing 800 files at once, so I'd suggest doing it by smaller batches of a hundred of files at once (or even less), if dropping the entire folder fails.

    If you encounter an error at some of the files, check out their Activity Sport tag, export the same type of activity from Garmin Connect to see what it uses for that sport, and replace it in similar way as you did with the walking.

  • I edited and saved the file, but I'm still getting error during upload to Garmin Connect Web:

    HiTrack_20200310_114351_001.tcx 0.3 MB An error occurred with your upload. Please try again.

    Edited file is uploaded down there. Thank you.

    4113.HiTrack_20200310_114351_001.rar

  • Ah yes, also the timestamp format is wrong. You have to replace all instances of the timestamp ending 

    +01:00</Time>

    with 

    .000Z+01:00</Time>

  • Thank you very much, I finally imported all my activies to Garmin. You are a life saver!

    Shame that .tcx does not support walking type of activity, so I have all my walkings as "Other" and I don't have the power to manually edit them all and there is a weird thing, if I manually change Other to Walking then my GPS route on map disappers.