Can't import correctly from LOTW [SOLVED]

3 posts / 0 new
Last post
nm3s
Can't import correctly from LOTW [SOLVED]

<p>I've been trying to import QSOs from LOTW. I have about 150 that refuse to import, and I have no idea why. It says SSB is the "Wrong QSO mode." How can that be????</p>
<p><br />&lt;APP_LoTW_OWNCALL:4&gt;NM3S&lt;STATION_CALLSIGN:4&gt;NM3S&lt;CALL:5&gt;CE1TT&lt;BAND:3&gt;10M&lt;FREQ:8&gt;28.46300&lt;MODE:5&gt;SSB</p>
<p>&lt;APP_LoTW_MODE:5&gt;SSB&lt;APP_LoTW_MODEGROUP:5&gt;SSB&lt;QSO_DATE:8&gt;20120304&lt;TIME_ON:6&gt;172000</p>
<p>&lt;QSL_RCVD:1&gt;Y&lt;QSLRDATE:8&gt;20161229&lt;DXCC:3&gt;112&lt;COUNTRY:5&gt;CHILE&lt;APP_LoTW_DXCC_ENTITY_STATUS:7&gt;</p>
<p>Current&lt;PFX:3&gt;CE1&lt;APP_LoTW_2xQSL:1&gt;Y&lt;APP_LoTW_QSLMODE:3&gt;SSB&lt;GRIDSQUARE:6&gt;FH41UM&lt;CQZ:2&gt;12&lt;ITUZ:2&gt;14&lt;eor&gt;<br />ERROR: Wrong QSO mode: SSB</p>

oh1kh
Can't import correctly from LOTW

Hi!

I assume you have pasted ADIF to your massage. Brackets do not display correctly in message.
So it is a bit hard to read here.

How ever it looks like there is something with the mode-tag.
Your text from message:
<FREQ:8>28.46300<MODE:5>SSB</p>
My test adif export:
<CALL:5>OH1KH<MODE:3>SSB<FREQ:2>28

Why LoTW gives mode-tag with length 5 when there is just 3 letters?

You could try to download qsos to file ( I think you have done that) then change wrong mode tag and import fixed file to cqrlog.

sed 's/MODE:5>SSB/MODE:3>SSB/g' input.file > output.file

See this https://www.cyberciti.biz/faq/how-to-use-sed-to-find-and-replace-text-in...

--
Saku
OH1KH

nm3s
That was it!

Thank you very much, OH1KH! That was definitely the problem. Shows how much I understood the ADIF format - a little better now, thanks to you.

The original entries on LOTW had PHONE, which CQRLog didn't like. So I changed PHONE to SSB, but didn't change the field length (since I didn't know that's what it was), so of course the program blew up!