https://bugs.kde.org/show_bug.cgi?id=402330

            Bug ID: 402330
           Summary: error importing QIF File
                    "SKGImportPluginQif::importFile() RC=[ERR-5]:
                    SKGCategoryObject::addCategory failed because linked
                    object is not yet saved in the database."
           Product: skrooge
           Version: 2.17.0
          Platform: Flatpak
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: guillaume.deb...@gmail.com
          Reporter: skierp...@gmail.com
                CC: steph...@mankowski.fr
  Target Milestone: ---

SUMMARY
I tried to import a large .QIF file exported from Quicken 2012 with a decade of
transactions. It eventually failed with
  [ERR-5]: Import of file named
'file:///media/Windows/path/to/QDATA_export_all.QIF' failed

with no other useful info.
(The good news is simpler QIF files import OK in the latest Skrooge version,
many thanks!)

STEPS TO REPRODUCE
1. Export QIF file from Quicken 2012 containing only transactions.
2. In Skrooge, File > Import > Import... this QIF file

OBSERVED RESULT
After 30+ seconds, Skrooge displays the red message
  [ERR-5]: Import of file named
'file:///media/Windows/path/to/QDATA_export_trans.QIF' failed
and no new transactions or accounts are created.

If in console I export SKGTRACE=5 before running skrooge, then around the
failure the terminal output is:

##      >virtual SKGError SKGDocument::endTransaction(bool)
##      <virtual SKGError SKGDocument::endTransaction(bool) RC=[SUC-0]
##      >virtual SKGError SKGDocument::endTransaction(bool)
##      <virtual SKGError SKGDocument::endTransaction(bool) RC=[SUC-0]
##    <virtual SKGError SKGImportPluginQif::importFile() RC=[ERR-5]:
SKGCategoryObject::addCategory failed because linked object is not yet saved in
the database.
##    >virtual SKGError SKGDocument::endTransaction(bool)
##    <virtual SKGError SKGDocument::endTransaction(bool) RC=[SUC-0]
##  <SKGError SKGImportExportManager::importFile() RC=[ERR-5]:
SKGCategoryObject::addCategory failed because linked object is not yet saved in
the database.
##  >virtual SKGError SKGDocument::endTransaction(bool)
##  <virtual SKGError SKGDocument::endTransaction(bool) RC=[SUC-0]
##  >static KMessageWidget* SKGMainPanel::displayErrorMessage(const SKGError&,
QAction*, bool)
##  WARNING: Audio notification requested, but sound file from notifyrc file
was not found, aborting audio notification
##  <static KMessageWidget* SKGMainPanel::displayErrorMessage(const SKGError&,
QAction*, bool)

EXPECTED RESULT
Successful import of transactions.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Fedora 29 KDE spin
(available in About System)
KDE Plasma Version: 5.14.4
KDE Frameworks Version: 5.53.0 in Flatpak, 5.52.0 on desktop
Qt Version: 5.11.3 in Flatpak, 5.11.1 on Desktop

ADDITIONAL INFORMATION
I was able to import a QIF file with just my cash transactions, so maybe the
error is in securities import, some old transaction (I've upgrade Quicken
several times), or something else complicated. I will try to narrow it down and
supply a test file.

Is there any way to get Skrooge to log the details of the transaction that
fails to import (e.g. strace it)?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to