<?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: How to handle null exception in tAdvancedFileOutputXml component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-handle-null-exception-in-tAdvancedFileOutputXml-component/m-p/2375709#M138065</link>
    <description>&lt;P&gt;I got it.&lt;/P&gt;&lt;P&gt;I just added one IF in component tJavaRow ("Dates as global var"  from screenshot), like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(input_row.min_Date != null &amp;amp;&amp;amp; input_row.max_Date != null){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;context.min_Date = input_row.min_Date;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;context.max_Date = input_row.max_Date;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in tAdvancedFileOutXml component I checked Don't generate empty file.&lt;/P&gt;&lt;P&gt;S, for the missing orders it just didn't generate files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@Manohar B​ Thank you fr the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 15:05:29 GMT</pubDate>
    <dc:creator>tanjaj</dc:creator>
    <dc:date>2020-08-21T15:05:29Z</dc:date>
    <item>
      <title>How to handle null exception in tAdvancedFileOutputXml component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-handle-null-exception-in-tAdvancedFileOutputXml-component/m-p/2375707#M138063</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Talend job iterates through site names in excel file, compares it with data in DB and generates XML files with orders details. For one code, there are no orders, but it throws me an error and kills the job. In case of Order id doesn't exist I want to generate an empty file or to handle it on some other way, but definitely not to fail the job. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with checking "Create attribute even if its value is NULL" but i have the same result.&lt;/P&gt;&lt;P&gt;I'm sending screenshots of my job and tAdvancedFileOutputXML component configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error trace:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception in component tAdvancedFileOutputXML_2 (Child_export_job)&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at expot_xml_data.child_export_job_1_0.Child_export_job.tDBInput_5Process(Child_export_job.java:1385)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at expot_xml_data.child_export_job_1_0.Child_export_job.tDBInput_4Process(Child_export_job.java:967)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at expot_xml_data.child_export_job_1_0.Child_export_job.runJobInTOS(Child_export_job.java:4405)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at expot_xml_data.child_export_job_1_0.Child_export_job.runJob(Child_export_job.java:4224)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at expot_xml_data.export_data_xml_1_0.export_data_xml.tFileList_1Process(export_data_xml.java:1679)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at expot_xml_data.export_data_xml_1_0.export_data_xml.runJobInTOS(export_data_xml.java:3659)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at expot_xml_data.export_data_xml_1_0.export_data_xml.main(export_data_xml.java:3486)&lt;/P&gt;&lt;P&gt;Exception in component tRunJob_1 (export_data_xml)&lt;/P&gt;&lt;P&gt;java.lang.RuntimeException: Child job running failed.&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException: null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at expot_xml_data.export_data_xml_1_0.export_data_xml.tFileList_1Process(export_data_xml.java:1700)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at expot_xml_data.export_data_xml_1_0.export_data_xml.runJobInTOS(export_data_xml.java:3659)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at expot_xml_data.export_data_xml_1_0.export_data_xml.main(export_data_xml.java:3486)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-handle-null-exception-in-tAdvancedFileOutputXml-component/m-p/2375707#M138063</guid>
      <dc:creator>tanjaj</dc:creator>
      <dc:date>2024-11-16T01:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle null exception in tAdvancedFileOutputXml component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-handle-null-exception-in-tAdvancedFileOutputXml-component/m-p/2375708#M138064</link>
      <description>&lt;P&gt;@Tanja Jovovic​&amp;nbsp;,check the below case .&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.talendforge.org/forum/viewtopic.php?pid=204410" alt="https://www.talendforge.org/forum/viewtopic.php?pid=204410" target="_blank"&gt;https://www.talendforge.org/forum/viewtopic.php?pid=204410&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 14:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-handle-null-exception-in-tAdvancedFileOutputXml-component/m-p/2375708#M138064</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-08-21T14:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle null exception in tAdvancedFileOutputXml component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-handle-null-exception-in-tAdvancedFileOutputXml-component/m-p/2375709#M138065</link>
      <description>&lt;P&gt;I got it.&lt;/P&gt;&lt;P&gt;I just added one IF in component tJavaRow ("Dates as global var"  from screenshot), like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(input_row.min_Date != null &amp;amp;&amp;amp; input_row.max_Date != null){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;context.min_Date = input_row.min_Date;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;context.max_Date = input_row.max_Date;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in tAdvancedFileOutXml component I checked Don't generate empty file.&lt;/P&gt;&lt;P&gt;S, for the missing orders it just didn't generate files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@Manohar B​ Thank you fr the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 15:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-handle-null-exception-in-tAdvancedFileOutputXml-component/m-p/2375709#M138065</guid>
      <dc:creator>tanjaj</dc:creator>
      <dc:date>2020-08-21T15:05:29Z</dc:date>
    </item>
  </channel>
</rss>

