<?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: [resolved] Issue with tAdvancedFileOutputXML, null pointer if file is a variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Issue-with-tAdvancedFileOutputXML-null-pointer-if-file/m-p/2331868#M100808</link>
    <description>Hello 
&lt;BR /&gt;Please provide more details about your problem, what are you input data? What are your expected result? Where do you use variable? 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Fri, 24 Mar 2017 10:31:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-24T10:31:24Z</dc:date>
    <item>
      <title>[resolved] Issue with tAdvancedFileOutputXML, null pointer if file is a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Issue-with-tAdvancedFileOutputXML-null-pointer-if-file/m-p/2331867#M100807</link>
      <description>&lt;P&gt;My job is trying to generate multiple XMLs.&amp;nbsp;&lt;BR /&gt;Something like I look up the main record, then get all the related records, then generate 1 xml file per main record.&lt;BR /&gt;for example, Look up Class, get details. Look up students, get list of students. XML is something like&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;CLASS&amp;gt;&lt;BR /&gt;	&amp;lt;ROOM/&amp;gt;&lt;BR /&gt;	&amp;lt;TIME/&amp;gt;&amp;nbsp;&lt;BR /&gt;	&amp;lt;STUDENTS&amp;gt;&lt;BR /&gt;		&amp;lt;PERSON&amp;gt;&lt;BR /&gt;			&amp;lt;NAME/&amp;gt;&lt;BR /&gt;			&amp;lt;AGE/&amp;gt;&lt;BR /&gt;			&amp;lt;STATUS/&amp;gt;&lt;BR /&gt;		&amp;lt;/PERSON&amp;gt;&lt;BR /&gt;		&amp;lt;PERSON&amp;gt;&lt;BR /&gt;			&amp;lt;NAME/&amp;gt;&lt;BR /&gt;			&amp;lt;AGE/&amp;gt;&lt;BR /&gt;			&amp;lt;STATUS/&amp;gt;&lt;BR /&gt;		&amp;lt;/PERSON&amp;gt;&lt;BR /&gt;	&amp;lt;/STUDENTS&amp;gt;&lt;BR /&gt;&amp;lt;/CLASS&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;My problem is each class will be a seperate XML and&amp;nbsp;tAdvancedFileOutputXML seems to have issue using a dynamic variable as the file path. I'm trying to make each file to be "CLASS".xml but&amp;nbsp;&lt;BR /&gt;Any one have a solution?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 10:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Issue-with-tAdvancedFileOutputXML-null-pointer-if-file/m-p/2331867#M100807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T10:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Issue with tAdvancedFileOutputXML, null pointer if file is a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Issue-with-tAdvancedFileOutputXML-null-pointer-if-file/m-p/2331868#M100808</link>
      <description>Hello 
