Ok, it looks like I managed to fix it (this flag works when marshalling only) I changed the org.apache.camel.dataformat.csv.CsvDataFormat. 1. Removed the if(autogenColumns) condition in the doMarhshalRecord. So now it looks like this: private void doMarshalRecord(Exchange exchange, Map row, Writer out, CSVWriter csv) throws Exception { Set set = row.keySet(); updateFieldsInConfig(set, exchange); csv.writeRecord(row); } 2. put the following snipped into the marshal method making it the very first there public void marshal(Exchange exchange, Object object, OutputStream outputStream) throws Exception { if(!autogenColumns) { config = new CSVConfig(); } ....
So it works for me but I didn't run any tests (don't have time to perform all the checks atm) -- View this message in context: http://camel.465427.n5.nabble.com/CSV-dateformat-bug-Attribute-AutogenColumns-is-not-allowed-to-appear-in-element-camel-csv-tp5570066p5571741.html Sent from the Camel - Users mailing list archive at Nabble.com.