unexpected behaviour of tArchive

Four Stars

unexpected behaviour of tArchive

Hi,

I have trouble to understand the logic of the tArchive component in Talend Studio in case of an Error. Very simple example below: I have a source file for whichever reason does not exist. I expect the component to Fail with an Error, as the file does not exist or at least to give a Warning. But neigher nor happens. Even when we take a look at the debug outputs - nothing to see here.

 

Why is that and how can I archive the expected result in the case of an ERROR?

 

Thanks!

TT

tArchive01.PNG

 

Starting job archive at 15:43 07/06/2019.

[INFO ]: data.archive_0_1.archive - TalendJob: 'archive' - Start.
[DEBUG]: data.archive_0_1.archive - tFileArchive_1 - Start to work.
[DEBUG]: data.archive_0_1.archive - tFileArchive_1 - Parameters:SOURCE_FILE = "/file/does/not/exist" | TARGET = "C:/Users/username/Downloads/out.csv" | MKDIR = false | ARCHIVE_FORMAT = gzip | LEVEL = 9 | OVERWRITE = true | USE_SYNC_FLUSH = false | 
[DEBUG]: data.archive_0_1.archive - tFileArchive_1 - Done.
[DEBUG]: data.archive_0_1.archive - tWarn_1 - Start to work.
[DEBUG]: data.archive_0_1.archive - tWarn_1 - Parameters:MESSAGE = "All good!" | CODE = 0 | PRIORITY = 3 | 
[INFO ]: data.archive_0_1.archive - tWarn_1 - Message: All good!. Code: 0
[DEBUG]: data.archive_0_1.archive - tWarn_1 - Done.
[INFO ]: data.archive_0_1.archive - TalendJob: 'archive' - Done.

Job archive ended at 15:43 07/06/2019. [exit code=0]
Employee

Re: unexpected behaviour of tArchive

Hi,

 

    Could you please raise this probable product issue in https://jira.talendforge.org?

 

    If you are using an enterprise Talend version, please raise a support ticket and they will take care of the rest.

 

   As a quick work around, could you please add a tFileExists before archiving component to make sure that file exists. You can add a Run if condition saying if the file exists, then only go to archive flow. The sample scenario for tFileExists is available in help.talend.com

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

Four Stars

Re: unexpected behaviour of tArchive

Thanks. I created the Ticket TMDM-13586.

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