Concatenate File's name of tFileOutputDelimited

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

2019 GARNER 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

What’s New for Talend Summer ’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

Downloads and Trials

Test drive Talend's enterprise products.

Downloads