Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

[resolved] tFTPPut - use context in the filemask

Highlighted
One Star

[resolved] tFTPPut - use context in the filemask

Hi,
Can I use the contexts in the filemask for the file name?
I have the following name in the filemask and I get syntax errors.
+context.File+context.Yr+context.Mo+"_final.csv"
but if I don't use contexts, I'm fine with this "test201109_final.csv"
Thanks.

Accepted Solutions
Highlighted
Community Manager

Re: [resolved] tFTPPut - use context in the filemask

Hi
You are able to use the contexts, but there is a syntax errors in your expression, the correct one should be:
context.File+context.Yr+context.Mo+"_final.csv"
Good luck!
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

View solution in original post


All Replies
Highlighted
Community Manager

Re: [resolved] tFTPPut - use context in the filemask

Hi
You are able to use the contexts, but there is a syntax errors in your expression, the correct one should be:
context.File+context.Yr+context.Mo+"_final.csv"
Good luck!
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

View solution in original post

Highlighted
One Star

Re: [resolved] tFTPPut - use context in the filemask

Thank you very much Shong. I got it now :-)

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog