[kmymoney] [Bug 447224] New: Import Filter creates output file but does not import it. Manually importing created file works fine.

AgentX_NZ bugzilla_noreply at kde.org
Sun Dec 19 11:27:46 GMT 2021


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

            Bug ID: 447224
           Summary: Import Filter creates output file but does not import
                    it. Manually importing created file works fine.
           Product: kmymoney
           Version: 5.1.2
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: importer
          Assignee: kmymoney-devel at kde.org
          Reporter: marten.nz at gmail.com
  Target Milestone: ---

Created attachment 144674
  --> https://bugs.kde.org/attachment.cgi?id=144674&action=edit
Powershell script before being compiled.

SUMMARY
***
When importing banks OFX file, it causes kMyMoney to close. To difficult to
diagnose so chose to import QIF format instead. Unfortunately banks qif has
Payees as Memos so an import filter was required to change M to P. 

Initially thought Import Filter parsed the file as an argument to the filter
application but learnt the contents were actually piped in.  Being on Windows
platform prefer to use Powershell and compile to executable. 
Script tests fine and works in KMM, KMM waits for script to finish however no
transactions are imported on completion.
The stdin is receiveived, processed and saved to output file. KMM is not
picking up the file after the filter.

I read the documentation multiple times and tried the source code but it was
above my head. 
I also tried writing to stdout instead of a file. No file and still no
transaction.
What is KMM expecting if not the file created in the import filter?

***
STEPS TO REPRODUCE
1. Create powershell app to receive stdin and output new file
   Compile script to exe. (used PS2EXE)
3. Create Filter Profile
   Set "Input filter location" to path/myFilter.exe
   Set "Output filter location to same path and file outputted by powershell
script
5. File >> Import QIF using created filter profile.

OBSERVED RESULT
Import filter invoked, qif contents pushed to executable, output.qif file
created with corrections applied
Import waits for executable to finish then reports No transactions imported.
"Output.qif" file remains intact and can be manually imported without issue.

EXPECTED RESULT
After selecting qif file to import, expect script to write to stdout or file
and for KMM to import the newly created file.

SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list