https://bugs.kde.org/show_bug.cgi?id=525274
Bug ID: 525274
Summary: expense category deletion can create broken PAYEE
defaultaccountid references
Classification: Applications
Product: kmymoney
Version First 5.1.3
Reported In:
Platform: Debian stable
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
DESCRIPTION
Removing an expense category can leave an undefined PAYEE defaultaccountid.
This inconsistency is NOT detected by Tools -> Consistency Check. OFX import
aborts with no UI-displayed error if the corrupt PAYEE is matched. Subsequent
OFX transactions are silently skipped.
STEPS TO REPRODUCE
1. Create a top-level expense category "MyGroup".
2. Create a subordinate expense category "MyGroup/MyCategory".
3. Set a "MyPayee" payee's default category to "MyGroup/MyCategory".
4. Delete category "MyGroup" and choose the option to delete all subordinate
categories.
5. Save the kmymoney data to an unencrypted XML.
5. Import an OFX with a payee matching to "MyPayee".
OBSERVED RESULT
Process on: '2026-07-13', id: 'ID 55ae9388-8beb-4eab-678f-1799ac86b8e7',
symbol: '', amount: '-150.00', fees: '0.00'
"Start matching payee" "WALMART EGIFT CARD 800-966-6"
Found match with 'WALMART EGIFT CARD 800-966-6' on 'Walmart E-Gift Card'
Single matches
Caught exception from processTransactionEntry() not caused by USERABORT:
Unknown account id 'A000337'
./kmymoney/mymoney/storage/mymoneystoragemgr.cpp:132
Examine the kmymoney data XML and note the PAYEE defaultaccountid to an
undefined category.
EXPECTED RESULT
1. Category deletion should not leave undefined PAYEE defaultaccountid
references.
2. OFX import should catch exceptions and report failures in the UI, not just
on cout / cerr.
3. Tools -> Consistency Check should check PAYEE defaultaccountid and all other
ID references.
SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window):
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are watching all bug changes.