Results 1 to 2 of 2

Thread: Header Field 1 of 1 is too long, Contacts CSV Import.

Hybrid View

  1. #1
    Join Date
    May 2008
    Rep Power

    Default Header Field 1 of 1 is too long, Contacts CSV Import.

    Hi Zimbra Gurus,

    I'm trying to import some contacts for a customer, (approx 1600), I've setup an export for a template but I get the following error when importing..

    Unknown error for item “(Unknown)”: Could not parse csv file - Reason : invalid format - header field 1 of 1 is too long (length=268)

    I've trimmed out all the unused header fields, thus reducing the length=700 to length=268, but if I trim any more fields I start to loose data which is not ideal.

    I've also saved only 100 contacts to attempt an import but have the same error so it's no the qty of records. Any thoughts? I'm pretty sure I've sanatized the contacts as best as possible and with the template as generated by Zimbra, I'm not sure why it fails.

    Anyways, appreciate your help in advance.

    ZCS Version 8.0.3_GA_5664.NETWORK 5 Mar, 2013.
    Geekly goodness in Queenstown, New Zealand
    HeadQuarters N.D.C.

  2. #2
    Join Date
    Jul 2007
    Rep Power


    The error you report is tripped up by this:
    if (field.length() > ContactConstants.MAX_FIELD_NAME_LENGTH) {
    // doesn't look a CSV file
    throw new ParseException(String.format("invalid format - header field %d of %d is too long (length=%d)",
    i + 1, fieldNames.size(), field.length()));

    Where MAX_FIELD_NAME_LENGTH = 100. So the code seems to think your input file contains a single header of > 100 chars and there is only 1 field. Maybe the separator isn't a "," in the input file?

Similar Threads

  1. Replies: 8
    Last Post: 04-27-2012, 11:49 PM
  2. import sent items in thundirbird and import contacts
    By juhoney.empuerto in forum General Questions
    Replies: 0
    Last Post: 08-11-2010, 08:04 PM
  3. sort contacts by any other field but last name?
    By eturk in forum General Questions
    Replies: 0
    Last Post: 04-16-2010, 12:49 PM
  4. Replies: 0
    Last Post: 01-20-2009, 03:57 PM
  5. BAD HEADER Duplicate header field: "Message-ID"
    By mezza in forum Administrators
    Replies: 4
    Last Post: 12-06-2007, 07:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts