[resolved] cFile with multiple file which have same name

One Star

[resolved] cFile with multiple file which have same name

Hi Everyone,
I have a route which use a cFile to load some xml files.
When i put a file in the directory, it works good. But if I put this file again cFile can't load it.
Could you tell me why ?
Thanks.

Accepted Solutions
One Star

Re: [resolved] cFile with multiple file which have same name

I had already set the delete option, but my noop option was checked.
I uncheck the noop option and it works !!
Thanks.

All Replies
Moderator

Re: [resolved] cFile with multiple file which have same name

Hi,
When i put a file in the directory, it works good. But if I put this file again cFile can't load it.

Is there any error after you put this file again in cFile? What's the talend ESB product build version are you using? Is it OK with you when you restart studio?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Employee

Re: [resolved] cFile with multiple file which have same name

Hi Sylvain,
In the cFile component configuration, try unchecking the 'noop' option. You'll probably also want to move or delete the file after it has been processed so it can detect when the next file has been added. To delete, go to 'Advanced Settings' in the 'Component' tab and add the "delete" property with a value of "true".
The cFile component is very flexible. Here is some great documentation on it:
http://camel.apache.org/file2.html
Best Regards,
Ben
One Star

Re: [resolved] cFile with multiple file which have same name

I had already set the delete option, but my noop option was checked.
I uncheck the noop option and it works !!
Thanks.