<?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 Using tfileproperties to get size returns null Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-tfileproperties-to-get-size-returns-null-Talend/m-p/2433568#M140388</link>
    <description>&lt;P&gt;I use tfileproperties to get the size of a file but it produces null&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asafrian1700127126_0-1711088107203.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/162519i81A17C6EC31D531E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="asafrian1700127126_0-1711088107203.png" alt="asafrian1700127126_0-1711088107203.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have expression below&lt;/P&gt;
&lt;P&gt;row2.size!=null?"Create XML Success, With Size = "+Long.toString(row2.size/1024)+" KB":"Create XML Success, With Size = "+row2.size+" KB"&lt;/P&gt;
&lt;P&gt;But return null&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asafrian1700127126_2-1711088469909.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/162521i1CEA03641350CF1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="asafrian1700127126_2-1711088469909.png" alt="asafrian1700127126_2-1711088469909.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asafrian1700127126_4-1711088700136.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/162523iF4A3962AF49BEBD8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="asafrian1700127126_4-1711088700136.png" alt="asafrian1700127126_4-1711088700136.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;even though the file is formed and its size is 5kb&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asafrian1700127126_3-1711088568800.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/162522i3C6813FFB9B09604/image-size/medium?v=v2&amp;amp;px=400" role="button" title="asafrian1700127126_3-1711088568800.png" alt="asafrian1700127126_3-1711088568800.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can anyone help me why it produces null when it should contain a value?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Mar 2024 06:27:06 GMT</pubDate>
    <dc:creator>asafrian1700127126</dc:creator>
    <dc:date>2024-03-22T06:27:06Z</dc:date>
    <item>
      <title>Using tfileproperties to get size returns null Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tfileproperties-to-get-size-returns-null-Talend/m-p/2433568#M140388</link>
      <description>&lt;P&gt;I use tfileproperties to get the size of a file but it produces null&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asafrian1700127126_0-1711088107203.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/162519i81A17C6EC31D531E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="asafrian1700127126_0-1711088107203.png" alt="asafrian1700127126_0-1711088107203.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have expression below&lt;/P&gt;
&lt;P&gt;row2.size!=null?"Create XML Success, With Size = "+Long.toString(row2.size/1024)+" KB":"Create XML Success, With Size = "+row2.size+" KB"&lt;/P&gt;
&lt;P&gt;But return null&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asafrian1700127126_2-1711088469909.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/162521i1CEA03641350CF1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="asafrian1700127126_2-1711088469909.png" alt="asafrian1700127126_2-1711088469909.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asafrian1700127126_4-1711088700136.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/162523iF4A3962AF49BEBD8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="asafrian1700127126_4-1711088700136.png" alt="asafrian1700127126_4-1711088700136.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;even though the file is formed and its size is 5kb&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asafrian1700127126_3-1711088568800.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/162522i3C6813FFB9B09604/image-size/medium?v=v2&amp;amp;px=400" role="button" title="asafrian1700127126_3-1711088568800.png" alt="asafrian1700127126_3-1711088568800.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can anyone help me why it produces null when it should contain a value?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 06:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tfileproperties-to-get-size-returns-null-Talend/m-p/2433568#M140388</guid>
      <dc:creator>asafrian1700127126</dc:creator>
      <dc:date>2024-03-22T06:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using tfileproperties to get size returns null Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tfileproperties-to-get-size-returns-null-Talend/m-p/2433596#M140392</link>
      <description>&lt;P&gt;Ensure that you are passing the correct file path to the component. If the file path is incorrect, it may result in null values.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 07:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tfileproperties-to-get-size-returns-null-Talend/m-p/2433596#M140392</guid>
      <dc:creator>F_B</dc:creator>
      <dc:date>2024-03-22T07:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using tfileproperties to get size returns null Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tfileproperties-to-get-size-returns-null-Talend/m-p/2433597#M140393</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;The result of this calculation row2.size/1024 is an integer, because the file size is too small (5 KB less than 1024), so its result is 0. You will have the exact file size with the expression:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row2.size!=null?"Create XML Success, With Size = "+row2.size+" KB":"The file is empty"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Shicong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 08:02:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tfileproperties-to-get-size-returns-null-Talend/m-p/2433597#M140393</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-03-22T08:02:42Z</dc:date>
    </item>
  </channel>
</rss>

