Concatenate File's name of tFileOutputDelimited

Highlighted
Six Stars

Concatenate File's name of tFileOutputDelimited

Hello,

 

I want to concatenate the file's name of my tFileOutputDelimited component, with the command :

"D:/SPC/ResultFile/((String)globalMap.get("tFileList_1_CURRENT_FILE")).csv"

It's an evidence that it's wrong because I have 2 errors :

 

- Synthax error on token "tFileList_1_CURRENT_FILE", Invalid AssignmentOperator
- The left-hand sign of an assignment must be a variable

 

Can you help me, please ?

 

Best regards

BastienM


Accepted Solutions
Community Manager

Re: Concatenate File's name of tFileOutputDelimited

Try this......

 

"D:/SPC/ResultFile/"+((String)globalMap.get("tFileList_1_CURRENT_FILE"))+".csv"

If you are using the tFileList component, you can get the full path with the filename so will not need to concatenate....unless this is actually a file in another folder (a mirrored folder or something similar).


All Replies
Community Manager

Re: Concatenate File's name of tFileOutputDelimited

Try this......

 

"D:/SPC/ResultFile/"+((String)globalMap.get("tFileList_1_CURRENT_FILE"))+".csv"

If you are using the tFileList component, you can get the full path with the filename so will not need to concatenate....unless this is actually a file in another folder (a mirrored folder or something similar).

Six Stars

Re: Concatenate File's name of tFileOutputDelimited

Thank you.

 

Best regards

BastienM

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download