Every time I try to import data with a header file, the header file is thrown away and the first row of data becomes the table header in CODAP. This is true whether I import a CSV file or paste a table from the clipboard.
The problem is with the hash mark (“#”) in the first row. CODAP interprets that as an indicator that there is metadata in that row and does not include it in the dataset proper. By changing the hash mark to a column name, like “N,” the file imports as one would expect. To illustrate what I mean by metadata, here are the first 14 lines of the exported data from the Mammals sample document in which you can see the hash marks and metadata for each attribute.
# attribute — name: Mammal, description: The species of the mammal, editable: true
# attribute — name: Order, description: The order of the mammal, editable: true