I think you need to mention how to split the CSV. There should be delimiter with which the contents from csv file are split. Example , New Line characters, "|" , "comma" etc.
If this doesn't work, request you to paste the complete error log. And is it a run time exception or a compile time exception? Cheers Reji On Fri, Oct 18, 2013 at 11:57 AM, Olaf [via Camel] < [email protected]> wrote: > Hello, > > why does this route not work? I'm getting error: cannot find symbol. > > from("file:data/inbox") > .choice() > .when(header("CamelFileName").endsWith(".xml")) > .to("file:data/outbox/xml") > > .when(header("CamelFileName").regex("^.*(csv|csl)$")) > .unmarshal() > .csv() > .split(body()) > .to("log:split") > .otherwise() > .to("log:otherwise") > .end() > .to("log:end"); > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://camel.465427.n5.nabble.com/error-cannot-find-symbol-when-using-split-in-choice-tp5741857.html > To unsubscribe from Camel - Users, click > here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=Y29udGFjdHJlamlAZ21haWwuY29tfDQ2NTQyOHwxMDA0OTE4MjMz> > . > NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://camel.465427.n5.nabble.com/error-cannot-find-symbol-when-using-split-in-choice-tp5741857p5741879.html Sent from the Camel - Users mailing list archive at Nabble.com.
