Answers.Body: <p>This is a bug, albeit a minor one because of the simple workaround.</p>
  
  <p>In PHP (the language most of CiviCRM is written in), there are various levels of problem: notice, warning, error, etc.  A notice generally means, "This software's code has something ambiguous but not <em>wrong</em> about it.  We're going to infer what the code's author meant to do, but they may want to make it explicit."  </p>
  
  <p>Good software strives to be notice-free, and CiviCRM is mostly notice-free.  You've discovered an exception - though you haven't noted your CiviCRM version, so it's quite possible this is already fixed.</p>
  
  <p>The reason this is less important than many other bugs is that notices should be <em>suppressed</em> on a live instance of CiviCRM - they should only really pop up if you're a developer.  So the fix for this is to change your PHP settings to hide notices.  This issue should go away after that.  There's a few ways to disable notices; this Stack Exchange answer outlines them: <a href="https://stackoverflow.com/questions/2867057/how-do-i-turn-off-php-notices">https://stackoverflow.com/questions/2867057/how-do-i-turn-off-php-notices</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-13T12:07:59.467Z
Answers.LastActivityDate: 2017-01-13T12:07:59.467Z
Answers.LastEditDate: 2017-05-23T12:38:59.763Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>I have found a corrupted line entry in the database table civicrm_mapping. Went to Administer >> System Settings >> Import/Export mappings and tried to delete the line entry, but the system hung there without completing the step.</p>
  
  <p>DROPPED the tables CIVICRM_MAPPING, CIVICRM_MAPPING_FIELD, and CIVICRM_SAVED_SEARCH and recreated them from a backup copy (blank tables), but this still hasn't fixed the error.</p>
  
  <p>When executing a contacts search and using "Select fields for export":
  <a href="https://i.sstatic.net/lXsqX.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/lXsqX.jpg" alt="Screenshot of selection"></a></p>
  
  <p>I get this error:</p>
  
  <p><strong>Notice: Undefined index: in .../joomla/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/Mapping.php on line 622</strong></p>
  
  <p>Any ideas??</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-13T12:00:29.880Z
Answers.Text: This seems like additional info to supplement the original question, and not an answer.  Please edit the original question to include this info and delete this answer?  Thanks!
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-19T05:26:17.540Z
Answers.LastActivityDate: 2016-01-19T05:26:17.540Z
Answers.UserDisplayName: Peter W.
Body: <p>When trying to export a list of Contacts selecting a previously defined set of Export Fields, system throws this error:"Notice: Undefined index: in /home/.../Core/BAO/Mapping.php on line 622"</p>
  
  <p>When exporting using primary fields, the export is successful.</p>
  
  <p>What is the issue with Mapping.php?</p>
  
Tags: <contacts><php><export>
Title: When exporting contacts using custom selected fields, results in "Undefined Index ...Mapping.php Line 622"
ThreadText: # When exporting contacts using custom selected fields, results in "Undefined Index ...Mapping.php Line 622"
  
  (Asked by: username_0 on 2016-01-10)
  
  When trying to export a list of Contacts selecting a previously defined set of Export Fields, system throws this error:"Notice: Undefined index: in /home/.../Core/BAO/Mapping.php on line 622"
  
  When exporting using primary fields, the export is successful.
  
  What is the issue with Mapping.php?
  
  **Tags:** contacts, php, export
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-01-13. Score: 1
  
  This is a bug, albeit a minor one because of the simple workaround.
  
  In PHP (the language most of CiviCRM is written in), there are various levels of problem: notice, warning, error, etc. A notice generally means, "This software's code has something ambiguous but not *wrong* about it. We're going to infer what the code's author meant to do, but they may want to make it explicit."
  
  Good software strives to be notice-free, and CiviCRM is mostly notice-free. You've discovered an exception - though you haven't noted your CiviCRM version, so it's quite possible this is already fixed.
  
  The reason this is less important than many other bugs is that notices should be *suppressed* on a live instance of CiviCRM - they should only really pop up if you're a developer. So the fix for this is to change your PHP settings to hide notices. This issue should go away after that. There's a few ways to disable notices; this Stack Exchange answer outlines them: <https://stackoverflow.com/questions/2867057/how-do-i-turn-off-php-notices>
  
  
  ---
  
  ### Answer by username_0 on 2016-01-19. Score: 0
  
  I have found a corrupted line entry in the database table civicrm\_mapping. Went to Administer >> System Settings >> Import/Export mappings and tried to delete the line entry, but the system hung there without completing the step.
  
  DROPPED the tables CIVICRM\_MAPPING, CIVICRM\_MAPPING\_FIELD, and CIVICRM\_SAVED\_SEARCH and recreated them from a backup copy (blank tables), but this still hasn't fixed the error.
  
  When executing a contacts search and using "Select fields for export":
  [![Screenshot of selection](https://i.sstatic.net/lXsqX.jpg)](https://i.sstatic.net/lXsqX.jpg)
  
  I get this error:
  
  **Notice: Undefined index: in .../joomla/administrator/components/com\_civicrm/civicrm/CRM/Core/BAO/Mapping.php on line 622**
  
  Any ideas??
  
  > **Comments:**
  > **username_1**: This seems like additional info to supplement the original question, and not an answer.  Please edit the original question to include this info and delete this answer?  Thanks!  
  
  ---
  
  