<?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 Check for a particular file on S3 and then execute a python code if the file is found in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Check-for-a-particular-file-on-S3-and-then-execute-a-python-code/m-p/2242793#M29501</link>
    <description>&lt;P&gt;I have requirement to run a python code. The python code takes data from S3 bucket and does some processing on it.&lt;/P&gt; 
&lt;P&gt;I have to execute the python code only if found a trigger file in bucket.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have build following design. I am running tsystem with Runif condition as&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;file_list == "u.data"&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;but then I am getting error as "file_list cannot be resolved to a variable"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My S3 bucket contains multiple files but I need to check if my trigger file (in this case) u.data is present. If present then execute the python code through tsystem else give an output as "File Not Found"&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="talend_code.png" style="width: 862px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7ID.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154325iF46D59B2B9CC4CEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7ID.png" alt="0683p000009M7ID.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:40:57 GMT</pubDate>
    <dc:creator>diggi86</dc:creator>
    <dc:date>2024-11-16T04:40:57Z</dc:date>
    <item>
      <title>Check for a particular file on S3 and then execute a python code if the file is found</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Check-for-a-particular-file-on-S3-and-then-execute-a-python-code/m-p/2242793#M29501</link>
      <description>&lt;P&gt;I have requirement to run a python code. The python code takes data from S3 bucket and does some processing on it.&lt;/P&gt; 
&lt;P&gt;I have to execute the python code only if found a trigger file in bucket.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have build following design. I am running tsystem with Runif condition as&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;file_list == "u.data"&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;but then I am getting error as "file_list cannot be resolved to a variable"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My S3 bucket contains multiple files but I need to check if my trigger file (in this case) u.data is present. If present then execute the python code through tsystem else give an output as "File Not Found"&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="talend_code.png" style="width: 862px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7ID.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154325iF46D59B2B9CC4CEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7ID.png" alt="0683p000009M7ID.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Check-for-a-particular-file-on-S3-and-then-execute-a-python-code/m-p/2242793#M29501</guid>
      <dc:creator>diggi86</dc:creator>
      <dc:date>2024-11-16T04:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Check for a particular file on S3 and then execute a python code if the file is found</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Check-for-a-particular-file-on-S3-and-then-execute-a-python-code/m-p/2242794#M29502</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;After creating the file, you can verify whether its present using tFileExists component. If the file is present, the If condition will work as true.&lt;/P&gt; 
&lt;P&gt;Please also verify the sample scenario mentioned below to understand the if clause verification method.&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/TxjSzmlJzD3vwT56FYszSA/o5dpZBnobRXdYU1S4wqupg" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;https://help.talend.com/reader/TxjSzmlJzD3vwT56FYszSA/o5dpZBnobRXdYU1S4wqupg&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 05:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Check-for-a-particular-file-on-S3-and-then-execute-a-python-code/m-p/2242794#M29502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-30T05:58:30Z</dc:date>
    </item>
  </channel>
</rss>

