[kmymoney] [Bug 517246] KMyMoney 5.2.2 fails to reliably migrate/reopen legacy 5.1.3 XML files using `AStd::Equity` splits and old-style IDs such as `8-account` / `326-category`
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Sun Mar 8 15:41:35 GMT 2026
https://bugs.kde.org/show_bug.cgi?id=517246
--- Comment #10 from kty6y301c at mozmail.com ---
Created attachment 190483
--> https://bugs.kde.org/attachment.cgi?id=190483&action=edit
Solved my problem using the Python script
After several hours on chatgpt, I finally solved my problem using the Python
script (attached), although I find it a shame that it wasn't simpler, as the
5.1.3 to 5.2.x transition isn't handled by kmymoney.
It performs both repairs correctly:
It looks for a real account under AStd::Equity, ideally Opening Balances, and
replaces only the following in the <SPLIT ...> tags:
`account="AStd::Equity"` with the actual account, for example, A000002.
Then it converts all the old IDs, such as:
8-account
9-account
326-category
1-bank
to modern A000xxx IDs, without any conflicts with existing ones.
It automatically detects the largest existing A000xxx ID, avoids any conflicts,
and validates consistency before and after conversion.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the KMyMoney-devel
mailing list