problem with tFileUnarchive

Highlighted
One Star

problem with tFileUnarchive

Hello
I want to unarchive all the files of a directory. To do so, I use tFileList (tFileList_1) linked to tFileUnarchive. The Archive File property of my tFileUnarchive is set to $_globals{tFileList_1}{CURRENT_FILEPATH}.
When I run this job, I get this error:
Key 'archive' () is of invalid type for 'Archive::Extract::new' provided by main::tFileUnarchive_1_subprocess at C:\Talend\TOS-Win32-r5184-V2.1.2\workspace\.Perl\NPLMATCH.job_localDBCopy.pl line 179
Can't call method "extract" on an undefined value at C:\Talend\TOS-Win32-r5184-V2.1.2\workspace\.Perl\NPLMATCH.job_localDBCopy.pl line 183.
A thread exited while 2 threads were running.

As a workaround, I put a perl component between both components (see picture) to declare a variable containing the value of $_globals{tFileList_1}{CURRENT_FILEPATH}. In turn, I use this variable in the tFileUnarchive and it works!
By the way, is there a component to zip files?
Thanks in advance for your explanation
Philippe
Tags (1)

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

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

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads