problem with tFileUnarchive

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

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