Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10433

import fails when updating on duplicate, adding to group, and multiple duplicates exist

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.0
    • Fix Version/s: None
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      When:

      • importing contacts
      • update on duplicate selected
      • indicate that you want the imported records added to a group
      • there is two or more dupes in the database already

      CiviCRM outputs a fatal error:

      DB Error: value count on row

      During the import process, all duplicte contact_ids are added as a single, comma separated value in the _newContacts Array.

      The code that adds records to the group expects one contact id per value.

      I think the correct behavior is to only add the first duplicate contact id to the group.

        Attachments

          Activity

            People

            • Assignee:
              jamie Jamie McClelland
              Reporter:
              jamie Jamie McClelland
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: