<br><br><div class="gmail_quote">On 14 January 2013 23:26, Fr David Ousley <span dir="ltr"><<a href="mailto:davidousley@verizon.net" target="_blank">davidousley@verizon.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>


<div><div>Thanks for the prompt reply!</div><div><br></div><div>The lines at the top of the file are same as yours, except for the creation and revision dates.</div><div><br></div><div>The last line of the file is a very long string of not readily identifiable content.  I added the <KMYMONEY-FILE> as the last line, recompressed, renamed .kmy, and reloaded, but got the same error.</div>
</div></blockquote><div><br></div><div>You don't need to recompress.  KMyMoney will read the xml.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div><br></div><div>The error message I alluded to appears under "details" when it says the file is unparsable:</div><div><br></div><div>Uncaught error.  Please report the details to the developers.</div><div>
Currency "USD" not found in file /home/abuild/rpmbuild/BUILD/kmymoney-4.6.3/kmymoney/mymoney/mymoneyfile.cpp</div><div>line 2,410</div><div><br></div><div>Kmymoney then closes, though it will open with other files.</div>
<div><br></div><div>I also tried your suggestion of opening a new file with a different currency, but that doesn't seem to alter the handling of the existing file.</div><div><br></div><div>id numbers of the payees are all in the form you describe -- one letter followed by numbers</div>
<div><br></div><div>I think I am now subscribed to the list, so presumably I'll see any suggestions from others (though your posting to the list has not appeared).</div><div><br></div><div>Thanks.</div><div><br></div>
<div>Fr O.</div><div><div class="h5"><div><br></div></div></div></div></blockquote><div> </div><div><div>OK.  The line number, I was assuming, was in your xml line, not the program source.</div><div><br></div><div>Can you send me off-list, the last dozen or so lines of your xml file.</div>
<div><br></div><div>Also, please run 'xmllint yourxmlfilenamehere', and see what that finds.  I see there is a --recover option, "--recover : output what was parsable on broken XML documents" so you could try 'xmllint yourxmlfilenamehere > ~/xmloutput.xml', and see what you get in the ~/xmloutput.xml file.  Try comparing with the original.</div>
<div><br></div><div>Allan</div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div class="h5"><div></div><div>On Mon, 14 Jan 2013 17:52:54 -0500, allan Anderson <<a href="mailto:agander93@gmail.com" target="_blank">agander93@gmail.com</a>> wrote:<br>
</div><br><blockquote style="margin:0 0 0.80ex;border-left:#0000ff 2px solid;padding-left:1ex"><br><br><div class="gmail_quote">On 14 January 2013 21:20, Fr David Ousley <span dir="ltr"><<a href="mailto:davidousley@verizon.net" target="_blank">davidousley@verizon.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Allan --<br>
<br>
I find a recent post of yours on the Kymymoney list about a kmymoney data file that won't parse.  I have the same problem, though I can uncompress the file and open it in an editor (vi my case).  The first line seems fine according to what you said should be there.  The second line is<br>


<br>
<!DOCTYPE KMYMONEY-FILE><br>
<br>
The "details" reports "USD" missing in line 2410.<br>
<br>
Forgive me if I am violating etiquette in sending this directly.  I had not previously subscribed to the list, and it says one cannot post to the list without being a subscriber.<br>
<br>
I appreciate any help you might be able to give.<br>
<br>
Fr O.</blockquote><div> </div><div>Posting from Google as my ISP virus checker objects to these headers.</div><div><br></div><div>Anyway -</div><div><div>Don't concern yourself - I don't feel violated!  You might have been able to post to the list without subscribing - it would then depend on the administrator as to whether or not to publish.</div>

<div><br></div><div>Anyway, I'll do my best to help, although I'm no expert in this area.</div><div><br></div><div>I also hope I don't run into the same problem I had last time, with my email being rejected as containing a virus/spam. (Hmmph).</div>

<div><br></div><div>After your second line you should expect to see -</div><div>"<KMYMONEY-FILE></div><div> <FILEINFO></div><div>  <CREATION_DATE date="2008-12-06"/></div><div>  <LAST_MODIFIED_DATE date="2011-11-01"/></div>

<div>  <VERSION id="1"/></div><div>  <FIXVERSION id="4"/></div><div> </FILEINFO>"</div><div>and the final line should be - "</KMYMONEY-FILE>".</div><div><br></div>

<div>I'm afraid I don't understand your reference to - "The "details" reports "USD" missing in line 2410.".  Could you explain that for me, please?  That could be important.</div><div>

<br></div><div>What is it that reports the error?  What is the content of the adjoining lines?</div><div><br></div><div>Next, I would examine all the 'id' fields.  They should all be in a similar format (header apart) of an alpha character (A, E. P, T) followed by a bunch of zeros and one or more numerics.  Any odd characters could be a problem, apart from currency ids.</div>

<div><br></div><div>If all that looks in order, then I'm afraid it's a question of examining the file structure - the fields should be of similar structure.  Have you another file you could compare with, perhaps.</div>

<div><br></div><div>Failing that, if all else fails you, the only thing I can suggest is sending me the file, although obviously there are privacy problems there.</div><div><br></div><div>One other thought - I assume that USD is your base currency.  It might be worth opening a new file - from a console, enter kmymoney -n, then set a different base currency and try to load your file, in case the missing 'USD' is the culprit.  I don't know if this would work, or even how it might help, but we'll cross that bridge later, if necessary.</div>

<div><br></div><div>I'm copying this to the list, possibly to enlist help from others.  Hope you don't mind.</div><div><br></div><div>Allan</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br>

</div></div></div>
</blockquote><br><br><br></div></div><div class="im"><div><div>-- </div><div><div>Fr David Ousley</div><div><small>Church of St Michael the Archangel</small></div><div><small>210 West Allens Lane</small></div><div><small>Philadelphia, PA  19119</small></div>
<div><small>215-247-1092</small></div><div><small><a href="mailto:davidousley@verizon.net" target="_blank">davidousley@verizon.net</a></small></div></div></div></div></div></blockquote></div><br>