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

SuiteCRM 7.9.6 integration Mautic 2.10.1 Accounts duplicated #5103

Closed
rainolf opened this issue Oct 6, 2017 · 3 comments
Closed

SuiteCRM 7.9.6 integration Mautic 2.10.1 Accounts duplicated #5103

rainolf opened this issue Oct 6, 2017 · 3 comments
Labels
bug Issues or PR's relating to bugs
Milestone

Comments

@rainolf
Copy link

rainolf commented Oct 6, 2017

What type of report is this:

Q A
Bug report?

Description:

Tried to use the SugarCRM plugin to sync Accounts at first.
The settings are:
-> Triggered action push contacts to integration
-> Pull contacts from integration
-> Push contacts to this integration
-> Update blank values

The Account mapping field is everything needed but when i try to map also email address as follow:
Email Address <---> Company Email

the accounts gets duplicated

Once this mapping has been remove the sync works well.

Seems that the plugin cannot validate email address correctly and does not recognize the same account based on the email.

Tried with:
mautic:integration:fetchleads --integration=Sugarcrm
mautic:integration:fetchleads --integration=Sugarcrm --fetch-all
mautic:integration:synccontacts --integration=Sugarcrm

without success

Does anybody had the same problem and how to debug it?

Thanks

If a bug:

Q A
Mautic version -> 2.20.1
PHP version -> PHP Version 7.0.19-1

Steps to reproduce:

  1. Enable SugarCRM integration
  2. Mapping even just required fields for Accounts and email address
  3. Launch from console sync

Log errors:

Please check for related errors in the latest log file in [mautic root]/app/log/ and/or the web server's logs and post them here. Be sure to remove sensitive information if applicable.
mautic_settings
mautic_duplicated

No logs displayed and no errors in console

@stancel
Copy link
Contributor

stancel commented Jan 20, 2018

Hi @rainolf I experienced the same issue in Mautic 2.12.1. After several days I just setup a local environment and debugged through the code to find the issue. The problem is in the Mautic\LeadBundle\Helper\IdentifyCompanyHelper class and identifyLeadsCompany() method. Looks like it was introduced here #4742 (#4742) from this original commit (faff835). The problem is in an else if statement that tried to assign a company name based on the domain returned from MX records rather. If that returned a value then it skipped the last else if statement that would have tried to lookup the existing Account/Company contact by 'companyname'.

I have created a patch, tested it locally and it has passed. Going to create a pull request and attach it to this issue shortly.

stancel added a commit to ProcessFast/mautic that referenced this issue Jan 20, 2018
stancel added a commit to ProcessFast/mautic that referenced this issue Jan 20, 2018
…Sync of edited Company/Account - Adding correct syntax for elseif structure after Travis CI build failed for PHP 7.1
@dbhurley dbhurley added the bug Issues or PR's relating to bugs label Jan 21, 2018
stancel added a commit to ProcessFast/mautic that referenced this issue Jan 28, 2018
stancel added a commit to ProcessFast/mautic that referenced this issue Jan 28, 2018
stancel added a commit to ProcessFast/mautic that referenced this issue Apr 10, 2018
stancel added a commit to ProcessFast/mautic that referenced this issue Apr 10, 2018
…Sync of edited Company/Account - Adding correct syntax for elseif structure after Travis CI build failed for PHP 7.1
stancel added a commit to ProcessFast/mautic that referenced this issue Apr 10, 2018
stancel added a commit to ProcessFast/mautic that referenced this issue Apr 10, 2018
stancel added a commit to ProcessFast/mautic that referenced this issue May 31, 2018
stancel added a commit to ProcessFast/mautic that referenced this issue May 31, 2018
stancel added a commit to ProcessFast/mautic that referenced this issue May 31, 2018
…Sync of edited Company/Account - Adding correct syntax for elseif structure after Travis CI build failed for PHP 7.1
stancel added a commit to ProcessFast/mautic that referenced this issue May 31, 2018
stancel added a commit to ProcessFast/mautic that referenced this issue May 31, 2018
heathdutton added a commit that referenced this issue Sep 4, 2018
…d-fix

Fix for issue #5103 - Company/Accounts being duplicated on CRM Sync o…
@heathdutton heathdutton added this to the 2.14.1 milestone Sep 6, 2018
@heathdutton
Copy link
Member

Closing this as it will be (at least partially) addressed by 2.14.1.
If this is in error, please re-open after that release. Thanks!

stancel added a commit to ProcessFast/mautic that referenced this issue Apr 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues or PR's relating to bugs
Projects
None yet
Development

No branches or pull requests

5 participants
@heathdutton @stancel @rainolf @dbhurley and others