tFTPPut Dynamic Files Using Global Variable

Six Stars

tFTPPut Dynamic Files Using Global Variable

Hello,

 

I'm trying to put a ZIP file in a FTP server. The ZIP however is generated in an earlier SubJob, which means its name is dynamic.

 

I now want to put the said ZIP file in a FTP server. I'm trying to use global variable in the File Mask field, but I'm getting this compilation error:

Capture2.JPG

 

Here's my tFTPPut's config:

Capture3.JPG

 

Earlier in my job, here's how I'm initialising my global variable for zipToTransfer:

 

Capture4.JPG

 

 


Accepted Solutions
Six Stars

Re: tFTPPut Dynamic Files Using Global Variable

Solved it. Just needed to cast the global map to String in the file mask like so: (String) globalMap.get("zipToTransfer")

All Replies
Six Stars

Re: tFTPPut Dynamic Files Using Global Variable

Solved it. Just needed to cast the global map to String in the file mask like so: (String) globalMap.get("zipToTransfer")

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

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