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

Ftpget filemask ((String)globalMap.get("tWaitForFile_1_FILE

Highlighted
One Star

Ftpget filemask ((String)globalMap.get("tWaitForFile_1_FILE

Bonjour,
impossible d'utiliser la variable ((String)globalMap.get("tWaitForFile_1_FILENAME"))
error java
Exception in component tFTPGet_1
java.lang.NullPointerException
at expldi.nfgl_0_1.nfgl.tWaitForFile_1Process(nfgl.java:1423)
at expldi.nfgl_0_1.nfgl.runJobInTOS(nfgl.java:1732)
at expldi.nfgl_0_1.nfgl.main(nfgl.java:1632)
disconnected
Highlighted
Community Manager

Re: Ftpget filemask ((String)globalMap.get("tWaitForFile_1_FILE

Hello
Which version of TOS are you using?
I test a simple job with TOS2.3.0RC1 and it works fine.
My job:
tWaitForFile
|
iterate
|
tJava(System.out.println(((String)globalMap.get("tWaitForFile_1_FILENAME")))Smiley Wink
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

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