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?
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]
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
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 :-)
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema