Bug 491864 - Update Account with a specific date does not retrieve all bookings.
Summary: Update Account with a specific date does not retrieve all bookings.
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: onlinebanking (show other bugs)
Version: 5.1.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-18 16:15 UTC by mirekgoebel
Modified: 2024-08-22 11:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mirekgoebel 2024-08-18 16:15:46 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
Update Account with a specific date does not retrieve all bookings.

STEPS TO REPRODUCE
1. Account / Update Account /  Pick Date / 01.01.24
2. inputting password, TAN etc.
3. aqbanking is getting results

OBSERVED RESULT
aqbanking does not retrieve all bookings (for example only 36 up to 09.01.24)

EXPECTED RESULT
aqbanking gets all bookings up to today (over 100)

SOFTWARE/OS VERSIONS
AqBanking v6.5.4.0stable
Operating System: Manjaro Linux 
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION
When setting up a new KMymoney instance, the exact same steps (and unchanged aqbanking-settings) mentioned above retrieve all bookings!! How can that be? 
Is there a way to reset the account without deleting all previous bookings/informations/etc.?
Comment 1 Thomas Baumgart 2024-08-19 07:19:22 UTC
This needs some further investigation. I assume, that with "a new KMymoney instance" you mean a new KMyMoney data file in the same user account. Also, if you pick the start date as 1.1.2024 you get only a limited number of transactions in one case (existing file) and all until today in the other (new file). Is this correct?

Please do the following and report the results here:

- turn on the "logging imported statement" feature (Configure KMyMoney/General/Support). You could use your home directory as log path.
- run the import on both instances for one account and compare the two files named kmm-statement-2024.... which are generated as result of the download
- do they show the same content (same size, similar content)?
- in case they differ, check the directory ~/.aqbanking/backends/aqhbci/data/banks/de/<your-blz>/logs and compare the last two files that were generated in that directory. You can find their names with "ls -ltr *.log | tail -n 2".
- do they have the same length and show similar content (some lines differ due to differing timestamps)
Comment 2 mirekgoebel 2024-08-19 16:22:02 UTC
(In reply to Thomas Baumgart from comment #1)
> This needs some further investigation. I assume, that with "a new KMymoney
> instance" you mean a new KMyMoney data file in the same user account. Also,
> if you pick the start date as 1.1.2024 you get only a limited number of
> transactions in one case (existing file) and all until today in the other
> (new file). Is this correct? YES
> 
> Please do the following and report the results here:
> 
> - turn on the "logging imported statement" feature (Configure
> KMyMoney/General/Support). You could use your home directory as log path.
> - run the import on both instances for one account and compare the two files
> named kmm-statement-2024.... which are generated as result of the download
> - do they show the same content (same size, similar content)? 
> - in case they differ, check the directory
> ~/.aqbanking/backends/aqhbci/data/banks/de/<your-blz>/logs and compare the
> last two files that were generated in that directory. You can find their
> names with "ls -ltr *.log | tail -n 2".
> - do they have the same length and show similar content (some lines differ
> due to differing timestamps)

YES, they have the same length and the same content - only the fields are sorted differently. I've edited 2 example lines with "dummy content" -- see below. Is there a way to kind of reset an account (so that it acts like a fresh KMyMoneyFile)  without deleting all the transactions? THANKS FOR THE QUICK HELP!

<KMYMONEY-STATEMENT>
  original KMyMoneyFile: <STATEMENT skipCategoryMatching="0" currency="EUR" type="savings" version="1.1" accountname=""  accountnumber="123456" enddate="2024-08-19" closingbalance="12345" routingnumber="12121212" begindate="2024-01-02" accountid="A000005">
  new KMyMoneyFile: <STATEMENT routingnumber="12121212" currency="EUR" begindate="2024-01-02" accountid="A000001" enddate="2024-08-19" accountname="" accountnumber="123456" closingbalance="12345" version="1.1" type="savings" skipCategoryMatching="0">
  
  original KMyMoneyFile:  <TRANSACTION payee="Mr. X" action="none" dateposted="2024-01-02" memo="some memo" number="" bankid="A000005-2024-01-02-3756c80-1" amount="-123" reconcile="0"/>
  new KMyMoneyFile:<TRANSACTION amount="-123" reconcile="0" action="none" number="" memo="some memo" dateposted="2024-01-02" payee="Mr. X" bankid="A000001-2024-01-02-3756c80-1"/>
Comment 3 mirekgoebel 2024-08-22 11:17:02 UTC
Can I test or analyze anything else to make finding the error (or finding out if it is an error) easier? Thanks.