Problem opening KMM file

Thomas Baumgart thb at net-bembel.de
Thu Sep 11 07:31:03 BST 2025


On Donnerstag, 11. September 2025 05:57:50 CEST Brendan Coupe via KMyMoney-devel wrote:

> It might help me find the problem(s) if I knew what is stopping KMM from 
> opening a file that it was fine with a few weeks ago.
> 
> Is it possible to patch the code before I compile it to eliminate this 
> check that prevents KMM from opening while I track down and fix the 
> problem. If it failed the consistency check with some hints as to why 
> that might help me fix the errors in my file.

Yes, you could simply revert the change that introduced the check. Depending
on the branch you build from you have to use a different sha1. The command is

  git revert <sha1>

where <sha1> needs to be replaced with the following:

  master: 873ee771
  5.2:    5f85e886

You should really find out what the real cause is sooner than later. Your data
seems to have this inconsistency and references an account that does not exist
anymore.

Thomas

> **
> *Brendan Coupe*
> *3 at Coupe7.com*
> 
> 
> On 2025-09-10 5:01 AM, Thomas Baumgart via KMyMoney-devel wrote:
> > On Mittwoch, 10. September 2025 03:26:37 CEST Brendan Coupe via KMyMoney-devel wrote:
> >
> >> Is there a way for me to search for A000432 in KMM?
> > Unfortunately, no.
> >
> >> Note that A000424 has the following line:
> >>
> >> <SUBACCOUNT id="A000424"/>
> > If that is the only spot containing A000424 then this is a problem, as
> > that is a reference to another account and identifies a child account
> > with id A000424 which does not exist.
> >
> > The account definition would be something like this:
> >
> >    <ACCOUNT .... id="A000424" ....
> >
> >> A000432 does not have this line which I suspect is the problem.
> > That is weird, because every account needs to be a child of at least one of
> > the five account groups. They have an ID of "AStd::<type>" where <type> is
> > one of Asset, Liability, Equity, Expense or Income.
> >
> >
> 
> 

-- 

Regards

Thomas Baumgart

-------------------------------------------------------------
If it's there and you can see it, it's real.
If it's there and you can't see it, it's transparent.
If it's not there and you can see it, it's virtual.
If it's not there and you can't see it, it's gone.
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 868 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20250911/e05e3980/attachment.sig>


More information about the KMyMoney-devel mailing list