on 2013 May 03 9:57 AM
Dear Experts,
I am working in SFTP to file scenario. where i need to pick all .csv files from source SFTP server . In the SFTP channel configuaration source parameters i mentioned filename as *.csv then i am getting error.
Exception received: java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0 *.csv ^ | |||
Directory under file Path returned 3. These include directories and links. |
please find the screen shots for more reference.
Thanks & Regards,
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just in case someone wonders why *.csv cannot work:
In the SFTP-Adapter you got to use a regular expression, not a commandline filepattern as in the file adapter.
Meaning, to select all csv files, you got to enter: .*\.csv
. = any character
* = any occurrency
\. = a period
csv = csv
Check your regex for example with Regex Tester
Actually, I wonder why plain * works, but that's a different story.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.