cfhttp error "Invalid column header"

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default cfhttp error "Invalid column header"

    I got a very simple csv file name "test.csv" which has
    from,to,email
    test,test,"test,test"

    My code
    <cfhttp name="get_file" url="test.csv" method="get" delimiter=","
    textqualifier=""""></cfhttp>

    I kept getting invalid column header error and if I enter textqualifier as =
    "", then I run into a diff. error
    "Incorrect number of columns in row", this only occur if I have a comma in one
    of my colum but it will work fine if my email column only have one value. This
    is why I was hoping to use textqaulifier to solve the problem but I can't seem
    to get it working. Any one have any suggestions or ideas of how I can read
    this type of format using cfhttp? Thanks.





    SangLe Guest

  2. Similar Questions and Discussions

    1. the error "invalid plugin detected. Adobe Reader will quit"
      I have gotten the RIKLA from Adobe. And I use the example code BasicPlugin(you can download it from Adobe wetsite) as my plug_in, then, I made the...
    2. Adding a new web method gets me the "Server did not recognize the value of HTTP Header SOAPAction" error
      A couple of weeks ago, I set up a .NET web service with one web method. Since then, my Linux client has been using the one method with no problem....
    3. Acro Pro Update Error: "An invalid application was selected."
      All, I've downloaded the V7.0.5 updater for Acro Professional and when I run it, and point it at my version of Acro Pro (v7.0.3), it says "An...
    4. "Invalid color" error every time Acrobat 7 is launched under Tiger
      Under 10.4.1, every time I launch Acrobat 7 Pro, I see messages like this in my system log: May 18 01:27:37 Muse /Applications/Adobe Acrobat 7.0...
    5. "Invalid message format" error from JDBC driver
      Hello, all. I have a query that runs perfectly when I run it from pgAdmin3, but bombs when I run it from ColdFusion using the JDBC driver. I'm...
  3. #2

    Default Re: cfhttp error "Invalid column header"

    You should use cffile to read files off your own server. Then just treat the file as a string and use the relevant functions and loops to get what you want from the file!
    Stressed_Simon Guest

  4. #3

    Default Re: cfhttp error "Invalid column header"

    OK, I use your suggestion and it almost there, I was able to separate the list
    with return characters but now the problem is the row data, e.g.
    test,test,"test,test2",test

    What function do I use to tell CF that there are only 4 items on this list, it
    will be 5 if I use comma as delimeter, any suggestions?


    SangLe Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139