Errors importing track day data

Help on issues you run into with LapTimer; in case you have a question on how to use LapTimer, use the forum "Using LapTimer" instead
User avatar
bulls23
20 or more Posts ★★★
20 or more Posts ★★★
Posts: 764
Joined: Fri Mar 04, 2011 12:22 pm

Errors importing track day data

Post by bulls23 » Tue Jun 11, 2019 9:38 am

I was trying to import track day data from a friend. Phone to phone did not work, don't remember the error but it basically started the export and import but did not save any data.
I then did an export but that gives an error too:
IMG_6206.PNG
IMG_6206.PNG (1.25 MiB) Viewed 85 times
Any way I can re-format that part to make it work?
Data works fine on the phone it was recorded on, both were on version 23.0.1
Attachments
LapTimer-0045-0068-20190610-184640.hlptrz
(1.66 MiB) Downloaded 1 time
User avatar
Harry
Site Admin
Site Admin
Posts: 9365
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: Errors importing track day data

Post by Harry » Thu Jun 13, 2019 11:48 am

This type of corrupt timestamps occurred for some pre-v23 versions and can still occur for manual recordings. Check Data will fix this often, but not always. Laps with this type will often show up with ridiculous lap times in Lap List too. I recommend to delete them completely. The export can be edited manually too, on Unix based machines, try

Code: Select all

cat LapTimer*.hlptrz | gunzip > LapTimer.hlptrl
to get an editable file.

- Harry
Image Image Image Image
User avatar
bulls23
20 or more Posts ★★★
20 or more Posts ★★★
Posts: 764
Joined: Fri Mar 04, 2011 12:22 pm

Re: Errors importing track day data

Post by bulls23 » Thu Jun 13, 2019 12:04 pm

I had managed to rename and unzip the file, but what do I have to change manually in the file?
User avatar
Harry
Site Admin
Site Admin
Posts: 9365
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: Errors importing track day data

Post by Harry » Thu Jun 13, 2019 12:08 pm

This depends on the actual content. :-)
You can remove intermediate sections completely. They can be recreated using one of the Recalculate functions at any time. Take care to remove both opening and closing tags so the file is still valid XML.

- Harry
Image Image Image Image
F82GTS
Fewer than 10 Posts
Fewer than 10 Posts
Posts: 3
Joined: Thu Jun 13, 2019 5:52 pm

Re: Errors importing track day data

Post by F82GTS » Thu Jun 13, 2019 6:28 pm

Hi,
I have the same issue. I recorded 2 track days this weekend and tried transferring from iPhone7 to iPhoneX. It transfers only the laps from the first day. Tried multiple times, laps, database but it always comes back with the "parsing error" message similar to the first post. I even erased the older phone and restored from itunes backup and all the laps (both days) were restored but again only the first day laps transfer to the new phone. Database check says OK.
What else should I try?
User avatar
bulls23
20 or more Posts ★★★
20 or more Posts ★★★
Posts: 764
Joined: Fri Mar 04, 2011 12:22 pm

Re: Errors importing track day data

Post by bulls23 » Fri Jun 14, 2019 2:27 pm

Ok, so I edited the file and put it back on my iPhone and this time the import worked. I see the times, calculated average speed, date, car...but none of the diagrams show any data or GPS fixes and therefore I can't do any of the re-calcuklations...never have had this type of issues before.

Edit: There was a very long lap recording, basically a "misfire" from within the box...deleted that one and now import and data are fine, thanks for the support.
User avatar
Harry
Site Admin
Site Admin
Posts: 9365
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: Errors importing track day data

Post by Harry » Fri Jun 14, 2019 8:53 pm

F82GTS wrote:
Thu Jun 13, 2019 6:28 pm
Hi,
I have the same issue. I recorded 2 track days this weekend and tried transferring from iPhone7 to iPhoneX. It transfers only the laps from the first day. Tried multiple times, laps, database but it always comes back with the "parsing error" message similar to the first post. I even erased the older phone and restored from itunes backup and all the laps (both days) were restored but again only the first day laps transfer to the new phone. Database check says OK.
What else should I try?
Please post a snapshot of the error message like bulls23 did.

- Harry
Image Image Image Image
F82GTS
Fewer than 10 Posts
Fewer than 10 Posts
Posts: 3
Joined: Thu Jun 13, 2019 5:52 pm

Re: Errors importing track day data

Post by F82GTS » Sat Jun 15, 2019 2:00 pm

Here you go.
thumbnail_IMG_0053 (1).png
thumbnail_IMG_0053 (1).png (621.89 KiB) Viewed 46 times
thumbnail_IMG_0051 (1).png
thumbnail_IMG_0051 (1).png (608.48 KiB) Viewed 46 times
User avatar
Harry
Site Admin
Site Admin
Posts: 9365
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: Errors importing track day data

Post by Harry » Sat Jun 15, 2019 3:23 pm

It is probably the 18th lap included in the export that triggers this issue. Please remove the complete section from <intermediates> to </intermediates> to allow an import:

1) Rename the .hlptrz file to .hlptrl.gz
2) Use Ungzip to remove compression and get the .hlptrl file
3) Open that file using a plain text editor (e.g. Notepad)
4) Search for "1056:48.68" to find the named <intermediates> section
5) Remove everything from <intermediates> to </intermediates>
6) Save the file and send it by email to yourself
7) Open the .hlptrl file on your smartphone

NB: every import will add laps, so the 17 laps you got a message on before show up as duplicates. You need to delete these manually.

- Harry
Image Image Image Image
F82GTS
Fewer than 10 Posts
Fewer than 10 Posts
Posts: 3
Joined: Thu Jun 13, 2019 5:52 pm

Re: Errors importing track day data

Post by F82GTS » Fri Jun 21, 2019 4:42 pm

Thank you. Could you point me to the right tutorial for how the files can be edited and what software to use?
Post Reply