Answers.Body: <p>I found the problem.  My csv file was on a staging server that required a user name and password for access.  The error message was misleading, nothing wrong with the csv file.  Once I put the file on the server in a place that is not password protected, it worked fine.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-13T15:09:26.940Z
Answers.LastActivityDate: 2016-01-13T15:09:26.940Z
Answers.UserDisplayName: Nina Gonzalez
Body: <p>I'm using the command line import, following info provided here:</p>
  
  <p><a href="https://civicrm.stackexchange.com/questions/4723/how-do-i-import-contacts-through-the-command-line">How do I import contacts through the command line?</a></p>
  
  <p><a href="https://forum.civicrm.org/index.php?topic=34033.0" rel="nofollow noreferrer">https://forum.civicrm.org/index.php?topic=34033.0</a></p>
  
  <p>But getting the following error message:  Invalid file format for filepath/filename.csv. It must be a valid csv with separator ',' or ';'</p>
  
  <p>My file is a valide csv, downloaded using Google Docs to csv, which has been an acceptable way to create clean csv files.  Not sure why the import.php won't accept this file.</p>
  
Tags: <import><cli>
Title: Command line import error message
ThreadText: # Command line import error message
  
  (Asked by: username_0 on 2016-01-12)
  
  I'm using the command line import, following info provided here:
  
  [How do I import contacts through the command line?](https://civicrm.stackexchange.com/questions/4723/how-do-i-import-contacts-through-the-command-line)
  
  <https://forum.civicrm.org/index.php?topic=34033.0>
  
  But getting the following error message: Invalid file format for filepath/filename.csv. It must be a valid csv with separator ',' or ';'
  
  My file is a valide csv, downloaded using Google Docs to csv, which has been an acceptable way to create clean csv files. Not sure why the import.php won't accept this file.
  
  **Tags:** import, cli
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-01-13. Score: 2
  
  I found the problem. My csv file was on a staging server that required a user name and password for access. The error message was misleading, nothing wrong with the csv file. Once I put the file on the server in a place that is not password protected, it worked fine.
  
  
  ---
  
  