Bug 413535 - Error thrown by mymoneyseqaccessmgr.cpp after removing payees from database and saving
Summary: Error thrown by mymoneyseqaccessmgr.cpp after removing payees from database a...
Status: RESOLVED WORKSFORME
Alias: None
Product: kmymoney
Classification: Applications
Component: file (show other bugs)
Version: 5.0.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-28 03:29 UTC by Kevin
Modified: 2020-01-11 17:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin 2019-10-28 03:29:49 UTC
SUMMARY
Deleted several unused payee names and had merged a few others as well. Saved and closed file. Upon attempting to reopen later, received Error dialog stating "Unknown account id 'A000042' in file /build/kmymoney-8Tb1zm/kmymoney-5.0.1/kmymoney/mymoney/storage/mymoneyseqaccessmgr.cpp line 206". Closes kmymoney after acknowledging error.

STEPS TO REPRODUCE
1. Deleted/merged multiple payees
2. Saved file
3. Upon reopening, GUI crashed

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux: Kubuntu 18.04
KDE Plasma Version: 5.12.9
KDE Frameworks Version: 5.44.0
Qt Version: 5.9.5

ADDITIONAL INFORMATION
Logged out, logged back in, rebooted, then reinstalled kmymoney before determining error only occurred in file in which I had modified payees.
Comment 1 Thomas Baumgart 2019-10-28 06:25:05 UTC
In case you still have a copy of the file containing the payees make sure to keep it for further investigation. Using a newer version (we are at 5.0.7 in the meantime) might not solve the problem as it is related to your data.
Comment 2 Kevin 2019-10-28 23:15:15 UTC
I fixed the data file manually by opening the file with Kate to view the xml. Located the 'A000042' entry, which was in the scheduled transactions section, second split part. Based on the transaction I knew which account I needed it to actually reference. So I located the correct account id (A000258) in the file and replaced the 'A000042' with that id. Saved and reopened with Kmymoney with no further issues. How that account id got changed would be the bug.
Comment 3 Thomas Baumgart 2020-01-11 17:35:02 UTC
I agree, but it is kind of hard to do that now. So I close the bug.