You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I just wanted to start off by saying thank you for writing this! I had the fairly heavy task of importing almost six years of transactions from classic YNAB to Firefly, and despite the issues I'll be listing, this script simplified the task immensely!
That being said, I had some issues come up in the process. I was able to work through them all, but I wanted to post both how I solved them for other users, and also for the possibility of solutions in the code.
1. I was getting an error with the Pre-YNAB Debt Categories (possibly because I had them all hidden?)
AssertionError: Unable to process transaction with unknown budget: |Visa (Citibank) (hidden)|
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
~/.repos/Firefly-YNAB4-Importer/firefly_ynab4_importer/main.py in <module>
----> 1 import_transactions(
2 config_file="config.toml",
3 register_file = "register.csv",
4 budget_file = "budget.csv",
5 dry_run = True,
~/.repos/Firefly-YNAB4-Importer/firefly_ynab4_importer/main.py in import_transactions(config_file, register_file, budget_file, dry_run, firefly_url, firefly_access_token, filter_min_date, filter_max_date)
27 filter_max_date=filter_max_date,
28 )
---> 29 importer.run(dry_run)
30
~/.repos/Firefly-YNAB4-Importer/firefly_ynab4_importer/main.py in run(self, dry_run)
556 self._process_budgets()
557 self._process_accounts()
--> 558 self._process_transactions()
559 if not dry_run:
560 self._load_cache()
~/.repos/Firefly-YNAB4-Importer/firefly_ynab4_importer/main.py in _process_transactions(self)
808 budget = self._budget(tx)
809 if budget:
--> 810 assert budget in self.data.budgets, f"Unable to process transaction with unknown budget: |{budget}|"
811 # ignore hidden categories
812 if self.data.budgets[budget].active:
AssertionError: Unable to process transaction with unknown budget: |Visa (Citibank) (hidden)|
I fixed this by a) manually removing initial balance items from the register csv, and b) changing the lines with other transactions that were assigned to the category (mainly interest that was being charged the to pre-ynab debt balance) to be a misc. transaction.
2. Creation of the budget categories didn't work (possibly because of a change to the API?)
This seems to occur on a subsequent execution when the previous attempt crashed. I fixed it by deleting the cache json before running (as mentioned in the issue)
5. I had some issues with special characters in the Payee column (e.g. é in café)
I fixed this by changing them to their ascii equivilent in both the csv and and the expense accounts page in Firefly.
Other Notes
Just a few things I jotted down while working through this that I think would be nice-to-haves:
The config template has some values that are different from the default. I found this challenging because I wondered which would be the "best" setting for most users. I think the default should be something that a new user can always try first, either with no config file or with the template.
Some sort of verbose mode that lists transactions and other info as its processing them would be very helpful to figure out where its breaking (I ended up needing to drop print statements into spots in the code to figure out the issues I had).
The text was updated successfully, but these errors were encountered:
Hi! I just wanted to start off by saying thank you for writing this! I had the fairly heavy task of importing almost six years of transactions from classic YNAB to Firefly, and despite the issues I'll be listing, this script simplified the task immensely!
That being said, I had some issues come up in the process. I was able to work through them all, but I wanted to post both how I solved them for other users, and also for the possibility of solutions in the code.
1. I was getting an error with the Pre-YNAB Debt Categories (possibly because I had them all hidden?)
I fixed this by a) manually removing initial balance items from the register csv, and b) changing the lines with other transactions that were assigned to the category (mainly interest that was being charged the to pre-ynab debt balance) to be a misc. transaction.
2. Creation of the budget categories didn't work (possibly because of a change to the API?)
I manually created all the budget categories in firefly to get around this error.
3. The function to create transactions is commented out by default (line 673 in main.py). Is this on purpose for some reason?
Fixed by uncommenting that line.
4. I had the same error reported in #2
This seems to occur on a subsequent execution when the previous attempt crashed. I fixed it by deleting the cache json before running (as mentioned in the issue)
5. I had some issues with special characters in the Payee column (e.g. é in café)
I fixed this by changing them to their ascii equivilent in both the csv and and the expense accounts page in Firefly.
Other Notes
Just a few things I jotted down while working through this that I think would be nice-to-haves:
The text was updated successfully, but these errors were encountered: