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

Error message during import of contacts

    Details

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

      Description

      During a Contact import I get this error

      Notice: Undefined index: 4_a_b in CRM_Import_Parser_Contact->checkRelatedContactFields() (line 1973 of /var/www/jenkins/live_jenkins-tfglive-5/sites/all/modules/contrib/civicrm/CRM/Import/Parser/Contact.php).

      The import is in this example a testtfg.csv file.
      First Name, Last Name, Email and Org Name

      The Options are skip or update for matching (I tried both)
      The De-dupe rule is Fuzzy

      The import still works.

      This is not an issue on Demo site.

      I altered the file Contact.php line
      1973 to be

      if ( array_key_exists($name, $relatedContactFields) ) {

      instead of
      if ( !is_array( $relatedContactFields[$name] ) ) {

      And the issue goes away but I am not sure what other issues I caused by doing that.

      Attached are the screenshots of the import process and errors and the file for testing.

        Attachments

        1. import_error.PNG
          101 kB
          Alfred Nutile
        2. import1.PNG
          97 kB
          Alfred Nutile
        3. testtfg.csv
          0.1 kB
          Alfred Nutile

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              alfrednutile Alfred Nutile
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: