<?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: Pass filename stored in CSV-File to tfileinputXML in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277065#M52958</link>
    <description>Well it only works almost. My job just compares the last pair of files in my lookup filelist. I tried to setup an iteration connector to both tfileinput-components, but this seems to be forbidden. So what can I can do, so that my job reads the lookup filelist step by step.</description>
    <pubDate>Thu, 20 Mar 2008 19:34:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-03-20T19:34:21Z</dc:date>
    <item>
      <title>Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277058#M52951</link>
      <description>Hi,
&lt;BR /&gt;I would like to compare the content of two files. I have a list of pairs stored in csv file:
&lt;BR /&gt;
&lt;BR /&gt;Example of pairs.csv
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Filename_CSV;Filename_XML&lt;BR /&gt;/path/to/file/1.csv;/path/to/file/1.xml&lt;BR /&gt;/path/to/file/2.csv;/path/to/file2.xml&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;How can I passed the filenames of the "Filename_CSV" column to the tfileinputdelimeted component and the filenames of "Filename_XML" column to the ffileinputxml component?</description>
      <pubDate>Sat, 16 Nov 2024 14:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277058#M52951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277059#M52952</link>
      <description>I didn't understand what you exactly mean by compare the content of two file?
&lt;BR /&gt;For the second part there is a solution but I want to be sure that you only want to get the information in each file.</description>
      <pubDate>Thu, 20 Mar 2008 11:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277059#M52952</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-20T11:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277060#M52953</link>
      <description>I want to compare the content of 1.csv to the content of 1.xml. 
&lt;BR /&gt;The comprehension already works manually, but I don't know how the tfileinputXML-component can get the filename stored in the pairs.csv file.
&lt;BR /&gt;There is a solution?</description>
      <pubDate>Thu, 20 Mar 2008 11:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277060#M52953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-20T11:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277061#M52954</link>
      <description>Hi,
&lt;BR /&gt;you can try to use a tFileInputCsv (with two attributes) and a iterate link. In each iteration you can get the filenames from the globalMap.
&lt;BR /&gt;Bye
&lt;BR /&gt;Volker</description>
      <pubDate>Thu, 20 Mar 2008 11:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277061#M52954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-20T11:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277062#M52955</link>
      <description>Hi Volker,
&lt;BR /&gt;thanks for your replay, but I don't know how to use globalmap within a java job.
&lt;BR /&gt;The component, which reads the pairs.csv is called "tFileInputDelimited_2" and the column is called "Filename_CSV".
&lt;BR /&gt;I tried the following string, as input-flow:
&lt;BR /&gt;((String)globalMap.get("tFileInputDelimited_2.Filename_CSV"))
&lt;BR /&gt;But it doesn't work.</description>
      <pubDate>Thu, 20 Mar 2008 12:35:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277062#M52955</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-20T12:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277063#M52956</link>
      <description>tFlowToIterate is the component you need &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 20 Mar 2008 13:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277063#M52956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-20T13:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277064#M52957</link>
      <description>You are my personal hero...&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 20 Mar 2008 13:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277064#M52957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-20T13:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277065#M52958</link>
      <description>Well it only works almost. My job just compares the last pair of files in my lookup filelist. I tried to setup an iteration connector to both tfileinput-components, but this seems to be forbidden. So what can I can do, so that my job reads the lookup filelist step by step.</description>
      <pubDate>Thu, 20 Mar 2008 19:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277065#M52958</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-20T19:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277066#M52959</link>
      <description>You should add a iterate link between "iterate lookup list" and "read current csv file". If you do not have a link you have two jobs with no connection and each job is executed only once. Therefore you get only one "output".&lt;BR /&gt;Bye&lt;BR /&gt;Volker</description>
      <pubDate>Thu, 20 Mar 2008 21:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277066#M52959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-20T21:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277067#M52960</link>
      <description>Then I get this error message: 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Starte Job compare_content am 22:41 20/03/2008.&lt;BR /&gt;Exception in component tFileInputXML_1&lt;BR /&gt;java.net.MalformedURLException&lt;BR /&gt; at java.net.URL.&amp;lt;init&amp;gt;(URL.java:601)&lt;BR /&gt; at java.net.URL.&amp;lt;init&amp;gt;(URL.java:464)&lt;BR /&gt; at java.net.URL.&amp;lt;init&amp;gt;(URL.java:413)&lt;BR /&gt; at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)&lt;BR /&gt; at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)&lt;BR /&gt; at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)&lt;BR /&gt; at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)&lt;BR /&gt; at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)&lt;BR /&gt; at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)&lt;BR /&gt; at geschaeftsmodell.compare_content.compare_content.tFileInputXML_1Process(compare_content.java:1029)&lt;BR /&gt; at geschaeftsmodell.compare_content.compare_content.tFileInputDelimited_2Process(compare_content.java:204)&lt;BR /&gt; at geschaeftsmodell.compare_content.compare_content.runJobInTOS(compare_content.java:1231)&lt;BR /&gt; at geschaeftsmodell.compare_content.compare_content.main(compare_content.java:1150)&lt;BR /&gt;Job compare_content endet am 22:41 20/03/2008. &lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 20 Mar 2008 21:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277067#M52960</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-20T21:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277068#M52961</link>
      <description>I can reproduce the problem. I'm not sure if this is a limitation or a bug:&lt;BR /&gt;The lookup row is evaluated before flow to iteration starts. So you cant get the value out of the global map. &lt;BR /&gt;Alternatively you can split your functions in two jobs. The first one handles the file list and will call the second job via tRunJob. You can define in your compare job both files as context variables and pass this variables in the definition of tRunJob.&lt;BR /&gt;Bye&lt;BR /&gt;Volker</description>
      <pubDate>Thu, 20 Mar 2008 22:30:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277068#M52961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-20T22:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277069#M52962</link>
      <description>Its frustrating, I can't get this job synchronized. I tried your idea with trunjob and I added an addition tMap (tMap_3), which just copy the flow, to get the "XML-Path" longer. That helps, so that the first iteration runs, but in the second iteration the job dies ... 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Starte Job rettung am 09:35 21/03/2008.&lt;BR /&gt;1|0.0|0.0|true&lt;BR /&gt;2|0.0|0.0|true&lt;BR /&gt;3|12.0|0.0|false&lt;BR /&gt;4|123235.0|0.0|false&lt;BR /&gt;5|168.5|0.0|false&lt;BR /&gt;6|168.5|0.0|false&lt;BR /&gt;7|168.5|0.0|false&lt;BR /&gt;8|168.5|0.0|false&lt;BR /&gt;9|166.3|0.0|false&lt;BR /&gt;10|166.3|0.0|false&lt;BR /&gt;11|164.8|0.0|false&lt;BR /&gt;12|164.8|0.0|false&lt;BR /&gt;13|164.8|0.0|false&lt;BR /&gt;14|164.8|0.0|false&lt;BR /&gt;15|166.3|0.0|false&lt;BR /&gt;16|166.3|0.0|false&lt;BR /&gt;17|166.3|0.0|false&lt;BR /&gt;18|166.3|0.0|false&lt;BR /&gt;19|166.3|0.0|false&lt;BR /&gt;20|166.3|0.0|false&lt;BR /&gt;21|168.5|0.0|false&lt;BR /&gt;22|168.5|0.0|false&lt;BR /&gt;23|168.5|0.0|false&lt;BR /&gt;24|168.5|0.0|false&lt;BR /&gt;Exception in component tMap_2&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt; at geschaeftsmodell.compare_content.compare_content.tFileInputDelimited_1Process(compare_content.java:477)&lt;BR /&gt; at geschaeftsmodell.compare_content.compare_content.runJobInTOS(compare_content.java:1257)&lt;BR /&gt; at geschaeftsmodell.compare_content.compare_content.runJob(compare_content.java:1182)&lt;BR /&gt; at geschaeftsmodell.rettung.rettung.tFileInputDelimited_1Process(rettung.java:235)&lt;BR /&gt; at geschaeftsmodell.rettung.rettung.runJobInTOS(rettung.java:416)&lt;BR /&gt; at geschaeftsmodell.rettung.rettung.main(rettung.java:335)&lt;BR /&gt;Exception in component tRunJob_1&lt;BR /&gt;java.lang.RuntimeException: Child job running failed&lt;BR /&gt; at geschaeftsmodell.rettung.rettung.tFileInputDelimited_1Process(rettung.java:246)&lt;BR /&gt; at geschaeftsmodell.rettung.rettung.runJobInTOS(rettung.java:416)&lt;BR /&gt; at geschaeftsmodell.rettung.rettung.main(rettung.java:335)&lt;BR /&gt;Job rettung endet am 09:35 21/03/2008. &lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 21 Mar 2008 08:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277069#M52962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-21T08:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277070#M52963</link>
      <description>Hi, 
