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

CSV importer uses "contains" to detect duplicates in External ID #8582

Closed
4 tasks done
RobinWeitzel opened this issue Feb 24, 2024 · 4 comments
Closed
4 tasks done

CSV importer uses "contains" to detect duplicates in External ID #8582

RobinWeitzel opened this issue Feb 24, 2024 · 4 comments
Labels
bug Verified and replicated bugs and issues. fixed Bugs that are fixed (in a coming release).

Comments

@RobinWeitzel
Copy link

Support guidelines

I've found a bug and checked that ...

Description

When doing a CSV import using "External ID" to detect duplicates Firefly seems to check "contains" instead of "equals" causing transactions being mistakenly labeled as duplicate.

Debug information

Debug information generated at 2024-02-24 11:14:36 for Firefly III version v6.1.9.

System information
ItemValue
Firefly III6.1.9 / v2.0.12 / 22 (exp. 22)
PHP version8.3.2 / apache2handler / Linux
BCscale12
Error reportingDisplay: Off, reporting: ALL errors
Max upload67108864 (64 MB)
Database driversmysql, *pgsql*, sqlite,
Docker build#957, base #79
Firefly III information
ItemValue
TimezoneAmerica/Los_Angeles + Europe/Vienna
App environmentlocal, debug: false
Layoutv1
Logginginfo, stack / (empty)
Cache driverfile
Default language and localeen_US + equal
Trusted proxies**
Login provider & user guardeloquent / remote_user_guard
Login headersRemote-Email +
Stateful domains
Last cron jobnever (never)
Mailerlog
User-specific information
ItemValue
User#1 of 1
User flags
Session start2024-02-01 00:00:00
Session end2024-02-29 23:59:59
View range1M
User languageen_US
User localeen_US
Locale(s) supporteden_US.utf8: ✅
en_US.UTF-8: ✅
User agentMozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36

Expected behaviour

Both transactions are imported

Steps to reproduce

Create a CSV file for import, containing at least the following fields:
xxx,ID,xxx
xxx,5682,xxx
xxx,682,xxx
Run a csv import using the Firefly importer.
Use the ID column to identify duplicates.

Additional info

Error shown in importer
image

Transaction that the link leads to:
image

@JC5
Copy link
Member

JC5 commented Feb 24, 2024

Nice, I'm pretty sure you're right 😅. I'll pick it up!

@JC5 JC5 added bug Verified and replicated bugs and issues. fixed Bugs that are fixed (in a coming release). labels Feb 25, 2024
@JC5 JC5 added this to the importer-v1.4.5 milestone Feb 25, 2024
@JC5
Copy link
Member

JC5 commented Feb 25, 2024

Found and fixed :)

@RobinWeitzel
Copy link
Author

Thanks, appreciate your work :)

Copy link
Contributor

Hi there! This is an automatic reply. Share and enjoy

This issue is now 🔒 closed. Please be aware that closed issues are not monitored by the developer of Firefly III.

  • If the original bug is not actually fixed, please open a new issue. Refer to this issue for clarity.
  • Follow-up questions must be posted in a new discussion
  • Further replies to this issue may get no response.

If there is more to discuss, please open a new issue or discussion.

Thank you for your contributions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Verified and replicated bugs and issues. fixed Bugs that are fixed (in a coming release).
Projects
Status: Done
Development

No branches or pull requests

2 participants