<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tFileDelete dosn't handle failures/errors despite fail on error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileDelete-dosn-t-handle-failures-errors-despite-fail-on-error/m-p/2203179#M4601</link>
    <description>The file delete component is a bit strange designed!
&lt;BR /&gt;After delete the given file the success can only be seen by this check:
&lt;BR /&gt;
&lt;PRE&gt;"File deleted.".equals((String) globalMap.get("tFileDelete_1_CURRENT_STATUS"))&lt;/PRE&gt;
&lt;BR /&gt;This boolean expression can be used in the if trigger.
&lt;BR /&gt;For me this component is very bad designed. Why they do not have added a usable return value like DELETE_OK or let the component die if it does not work.
&lt;BR /&gt;Actually if have not seen any difference in the code for fail-on-error. Probably a bug.</description>
    <pubDate>Sat, 01 Feb 2014 15:31:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-02-01T15:31:00Z</dc:date>
    <item>
      <title>tFileDelete dosn't handle failures/errors despite fail on error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileDelete-dosn-t-handle-failures-errors-despite-fail-on-error/m-p/2203177#M4599</link>
      <description>Dear Readers,
&lt;BR /&gt;In our Talend Job there is a tFileDelete component that cleans the content of a directory.
&lt;BR /&gt;However we need handle the case when at least one file could not be deleted.
&lt;BR /&gt;When the job executes all files but not the locked ones are deleted. These circumstance
&lt;BR /&gt;should trigger the mechanism "fail on error" but it is not. The link to "on subjob error"
&lt;BR /&gt;is not taken by the flow.
&lt;BR /&gt;Kind regards,
&lt;BR /&gt;Hilderich</description>
      <pubDate>Fri, 31 Jan 2014 12:47:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileDelete-dosn-t-handle-failures-errors-despite-fail-on-error/m-p/2203177#M4599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-31T12:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: tFileDelete dosn't handle failures/errors despite fail on error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileDelete-dosn-t-handle-failures-errors-despite-fail-on-error/m-p/2203178#M4600</link>
      <description>Do you get failure message in your component though it continues running? You can add a tAssert and a tAssertCatcher to check for this condition and connect it to a tDie to force a kill.</description>
      <pubDate>Fri, 31 Jan 2014 16:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileDelete-dosn-t-handle-failures-errors-despite-fail-on-error/m-p/2203178#M4600</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-01-31T16:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: tFileDelete dosn't handle failures/errors despite fail on error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileDelete-dosn-t-handle-failures-errors-despite-fail-on-error/m-p/2203179#M4601</link>
      <description>The file delete component is a bit strange designed!
&lt;BR /&gt;After delete the given file the success can only be seen by this check:
&lt;BR /&gt;
&lt;PRE&gt;"File deleted.".equals((String) globalMap.get("tFileDelete_1_CURRENT_STATUS"))&lt;/PRE&gt;
&lt;BR /&gt;This boolean expression can be used in the if trigger.
&lt;BR /&gt;For me this component is very bad designed. Why they do not have added a usable return value like DELETE_OK or let the component die if it does not work.
&lt;BR /&gt;Actually if have not seen any difference in the code for fail-on-error. Probably a bug.</description>
      <pubDate>Sat, 01 Feb 2014 15:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileDelete-dosn-t-handle-failures-errors-despite-fail-on-error/m-p/2203179#M4601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-01T15:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: tFileDelete dosn't handle failures/errors despite fail on error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileDelete-dosn-t-handle-failures-errors-despite-fail-on-error/m-p/2203180#M4602</link>
      <description>Hello All,
&lt;BR /&gt;We have solved it by Apache's commons-io in particular with 
&lt;BR /&gt;org.apache.commons.io.FileUtils.cleanDirectory enclosed in tJava.
&lt;BR /&gt;Kind regards,
&lt;BR /&gt;Hilderich</description>
      <pubDate>Tue, 04 Feb 2014 10:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileDelete-dosn-t-handle-failures-errors-despite-fail-on-error/m-p/2203180#M4602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-04T10:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: tFileDelete dosn't handle failures/errors despite fail on error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileDelete-dosn-t-handle-failures-errors-despite-fail-on-error/m-p/2203181#M4603</link>
      <description>Also a good solution.</description>
      <pubDate>Wed, 05 Feb 2014 08:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileDelete-dosn-t-handle-failures-errors-despite-fail-on-error/m-p/2203181#M4603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-05T08:58:49Z</dc:date>
    </item>
  </channel>
</rss>

