-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Unable to import contacts with DoNotContact set to TRUE #9027
Comments
I quickly stood up a new mautic 2.16.3 instance and tried the same import process with the same incoming .csv file and these contacts were successfully imported and marked as do not contact. I think this defect is only in the 3.x branch. |
Besides |
Anyone have any errors from the logs in /var/logs ? |
(Also if you can share the file that worked in 2.x that would be super helpful!) |
@RCheesley This would be a most basic example of comma separated values where it fails, although I didn't test in 2.x:
or just
Both fields will be matched right away, but I double-checked that in the UI and also tried with other field names which I consequently had to match in the UI next. |
Great, thanks for the detail! I found a previous PR here that mentions using Tested and indeed, it does not seem to be working. Here is the file that I used: |
This issue has been mentioned on Mautic Community Forums. There might be relevant details there: |
This issue has been mentioned on Mautic Community Forums. There might be relevant details there: https://forum.mautic.org/t/cannot-bulk-import-do-not-contact/16027/2 |
Hi there, can you please test #9186 ? |
even with my PR #9186 I still found that it only fix when you update a contact, but if you set the bug is that it tries to add DNC before the lead even exists, but the DNC is stored in a separate table so the lead has to be saved first, then you can add its ID in the DNC table. |
@jacobshilitz I'll try to come up with a separate PR which has a fix for this exact issue, as it's also impacting contacts created through the API. This is currently blocking us from releasing Mautic's API library v3 as this is the very last automated test that's failing: https://travis-ci.org/github/mautic/api-library/jobs/728564625 UPDATE: PR done: #9229 |
Hi! To keep things central regarding issues around Do Not Contact (DNC), I created a JIRA issue to track all issues related to DNC in a single place. That way, we can more efficiently fix the several bugs that were reported. Please check it out: https://mautic.atlassian.net/browse/TPROD-72 |
Fixed in 3.1.2 |
Bug Description
Creating a simple CSV with two columns, email and donotContact. Select the csv file, map email to email, map donotContact to Properties Do Not contact. Import correctly imports the contacts, but the imported rows are not marked for do not contact.
Steps to reproduce
Log errors
None.
Theory
I see that donotContact information is stored in a different table (
lead_donotcontact
). Now with a reason code, do not contact type, etc. I'm not sure if this import process is legacy from 2.x where that flag was on thelead
table and now it's a separate table? Seems like there needs to be a mapping or a process job to mark these contacts as donotcontact?Any other work arounds other than manually setting these?
The text was updated successfully, but these errors were encountered: