Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incremental import #57

Open
krackr808 opened this issue Jan 12, 2025 · 5 comments
Open

Incremental import #57

krackr808 opened this issue Jan 12, 2025 · 5 comments

Comments

@krackr808
Copy link

krackr808 commented Jan 12, 2025

Hello, while importing via backup files or csv is possible, in my experience, it does a full replace. That is, the entire database is overwritten. Is it possible to incrementally import transactions? Since there are times when I forget to record transactions, and a batch import is easier. Thx so much!

@tiberiusteng
Copy link
Owner

You can try to use CSV/QIF import feature. Export a few transactions to see what field names are supported, then use them as reference to create your new transactions.

You don't need to have all fields with CSV import, just put field name on first record and check "Use header from file" when importing. Payee/category are matched by display name.

Currently it does not support having transactions from multiple accounts in the same file, if you need this feature I'll try to implement it.

@krackr808
Copy link
Author

Thanks! I tried and it worked! It would be a good feature to add multiple accounts, but then I think it's a good to have and not a must have feature.

I was about to mark this as Closed, just that on this one, I had received an error earlier. If possible so help me understand. Though it's fine if you do not prioritize it. Apologies, I don't understand code, so tried to get something from Google Gemini but was unsuccessful.

The error code is below:

Fail..
CSV import error: java.lang.NullPointerException: Attempt to invoke virtual method 'long java.util.Date.getTime()' on a null object reference (CsvlmportTask.java:70)

I tried removing fields with null values, making sure that the Account is correct, and then also added the TXN ID field. Strangely (to me), it got fixed later, and this was with both the corrected and the initial files if I remember right.

@tiberiusteng
Copy link
Owner

Did it show full error log or you just got that line? Because that line is outer handling not where it likely occurs. I guess you have a time field and some of the content can't be correctly parsed as time. I'll try to reproduce and fix it.

@tiberiusteng
Copy link
Owner

Ahh, it's probably because date or time field are omitted. These two fields are kind of required. I'll try to improve the error message on this.

@krackr808
Copy link
Author

It was like a pop up. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants