CRM-3111 Contact updating on import doesn't work

    Details

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

      Description

      1. Created a contact with first and last names, as well as an email address on demo (contact_id = 3162).
      2. Created the attached CSV file with the same data plus a middle name column.
      3. When trying to import it into the demo install, no new contacts are created (good!), but the existing contact doesn't get updated (bad!).

        Attachments

          Activity

          [CRM-3111] Contact updating on import doesn't work
          Sunil Pawar added a comment -

          The update import contact was depends on dedupe rule fix,
          It is working now, since dedupe rule for contact matching is fixed.
          Tested in r14618.

          Piotr Szotkowski added a comment -

          1. The issue wasn't with the new dedupe engine, as 2.0 doesn't use dedupe.

          2. I tried to redo the issue on demo (contact id 145) and it happened again - the contact wasn't updated.

          3. I updated the demo checkout to the current svn (last change: r14626 on branches/v2.0) and the attached CSV file breaks the last step of import completely.

          4. The original issue also appears on trunk, and is not related to the dedupe engine:

          • create a contact with first name Waldemar, last name Fydrych, email shot@durance.shot.pl
          • try to import the attached file (the defaults are guessed properly); set it to update the existing contact
          • dedupe finds the contact properly, so a new contact isn't created, but the found contact is not being updated (its middle name doesn't get set).
          Kurund Jalmi added a comment -

          Now in "Update" mode, if there is value in CSV file then it will update the contact with that particular value, irrespective if there is already a value or that field is null in db.

          • fixed in rev 14955.

            People

            • Assignee:
              Donald A. Lobo
              Reporter:
              Piotr Szotkowski

              Dates

              • Created:
                Updated:
                Resolved: