<?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: Multischema Input-XML output in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209278#M8170</link>
    <description>Thanks Rick.&lt;BR /&gt;Can you tell me how do you use the tFilterrow component to test file size?</description>
    <pubDate>Mon, 25 Oct 2010 17:29:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-10-25T17:29:48Z</dc:date>
    <item>
      <title>Multischema Input-XML output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209276#M8168</link>
      <description>I have a multischema input file. Each row is differentiated by a 2 byte identifier. I have created metadata for each schema. I am having difficulties proceeding further. How do I do validations like trailer is present or the counts in trailer are equal to the number of rows. How should I map and insert it in the database and produce XML's. Is there a sample project for the same? I am a newbie in the world or Talend</description>
      <pubDate>Sat, 16 Nov 2024 13:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209276#M8168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multischema Input-XML output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209277#M8169</link>
      <description>You can split the file into individual flows using tFileInputMSPositional.  &lt;BR /&gt;Probably easier to then drop them into separate files e.g. header, trailer, type1, type2 etc.&lt;BR /&gt;Subjob 1 - test for missing trailer&lt;BR /&gt;To test if trailer exists you can then use tFileProperties&amp;gt;tFilterRow&amp;gt;tdie - in the filter test for a size of 0.  If the size is zero then the file is empty and the tdie will kill the process.&lt;BR /&gt;Subjob 2 - Check counts&lt;BR /&gt;Use tFileRowCount on the detail file(s).  (note the context Variable of "Count" for each one).&lt;BR /&gt;use tRowGenerator to create a single record with a dummy key (e.g. set to 1) and a count field (which is the sum of the file counts)&lt;BR /&gt;Input the trailer and create a similar record with same dummy key and trailer count.&lt;BR /&gt;Join using tMap and create a record with just the two separate counts&lt;BR /&gt;Use tFilterRow to check if the two fields match.  If they don't then use tdie to kill the job.&lt;BR /&gt;Subjob 3 - Create XML&lt;BR /&gt;Use tFileOutputXML to create your output files.</description>
      <pubDate>Fri, 22 Oct 2010 15:47:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209277#M8169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-22T15:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multischema Input-XML output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209278#M8170</link>
      <description>Thanks Rick.&lt;BR /&gt;Can you tell me how do you use the tFilterrow component to test file size?</description>
      <pubDate>Mon, 25 Oct 2010 17:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209278#M8170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-25T17:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multischema Input-XML output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209279#M8171</link>
      <description>If you look at the schema for tFileProperties, you will see a field called "size".  This is the size of the file.  &lt;BR /&gt;So in tFilterRow add a new condition (green "+" sign)&amp;gt;Select InputColumn=size, Operator="equals" and set the Value column to 0 (zero).&lt;BR /&gt;Now go back to the canvas and connect the "Filter" output of tFilterRow to tDie.  Change the error message in tDie to something sensible and the subjob/job will fail when the file is empty.  &lt;BR /&gt;Rick</description>
      <pubDate>Mon, 25 Oct 2010 17:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209279#M8171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-25T17:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multischema Input-XML output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209280#M8172</link>
      <description>I have another validation to be performed.&lt;BR /&gt;I have two variables (A &amp;amp; B) in Table00&lt;BR /&gt;I have to check values in these variables.&lt;BR /&gt;Either A or B can have values. Whichever has values it should be inserted in a new variable C.&lt;BR /&gt;If both the variables A or B have values. it should give an error.&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 01 Nov 2010 19:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209280#M8172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-01T19:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multischema Input-XML output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209281#M8173</link>
      <description>Hi gnaik,&lt;BR /&gt;What happens if both are blank?  This could affect how you do this.&lt;BR /&gt;Regards&lt;BR /&gt;Rick</description>
      <pubDate>Tue, 02 Nov 2010 09:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209281#M8173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-02T09:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multischema Input-XML output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209282#M8174</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Hi gnaik,&lt;BR /&gt;What happens if both are blank?  This could affect how you do this.&lt;BR /&gt;Regards&lt;BR /&gt;Rick&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Hi Rick,&lt;BR /&gt;If both are blank the variable C is also blank.&lt;BR /&gt;Thanks,&lt;BR /&gt;G</description>
      <pubDate>Tue, 02 Nov 2010 20:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209282#M8174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-02T20:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multischema Input-XML output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209283#M8175</link>
      <description>Hi gnaik,
&lt;BR /&gt;If you are doing this assignment in tmap I would recommend writing a code routine in Java, that way you can get the code to fail elegantly. If you haven't written one before then take a look at the string methods, they are a good place to start.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Rick</description>
      <pubDate>Wed, 03 Nov 2010 07:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multischema-Input-XML-output/m-p/2209283#M8175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-03T07:42:13Z</dc:date>
    </item>
  </channel>
</rss>

