-
Support guidelines
I've found a bug and checked that ...
DescriptionWhen importing transactions with duplicate detection set to external id the transactions that have been marked as deleted are imported again. The behavior is not consistent with 'content' duplicate detection where such transactions are skipped during the import. Debug informationExpected behaviourIt should be consistent with content duplicate detection and should skip such transactions even if the duplicate is in 'soft deleted' state Steps to reproduce
Additional infoNo response |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 5 replies
-
I can't replicate this. I delete a transaction, it doesn't get re-imported, unless I purge my records first. Could you share your data importer logs for the offending transaction? |
Beta Was this translation helpful? Give feedback.
-
fireflyiiidb/firefly/transactions/ http://localhost:2083/index.php?route=/sql&pos=0&db=firefly&table=transactions Showing rows 0 - 7 (8 total, Query took 0.0005 seconds.) [deleted_at: 2024-03-22 19:14:00... - ...] SELECT tj.date, tj.description, t.id, tj.id, tj.transaction_group_id, t.deleted_at, t.created_at, jm.name, jm.data FROM |
Beta Was this translation helpful? Give feedback.
-
the string used as external id is stored in quotes for some reason, maybe that's the issue? |
Beta Was this translation helpful? Give feedback.
-
Could you share your (JSON) configuration please? I would expect this value to be true. When this value is true, you would see this:
|
Beta Was this translation helpful? Give feedback.
-
I tried to dig a bit into the code and it seems like the importer uses search api on external_id field and afaik search api doesn't return deleted transactions so it should be easily reproducible. |
Beta Was this translation helpful? Give feedback.
-
Ended up here as I was trying to debug the same thing (deleted tx being re-imported). |
Beta Was this translation helpful? Give feedback.
I know, but by setting the value to true, Firefly III should reject the transaction, despite it not being found.