Answers.Body: <p>The issue we were having was with two fields in the import field mapping having the same name.</p>
  
  <p>Amending the field labels through Admin>custom data to allowed us to able to link the data to the right location.</p>
  
  <p>-As I said both fields shared values and labels so it's not clear why this was a problem. Or at least, became a problem between this month's import and last months.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-18T16:17:50.030Z
Answers.LastActivityDate: 2015-11-18T16:17:50.030Z
Answers.UserDisplayName: Craig Almond
Body: <p>I'm running a monthly activity import into a site (4.4.13) [I realise it's due an upgrade to LTS]</p>
  
  <p>We have a standard csv tempalte, and existing field mapping. And have been using the same method consistently for over 12 months.</p>
  
  <p>Today on running the first batch all were rejected with the error message "source_contact_id is not valid : 2"</p>
  
  <p>The source contact field is not included in the import csv and has previously been automatically picked up from  logged in user id ("2").</p>
  
  <p>User 2 is the site admin account and has full permissions.</p>
  
  <p>The csv includes an External ID field which we use to create the "With Contact"</p>
  
  <p>I've tried including The source contact id as a field- failed with same message</p>
  
  <p>I've tried replacing the External ID for the with contact with the External ID with the source contact.- failed with same message</p>
  
  <p>Does anybody have any ideas what may be causing this?</p>
  
  <p><strong>Update 18 Nov</strong></p>
  
  <p>Found a working solution to the above- not sure of this counts as an answer or an extension of the question.</p>
  
  <p>Ran an activity import against a dummy contact and the first few columns of the import ran fine. Then through a process of trial and error worked out that one column (out of 200) was causing the process to stall.</p>
  
  <p>Still no idea where the source contact invalid error message is coming from- but was consistent across all failed attempts.</p>
  
  <p>Setting the offending column to do not import allows the full file to import.</p>
  
  <p>There are two fields in the activity custom data that share a field name (and multi-choice field labels). Don't know if the import mapping points to the same field twice.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-11-17T16:11:31.347Z
Comments.Text: Try logging out and back in - I know it sounds like the standard IT support response but it may well be your session has become stale or something.
Comments.UserDisplayName: Parvez Saleh
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-11-18T12:56:09.763Z
Comments.Text: Had done that. And updated civi to 4.4.20.
  
  Still no dice. :(
Comments.UserDisplayName: Craig Almond
Tags: <activities><import><error>
Title: Why are Activity Imports failing with error message "source contact id not valid"?
ThreadText: # Why are Activity Imports failing with error message "source contact id not valid"?
  
  (Asked by: username_0 on 2015-11-13)
  
  I'm running a monthly activity import into a site (4.4.13) [I realise it's due an upgrade to LTS]
  
  We have a standard csv tempalte, and existing field mapping. And have been using the same method consistently for over 12 months.
  
  Today on running the first batch all were rejected with the error message "source\_contact\_id is not valid : 2"
  
  The source contact field is not included in the import csv and has previously been automatically picked up from logged in user id ("2").
  
  User 2 is the site admin account and has full permissions.
  
  The csv includes an External ID field which we use to create the "With Contact"
  
  I've tried including The source contact id as a field- failed with same message
  
  I've tried replacing the External ID for the with contact with the External ID with the source contact.- failed with same message
  
  Does anybody have any ideas what may be causing this?
  
  **Update 18 Nov**
  
  Found a working solution to the above- not sure of this counts as an answer or an extension of the question.
  
  Ran an activity import against a dummy contact and the first few columns of the import ran fine. Then through a process of trial and error worked out that one column (out of 200) was causing the process to stall.
  
  Still no idea where the source contact invalid error message is coming from- but was consistent across all failed attempts.
  
  Setting the offending column to do not import allows the full file to import.
  
  There are two fields in the activity custom data that share a field name (and multi-choice field labels). Don't know if the import mapping points to the same field twice.
  
  **Tags:** activities, import, error
  
  > **Comments:**
  > **username_1**: Try logging out and back in - I know it sounds like the standard IT support response but it may well be your session has become stale or something.  
  > **username_0**: Had done that. And updated civi to 4.4.20.  Still no dice. :(  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2015-11-18. Score: 0 | Accepted answer
  
  The issue we were having was with two fields in the import field mapping having the same name.
  
  Amending the field labels through Admin>custom data to allowed us to able to link the data to the right location.
  
  -As I said both fields shared values and labels so it's not clear why this was a problem. Or at least, became a problem between this month's import and last months.
  
  
  ---
  
  