Mapping data and refunds from same account #13180
Replies: 5 comments 1 reply
|
Hey, thanks for opening an issue. Could you share the logs of one of these runs please, where it doesn't work as expected? This problem was solved years ago, I wonder if it is a bug you ran into. Cheers, |
|
Yes, sure! I've sanitized the logs a bit and included only the entries relevant to the transactions I'm trying to map. Error message (in the Importer GUI): My mapping configuration: Relevant log entries: As you can see, regular payments to Jumbo Online are imported successfully using account ID 456. However, the refund (a deposit transaction) fails because Firefly III cannot find a valid source account with that ID. The importer correctly identifies the mapped account, but it seems that the same account mapping cannot be used for both withdrawals and deposits due to Firefly III's account type requirements? Hope this is the information you're looking for. If not please let me know! |
|
Thanks for the details! Is this from importing CSV files? |
|
The logs I shared are from an import using Enable Banking., You triggered me with your question, so I also performed a test in my lab environment using a CSV file containing just two transactions from Jumbo Online: one debit and one credit. This is the mapping configuration used for the CSV import: As you can see, Jumbo Online is also mapped to account ID 456. The CSV import completed successfully without any errors: The first time, when creating the import configuration. I hope this additional information helps narrow down the issue. I'm happy to provide additional logs or perform further tests if that would help. |
|
Is there anything I can do to help find the issue (as you mentioned it was maybe a bug)? |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm following the documentation for mapping data in the importer, as described here: https://docs.firefly-iii.org/how-to/data-importer/import/map-data/
This works fine until I receive a refund from the same account. Since refunds cannot be assigned to an Expense account, they need to be linked to a Revenue account instead.
I understand this is due to how Firefly III handles accounts, but how can I configure the mapping to achieve the same result as in the example, where all Albert Heijn stores are mapped to a single account, while still being able to correctly process refunds?
Is there a way to handle both expenses and refunds under the same mapping? Or would I need to create custom rules to map expenses to the Expense account and refunds to the Revenue account, and periodically delete the unused accounts?
All reactions