Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
SangLe #1
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
-
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... -
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.... -
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... -
"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... -
"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... -
Stressed_Simon #2
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
-
SangLe #3
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



Reply With Quote

