Title: Invalid Headers?
Last modified: August 20, 2016

---

# Invalid Headers?

 *  ResolvedModerator [Bet Hannon](https://wordpress.org/support/users/bethannon1/)
 * (@bethannon1)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/invalid-headers/)
 * I have carefully copied & pasted the Text part of the labels into my csv as the
   headers for each field, but I am getting “invalid header” errors– without any
   further info. (It looks like the errors should be listed, but they aren’t).
 * I also tried putting the ID # of the field as part of the header (“1 Name”), 
   but that got invalid headers for all– and they were listed below the error message.
 * What’s the secret to getting valid headers?
 * [http://wordpress.org/extend/plugins/gravity-forms-mass-import/](http://wordpress.org/extend/plugins/gravity-forms-mass-import/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [aryanduntley](https://wordpress.org/support/users/dunar21/)
 * (@dunar21)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/invalid-headers/#post-3448979)
 * Hm, send me a sample of your csv file, also export the form you are trying to
   import into so I can see what may be going on. Please also remember to be careful
   with some of the non-standard fields, I’ve listed which fields are able to be
   used with my plugin. Please email me through my contact form at aryanduntley.
   com/ticket so I can more easily track who you are during replies.
 *  Moderator [Bet Hannon](https://wordpress.org/support/users/bethannon1/)
 * (@bethannon1)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/invalid-headers/#post-3449064)
 * I just looked more closely at the instructions for the csv.
 * I did not have a space between the text and the commas…. I had firstname, lastname,
   not firstname , lastname.
 * Can that have thrown the error I described? I’ll concatenate my data again with”,”
   between each piece of data in a combined field and try again….
 *  Moderator [Bet Hannon](https://wordpress.org/support/users/bethannon1/)
 * (@bethannon1)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/invalid-headers/#post-3449065)
 * Well, that didn’t work either! Still getting invalid headers error.
 * Prepping files to email you.
 *  Plugin Author [aryanduntley](https://wordpress.org/support/users/dunar21/)
 * (@dunar21)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/invalid-headers/#post-3449101)
 * This response is for documentation:
 * The structure of the csv file is problematic for a lot of people. Here is an 
   explanation of how to properly structure your csv file to work optimally with
   this plugin:
 *  It’s really very simple. If I have three fields Name, Email, Address Then I 
   have to list them on the first line by their titles, separated by commas:
 * Name,Email,Address
 * I don’t typically use spaces after the commas in the final product but you can.
 * Then I put double quotes around each field:
 * _“Name”,”Email”,”Address”_
 * The same goes for the actual values. The only thing to remember and take note
   of is the structure of the various fields. For instance the address field is 
   made up of 6 sections: address 1, address 2, city, state, zip, country and if
   a field is not to be populated you still have to keep the commas. So a good way
   to keep track of this is to begin with your double quotes for the first row of
   entries beneath the header:
 * _“”,””,””_
 * This is the root structure for an entry. If an entry is left blank, you still
   need this structure. For instance If Name and Address were populated but email
   was not, you would do this:
 * _“{Name here}”,””,”{Address here}”_
 * So, then to make sure you have the structures correct you would go from the root
   to the structure:
 * _“{F Name},{L Name}”,”{Val}”,”{address 1,address 2,city,state,zip,country}”_
 * This is the basic structure of your first row. Now just fill in the blanks and
   remove the {} after your done doing so. Let’s fill in the name field:
 * _“Aryan,Duntley”,”{Val}”,”{address 1, address 2, city, state, zip, country}”_
 * Now, lets fill in the email:
 * _“Aryan,Duntley”,”aryanduntley@email.com”,”{address 1,address 2,city,state,zip,
   country}”_
 * Now let’s fill in the address, but we’ll not include a zip code or a country.
   To do this we would fill in the address like so:
 * _“Aryan,Duntley”,”aryanduntley@email.com”,”123 fake street,appt #2,San Diego,
   CA,zip,country”_
 * Now, we still have zip and country place holder text in there so we will remove
   those, making sure the commas stay in place:
 * _“Aryan,Duntley”,”aryanduntley@email.com”,”123 fake street,appt #2,San Diego,
   CA,,”_
 * This would be our first row entry after the headers:
 * _“Aryan,Duntley”,”aryanduntley@email.com”,”123 fake street,appt #2,San Diego,
   CA,,”_

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Invalid Headers?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gravity-forms-mass-import_2d377a.
   svg)
 * [Gravity Forms Mass Import](https://wordpress.org/plugins/gravity-forms-mass-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-mass-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-mass-import/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-mass-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-mass-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-mass-import/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [aryanduntley](https://wordpress.org/support/users/dunar21/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/invalid-headers/#post-3449101)
 * Status: resolved