<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 9/16/25 3:29 PM, Thomas Baumgart
wrote:<br>
</div>
<blockquote type="cite" cite="mid:2892093.DJkKcVGEfx@sy-346-nb">
<pre wrap="" class="moz-quote-pre">On Dienstag, 16. September 2025 22:18:27 CEST Brendan Coupe via KMyMoney-devel wrote:
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">
*Brendan Coupe*
*3@Coupe7.com*
On 2025-09-16 12:47 AM, Thomas Baumgart via KMyMoney-devel wrote:
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">On Montag, 15. September 2025 18:36:37 CEST Brendan Coupe via KMyMoney-devel wrote:
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">On 2025-09-15 12:31 AM, Thomas Baumgart via KMyMoney-devel wrote:
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">On Mittwoch, 10. September 2025 00:03:29 CEST Brendan Coupe via KMyMoney-devel wrote:
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">I have no idea how to fix this.
grep A000432 MyMoney.kmy | grep '<ACCOUNT>'
returns nothing.
grep A000432 MyMoney.kmy | wc
returns 9 lines
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">I read this before and wondered what you were doing to see
nothing but finding 9 matches and just spotted the problem today:
grep A000432 MyMoney.kmy | grep '<ACCOUNT>'
needs to be changed to
grep A000432 MyMoney.kmy | grep '<SPLIT'
because the account is missing and there won't be an ACCOUNT item
(unless there is and it is not loaded for other reasons, but I doubt
that).
That should show those 9 matches as well (maybe less, but that is
not so important right now). Using
grep -n A000432 MyMoney.kmy | grep '<SPLIT'
provides you the line numbers of those splits and you can try to
analyze of which type this account needs to be by looking at the
transaction.
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">grep -n A000432 MyMoney.kmy | grep '<SPLIT'
returns nothing
grep -n A000432 MyMoney.kmy | grep SPLIT
returns 9 lines.
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">SPLIT without the leading < points in the direction of matched transactions.
Do these lines show up in <PAIR key="kmm-matched-tx" ... />
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">
Yes, first part of the first instance:
<PAIR key="kmm-matched-tx" value=" &#60;!DOCTYPE
MATCH> &#60;CONTAINER> &#60;TRANSACTION
id="" postdate="2008-11-25" ...
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">Each of the 9 lines has 1,500 plus characters. The length is pretty
unique in my KMM file although I have found a few that are not part of
the lines with A000432. My guess is A000432 is not the only problem.
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">That could well be and the length is also an indication for a matched
transaction. Maybe, those are leftovers and the referenced account was
deleted while they still exist. There was a time when this was possible
in older KMyMoney versions, so if all those entries are aged enough it
would also be an indicator.
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">They are from 15+ years ago and I think the account was closed a while
ago. I don't think I deleted the account but I may have deleted equities
that were in it if KMM would have allowed that. I have a vague
recollection of trying to close or delete some things here many years ago.
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">grep -n '.\{1500\}' MyMoney.kmy | wc
returns 77 lines that are over 1500 characters long so hopefully they
all don't need to be fixed.
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">Does
grep -n '.\{1500\}' MyMoney.kmy | grep kmm-matched-tx | wc
also return 77? I wonder why you have 77 unaccepted matched transactions
while I try to keep that number at zero. I had to create one to see how
this looks like in the XML construct :)
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">It returns 75.
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">
Once we have answers from you and a bit clearer view we can continue trying
to fix the situation. I have the impression of some light at the end of the
tunnel - or is it in fact the train? LOL.
</pre>
</blockquote>
</blockquote>
<pre wrap="" class="moz-quote-pre">
You can try to delete those kmm-matched-tx and corresponding kmm-match-split
lines if they are that old. You know that you want to keep a backup of the file :)
</pre>
</blockquote>
<p>The line prior to the long line with kmm-matched-tx has <span
style="white-space: pre-wrap">kmm-match-split in it, all surrounded by <KEYVALUEPAIRS> and </KEYVALUEPAIRS></span></p>
<p><span style="white-space: pre-wrap">Are you saying I should delete all 4 lines?
</span></p>
<pre class="moz-signature" cols="72">--
Brendan</pre>
</body>
</html>