Answers.Body: <p>This patch fixed the problem. Thanks to @skherraz</p>
  
  <p><a href="https://lab.civicrm.org/dev/core/issues/1269" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/issues/1269</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-08T09:25:31.467Z
Answers.LastActivityDate: 2019-10-08T09:25:31.467Z
Answers.UserDisplayName: Tapash
Body: <p>Receiving following error in drupal when importing contribution from a csv. Is there a quick fix for this?</p>
  <blockquote>
  <p>Error: Class name must be a valid object or a string in
  CRM_Import_Parser-&gt;parsePseudoConstantField() (line 565 of
  /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Import/Parser.php).</p>
  <p>Notice: Undefined index: bao in
  CRM_Import_Parser-&gt;parsePseudoConstantField() (line 563 of
  /home/webadmin/public_html/cmm/sites/all/modules/civicrm/CRM/Import/Parser.php).</p>
  </blockquote>
  <p>These are the fields I am trying to import</p>
  <ul>
  <li><p>ContactID</p>
  </li>
  <li><p>Total Amount</p>
  </li>
  <li><p>Financial Types</p>
  </li>
  <li><p>1 Custom field (I have    imported this custom fields previously)</p>
  </li>
  <li><p>Eligible for giftaid (giftaid    extension) (I have imported this
  previously)</p>
  </li>
  <li><p>Received Date</p>
  </li>
  <li><p>Contribution Source</p>
  </li>
  </ul>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-07T20:11:34.607Z
Comments.Text: It might help if you can post:
  * The full error from the CiviCRM logs from the time of the error
  * A sample of the file with the column headers (personal data removed if needed)
  
  For the CiviCRM logs usually you can look on your server in site/default/files/civicrm/ConfigAndLog
  (replace with wherever the Drupal files folder for your site is stored if different)
Comments.UserDisplayName: lolcode
Tags: <drupal><civicontribute><contacts><custom-fields><error>
Title: Import Contribution failing, how to fix?
ThreadText: # Import Contribution failing, how to fix?
  
  (Asked by: username_0 on 2019-10-05)
  
  Receiving following error in drupal when importing contribution from a csv. Is there a quick fix for this?
  
  > Error: Class name must be a valid object or a string in
  > CRM\_Import\_Parser->parsePseudoConstantField() (line 565 of
  > /home/webadmin/public\_html/cmm/sites/all/modules/civicrm/CRM/Import/Parser.php).
  >
  > Notice: Undefined index: bao in
  > CRM\_Import\_Parser->parsePseudoConstantField() (line 563 of
  > /home/webadmin/public\_html/cmm/sites/all/modules/civicrm/CRM/Import/Parser.php).
  
  These are the fields I am trying to import
  
  * ContactID
  * Total Amount
  * Financial Types
  * 1 Custom field (I have imported this custom fields previously)
  * Eligible for giftaid (giftaid extension) (I have imported this
    previously)
  * Received Date
  * Contribution Source
  
  **Tags:** drupal, civicontribute, contacts, custom-fields, error
  
  > **Comments:**
  > **username_1**: It might help if you can post: * The full error from the CiviCRM logs from the time of the error * A sample of the file with the column headers (personal data removed if needed)  For the CiviCRM logs usually you can look on your server in site/default/files/civicrm/ConfigAndLog (replace with wherever the Drupal files folder for your site is stored if different)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-10-08. Score: 0 | Accepted answer
  
  This patch fixed the problem. Thanks to @skherraz
  
  <https://lab.civicrm.org/dev/core/issues/1269>
  
  
  ---
  
  