The Activity FIT file generated from my watch app suffers Intermittent but serious corruption of Lap messages.
I am creating seven user defined fields in the lap message which usually get populated correctly, but intermittently get corrupted. I am processing the data through Garmin Health API.
To demonstrate the issue, I have processed a correct (A3ID5501.FIT) and an incorrect (A3JH5003.FIT) FIT file through FitCSVTool and pasted the output into the linked spreadsheet and extracted just the "lap" messages.
Both files were generated on the same watch with the same app code, although running in any number of different modes, 24 hours apart.
The first A3ID5501.FIT, shows the seven field definition messages
and the lap records containing the seven defined fields with valid data:
The second, A3JH5003.FIT, contains no field definition records and fields 37 to 42 corresponding to my user defined fields containing corrupt data:
Note the unusual pipe-delimited format of the value fields.
The issue is very intermittent, occurring this week for the first time for a few months, but this app feature is in Alpha testing with a very small number of testers, so there are not a lot of test results.
What could be causing the corruption and how can I manage it?
[ADD]
A controlled test of the app this afternoon (March 21 15:00 UTC+11) using very similar operational modes as the second (failing) test above produced the expected user-defined fields and lap records.