&lt;BR /&gt;Please provide more details about your problem, what are you input data? What are your expected result? Where do you use variable? 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 24 Mar 2017 10:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Issue-with-tAdvancedFileOutputXML-null-pointer-if-file/m-p/2331868#M100808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T10:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Issue with tAdvancedFileOutputXML, null pointer if file is a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Issue-with-tAdvancedFileOutputXML-null-pointer-if-file/m-p/2331869#M100809</link>
      <description>The error I get is:&lt;BR /&gt;Exception in component tFileOutputXML_1&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;at java.io.File.&amp;lt;init&amp;gt;(Unknown Source)&lt;BR /&gt;at importtalend.testarea_0_1.testArea.tMSSqlInput_1Process(testArea.java:3568)&lt;BR /&gt;at importtalend.testarea_0_1.testArea.GetDBConfig_1_tJava_1Process(testArea.java:1518)&lt;BR /&gt;at importtalend.testarea_0_1.testArea.GetDBConfig_1_tMSSqlConnection_1Process(testArea.java:1376)&lt;BR /&gt;at importtalend.testarea_0_1.testArea.GetDBConfig_1_tFileInputDelimited_1Process(testArea.java:1106)&lt;BR /&gt;at importtalend.testarea_0_1.testArea.tJava_1Process(testArea.java:5932)&lt;BR /&gt;at importtalend.testarea_0_1.testArea.runJobInTOS(testArea.java:7964)&lt;BR /&gt;at importtalend.testarea_0_1.testArea.main(testArea.java:7798)&lt;BR /&gt;: importtalend.testarea_0_1.testArea - tFileOutputXML_1 null&lt;BR /&gt;&lt;BR /&gt;my input is&amp;nbsp;&lt;BR /&gt;&lt;PRE&gt;|=-------+-------+------+------+----+-------=|&lt;BR /&gt;|CLASS   |ROOM   |TIME  |NAME  |AGE |STATUS  |&lt;BR /&gt;|=-------+-------+------+------+----+-------=|&lt;BR /&gt;|CLA001  |Rm02   |10:00 |Bob   |22  |Enrolled| &lt;BR /&gt;|CLA001  |Rm02   |10:00 |John  |25  |Enrolled| &lt;BR /&gt;|CLA001  |Rm02   |10:00 |Fred  |23  |Enrolled| &lt;BR /&gt;|CLA002  |LCT5.1 |16:00 |John  |25  |Enrolled|&lt;BR /&gt;|CLA002  |LCT5.1 |16:00 |James |21  |Enrolled|&lt;BR /&gt;|CLA003	 |Rm05   |20:30 |John  |25  |Enrolled|&lt;BR /&gt;|CLA003  |Rm05   |20:30 |Dick  |21  |Enrolled|&lt;BR /&gt;|=-------+-------+------+------+----+-------=|&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;And I'm expecting 3 XML files.&amp;nbsp;&lt;BR /&gt;CLA001.xml&lt;BR /&gt;CLA002.xml&lt;BR /&gt;CLA003.xml&lt;BR /&gt;After I get the data, I pass it through a javarow and&amp;nbsp;globalMap.put("classID", *value*)&lt;BR /&gt;And in my tAdvancedFileOutputXML I put &amp;nbsp;(String)globalMap.get("classID") &amp;nbsp;as my File Name</description>
      <pubDate>Mon, 27 Mar 2017 06:46:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Issue-with-tAdvancedFileOutputXML-null-pointer-if-file/m-p/2331869#M100809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-27T06:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Issue with tAdvancedFileOutputXML, null pointer if file is a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Issue-with-tAdvancedFileOutputXML-null-pointer-if-file/m-p/2331870#M100810</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;BR /&gt;It is impossible to access the global variable in the same flow, you need to group the records by class ID and filter the records for each class ID, write each group records to corresponding file.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lwgj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137863i2CE10F3F2F5F8950/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lwgj.png" alt="0683p000009Lwgj.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Here I upload a demo job, I hope it will give you some tips. Let me know if you have any questions.&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/674/forum56553.zip.zip" target="_blank"&gt;forum56553.zip&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 10:29:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Issue-with-tAdvancedFileOutputXML-null-pointer-if-file/m-p/2331870#M100810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-27T10:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Issue with tAdvancedFileOutputXML, null pointer if file is a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Issue-with-tAdvancedFileOutputXML-null-pointer-if-file/m-p/2331871#M100811</link>
      <description>Thanks Shong, managed to get it to work.
&lt;BR /&gt;I just added a flowToIterate in my job and got it to work.</description>
      <pubDate>Tue, 28 Mar 2017 04:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Issue-with-tAdvancedFileOutputXML-null-pointer-if-file/m-p/2331871#M100811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-28T04:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Issue with tAdvancedFileOutputXML, null pointer if file is a variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Issue-with-tAdvancedFileOutputXML-null-pointer-if-file/m-p/2331872#M100812</link>
      <description>Great, thanks for your feedback!</description>
      <pubDate>Tue, 28 Mar 2017 04:19:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Issue-with-tAdvancedFileOutputXML-null-pointer-if-file/m-p/2331872#M100812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-28T04:19:21Z</dc:date>
    </item>
  </channel>
</rss>

