Problem opening KMM file
Brendan Coupe
3 at Coupe7.com
Sun Sep 14 22:44:34 BST 2025
When I first tried this I got an error about me being anonymous. I
entered the git command to set my email address and tried again.
On the command line I got this output:
[master 813beeb80] Revert "Report references of splits to unknown
accounts and stop loading"
2 files changed, 27 deletions(-)
When I do this, the following text is opened in my text editor:
Revert "Report references of splits to unknown accounts and stop loading"
=================================================================================
This reverts commit 873ee77102f80c2eaa7bfbd3e79bb6d4689bdff2.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
# Your branch is up to date with 'origin/master'.
#
# Changes to be committed:
# modified: kmymoney/plugins/xml/mymoneyxmlreader.cpp
# modified: kmymoney/plugins/xml/tests/mymoneyxmlreader-test.cpp
#
# Changes not staged for commit:
# modified: kmymoney/views/kmymoneyview.cpp
=================================================================================
Is there any way to prevent this from happening.
The good news is I can open my file when I revert the changes.
The bad news is I have absolutely no idea how to track down and fix the
problem.
*Brendan Coupe*
*3 at Coupe7.com*
On 2025-09-11 12:31 AM, Thomas Baumgart via KMyMoney-devel wrote:
> 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.
>>>
>>>
>>
More information about the KMyMoney-devel
mailing list