When a CSV Data Set Config element is defined with the variable names field empty, the first line that is read is interpreted as fields containing the variable names. When data lines are read from this file until EOF (Recycle on EOF?: set to "true"), the first line, containing the variable names is interpreted as data. In the case where the first line is the header, this line should be skipped, reading data should start again at the second line.
Created attachment 25820 [details] Proposal patch
Looks good; go ahead and apply the patch.
Thanks for the report; fixed in SVN: URL: http://svn.apache.org/viewvc?rev=986094&view=rev Log: Bug 49666 - CSV Header read as data after EOF Modified: jakarta/jmeter/trunk/src/components/org/apache/jmeter/config/CSVDataSet.java jakarta/jmeter/trunk/src/core/org/apache/jmeter/services/FileServer.java jakarta/jmeter/trunk/test/src/org/apache/jmeter/config/TestCVSDataSet.java jakarta/jmeter/trunk/xdocs/changes.xml
*** Bug 54389 has been marked as a duplicate of this bug. ***
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2390