&lt;BR /&gt;could this be a problem with your file or you data? Does it run if you use your job with the second file-pair?
&lt;BR /&gt;If so, can you give us some more information about your job (tMap2)</description>
      <pubDate>Fri, 21 Mar 2008 22:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277070#M52963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-21T22:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277071#M52964</link>
      <description>Thanks Volker, that you still helps me ...&lt;BR /&gt;Okay I check the second pair and it works without problem, so I added a screenshot of tMap2</description>
      <pubDate>Tue, 25 Mar 2008 10:58:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277071#M52964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-25T10:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277072#M52965</link>
      <description>I'm not sure I could help you really :-(
&lt;BR /&gt;I can't see a problem in your tMap. The exception is thrown if you work with null values. I can't see (at first view) where the problems could happen. 
&lt;BR /&gt;I've for testing purposes written a job to. And it works. 
&lt;BR /&gt;I think that this is a problem of the data (or the job) and not of the multiple execution as a subjob. 
&lt;BR /&gt;Because I can't reproduce the problem I could only say what I should do to isolate it:
&lt;BR /&gt;- Check the generated source code (switch from the designer into the code view) and take a look at the given line. Or better use the debugger.
&lt;BR /&gt;- Reduce the files to check if the problems exist anymore. (Test only one pair, than another isolated, then both together, ...)
&lt;BR /&gt;Hope this helps.
&lt;BR /&gt;Bye
&lt;BR /&gt;Volker</description>
      <pubDate>Tue, 25 Mar 2008 23:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277072#M52965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-25T23:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277073#M52966</link>
      <description>Hi Everyone,&lt;BR /&gt;                   I created one job in TALEND and its running fine.I parsed one csv file and put in database.&lt;BR /&gt;Now i have one issue is that if i need to run that job by help of bactch file without open TALEND, then it searching for csv file.&lt;BR /&gt; Can anyone guide me that how can i provide the csv file path through command line and run the by batch process?</description>
      <pubDate>Wed, 26 Mar 2008 05:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277073#M52966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-26T05:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pass filename stored in CSV-File to tfileinputXML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277074#M52967</link>
      <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Now i have one issue is that if i need to run that job by help of bactch file without open TALEND, then it searching for csv file.&lt;BR /&gt;Can anyone guide me that how can i provide the csv file path through command line and run the by batch process?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Please read this 1615 to learn how to specify a variable value from the command line.
&lt;BR /&gt;PS: Please create a new topic for new questions next time.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 26 Mar 2008 06:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pass-filename-stored-in-CSV-File-to-tfileinputXML/m-p/2277074#M52967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-26T06:10:12Z</dc:date>
    </item>
  </channel>
</rss>

