Summary: | error importing QIF File "SKGImportPluginQif::importFile() RC=[ERR-5]: SKGCategoryObject::addCategory failed because linked object is not yet saved in the database." | ||
---|---|---|---|
Product: | [Applications] skrooge | Reporter: | skierpage <info> |
Component: | general | Assignee: | Stephane MANKOWSKI <stephane> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | stephane |
Priority: | NOR | ||
Version: | 2.17.0 | ||
Target Milestone: | 25.1.0 | ||
Platform: | Flatpak | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/skrooge/454e7c178eab0ea7af4295ef0e18508d4f9947cd | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | hand-edited QIF file of a transaction with tag but no category |
Description
skierpage
2018-12-19 00:28:00 UTC
Could you generate traces like this? export SKGTRACE=10 export SKGTRACESQL=1 skrooge > traces.txt 2>&1 And better, could you provide me a sample qif file reproducing the issue? You can send me it by mail. My email is in the "About" of Skrooge. Do you have an answer? Do you have an answer? Without answer, I won't be able to fix this issue. So, the bug will be closed "NOT FIXED". Thank you in advance for your help. Created attachment 117715 [details]
hand-edited QIF file of a transaction with tag but no category
(In reply to Stephane MANKOWSKI from comment #1) > Could you generate traces like this? > export SKGTRACE=10 > export SKGTRACESQL=1 > skrooge > traces.txt 2>&1 Sorry for my delay, thanks for your patience! Back in Windows I generated all kinds of QIF export files. Using the date from an SQL debug line just before the fail I was able to narrow down to a particular day's transaction (attached). In that one transaction, the category line is just L/Spouse i.e. I assigned a tag (like a Skrooge tracker) but no category. I think with the fix for bug 400724, Skrooge import treats tags as a subcategory of the (sub)category, and if there's no category, this fails. I filed bug 403725 requesting the enhancement to import Quicken tags as Trackers, not a subcategory. Addressing that enhancement would probably fix this bug. I guess the workaround is to edit the QIF file and replace ^L/ with LDummy Category/ Git commit 454e7c178eab0ea7af4295ef0e18508d4f9947cd by Stephane MANKOWSKI. Committed on 29/01/2019 at 20:04. Pushed by smankowski into branch 'master'. error importing QIF File "SKGImportPluginQif::importFile() RC=[ERR-5]: SKGCategoryObject::addCategory failed because linked object is not yet saved in the database. M +1 -0 CHANGELOG M +2 -0 plugins/import/skrooge_import_qif/skgimportpluginqif.cpp A +9 -0 tests/input/skgtestimportqif2/402330.qif M +14 -0 tests/skgbankmodelertest/skgtestimportqif2.cpp https://commits.kde.org/skrooge/454e7c178eab0ea7af4295ef0e18508d4f9947cd |