<?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 Creates empty file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Creates-empty-file/m-p/2227280#M18938</link>
    <description>Hi, 
&lt;BR /&gt;Talend job creates empty file even after the tDie component triggered. 
&lt;BR /&gt;DBComponent ---------&amp;gt;tFileDelimitedOutput 
&lt;BR /&gt; | 
&lt;BR /&gt;onComponentError 
&lt;BR /&gt; | 
&lt;BR /&gt;tDie 
&lt;BR /&gt; 
&lt;BR /&gt;DBComponent has a custom query. Sometimes, it can not find a table/column defined in the query. In this case, the job has to abort and should not create an empty file. On the other hand it should create an empty file if the query gives zero records. 
&lt;BR /&gt;The above job handling the second scenario correctly. However, its still creating an empty file, after the query fails because of some error. 
&lt;BR /&gt;Please let me know, if I am missing anything. 
&lt;BR /&gt;Thank you, 
&lt;BR /&gt;Sangi</description>
    <pubDate>Fri, 16 Nov 2012 11:34:55 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2012-11-16T11:34:55Z</dc:date>
    <item>
      <title>Creates empty file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Creates-empty-file/m-p/2227280#M18938</link>
      <description>Hi, 
&lt;BR /&gt;Talend job creates empty file even after the tDie component triggered. 
&lt;BR /&gt;DBComponent ---------&amp;gt;tFileDelimitedOutput 
&lt;BR /&gt; | 
&lt;BR /&gt;onComponentError 
&lt;BR /&gt; | 
&lt;BR /&gt;tDie 
&lt;BR /&gt; 
&lt;BR /&gt;DBComponent has a custom query. Sometimes, it can not find a table/column defined in the query. In this case, the job has to abort and should not create an empty file. On the other hand it should create an empty file if the query gives zero records. 
&lt;BR /&gt;The above job handling the second scenario correctly. However, its still creating an empty file, after the query fails because of some error. 
&lt;BR /&gt;Please let me know, if I am missing anything. 
&lt;BR /&gt;Thank you, 
&lt;BR /&gt;Sangi</description>
      <pubDate>Fri, 16 Nov 2012 11:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Creates-empty-file/m-p/2227280#M18938</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-11-16T11:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creates empty file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Creates-empty-file/m-p/2227281#M18939</link>
      <description>Change in the advanced section the option Don'r generate empty file. &lt;BR /&gt;The problem is, the file and it handle will be created first and after that your query will be executed.&lt;BR /&gt;In this way, the file will be created and if no data set reach the file, the file will be automatically deleted.</description>
      <pubDate>Fri, 16 Nov 2012 11:51:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Creates-empty-file/m-p/2227281#M18939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-16T11:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creates empty file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Creates-empty-file/m-p/2227282#M18940</link>
      <description>Hi,&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;I can not use 'Don't create empty file' because we need an empty file when the query in dbcomponent gives zero records.&lt;BR /&gt;Regards,&lt;BR /&gt;sangi</description>
      <pubDate>Fri, 16 Nov 2012 11:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Creates-empty-file/m-p/2227282#M18940</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-11-16T11:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creates empty file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Creates-empty-file/m-p/2227283#M18941</link>
      <description>At first please use OnSubjobError instead of OnComponentError and after OnSubjoberror you can decide to delete your file at first and then call tDie to end the job.</description>
      <pubDate>Fri, 16 Nov 2012 12:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Creates-empty-file/m-p/2227283#M18941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-16T12:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creates empty file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Creates-empty-file/m-p/2227284#M18942</link>
      <description>Hi,
&lt;BR /&gt;Thank you for your time.
&lt;BR /&gt;I have used the following job and its working fine.
&lt;BR /&gt;DBComponent ---------&amp;gt;tFileDelimitedOutput
&lt;BR /&gt; |
&lt;BR /&gt;onComponentError
&lt;BR /&gt; |
&lt;BR /&gt;tFileDelete (deleting the same which is created in tFileDelimitedOutput)
&lt;BR /&gt; |
&lt;BR /&gt;onComponentOk 
&lt;BR /&gt; |
&lt;BR /&gt;tDie
&lt;BR /&gt;Jlolling, if you have time. Can you please let me know whats the exact difference in using onComponentError and onSubjobError in this scenario?
&lt;BR /&gt;Regards,
&lt;BR /&gt;Shankar</description>
      <pubDate>Fri, 16 Nov 2012 12:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Creates-empty-file/m-p/2227284#M18942</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-11-16T12:19:48Z</dc:date>
    </item>
  </channel>
</rss>

