<?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: webservice output to an xml file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303940#M75760</link>
    <description>Following the details from 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqbYCAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Logging-to-xml-file/td-p/109969&lt;/A&gt;, I changed the structure to include a group element. However, I still get the following exception on this component when I run my job: 
&lt;BR /&gt; 
&lt;PRE&gt;Exception in component tAdvancedFileOutputXML_1&lt;BR /&gt;java.lang.Exception: can not find the file:/home/bruno/TOS-All-r31371-V3.2.1/workspace/out.xml&lt;BR /&gt;	at filetransfer.filetransferjob_0_1.FileTransferJob.tFileList_1Process(FileTransferJob.java:2507)&lt;/PRE&gt; 
&lt;BR /&gt;Presumably, because I append to the file, it complains when the file doesn't exist. As I already have a tPrejob to clean up logs on startup, I tried to add a simple task to theat pre-job with a tFixedFlowInput and another tAdvancedFileOutputXML where the "append" option is not checked, in order to create the file's structure but that doesn't work either. Now, it only tells me that I have errors in both tAdvancedFileOutputXML but it doesn't give me any meaningful error message, nor are the errors listed in the "Problems" tab. 
&lt;BR /&gt;I attached a number of screen shots that show: what the overall job looks like and the XML tree configuration screen of both tAdvancedFileOutputXML.</description>
    <pubDate>Sun, 21 Feb 2010 15:37:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-02-21T15:37:11Z</dc:date>
    <item>
      <title>webservice output to an xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303935#M75755</link>
      <description>Hi, 
&lt;BR /&gt;I'm still fairly new to the use of Talend so apologies if this is a simple question but i'm still finding my way through all the components available in the studio. 
&lt;BR /&gt;I have a scenario where I need to 
&lt;BR /&gt;1) Retrieve ID's for users from a table in my database 
&lt;BR /&gt;2) Iterate through each ID and make a call to a webservice 
&lt;BR /&gt;3) Call the webservice method with the ID, and retrieve results 
&lt;BR /&gt;4) Output results for each ID into an XML file or some kind of output which can be manipulated further. 
&lt;BR /&gt;I have achieved the first 3 parts of this, the webservice retrieves the results for each ID, but at the moment all i can do with these is output them through the logrow component. I have attempted to output to an XML file, but this does not seem to let you append the xml file with the latest results, it just overwrites the contents, which as a result once the job is completed, leaves an xml file with just the last result of the iteration. 
&lt;BR /&gt;Does anyone have any suggestions, I have attached a screenshot of how the job currently runs. 
&lt;BR /&gt;Many thanks 
&lt;BR /&gt;Richard</description>
      <pubDate>Sat, 16 Nov 2024 13:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303935#M75755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: webservice output to an xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303936#M75756</link>
      <description>It's always the same problem when using an "iterate" link.
&lt;BR /&gt;You have to create the file at the beginnint of the job :
&lt;BR /&gt;tPrejob --onComponentOk--&amp;gt; tGenerateRow --Output--&amp;gt; tFileOutputXML
&lt;BR /&gt;Then on the other component tFileOutputXML, check the "append" box. 
&lt;BR /&gt;This is the way I use, because it works exactly as if there was no "iterate" link in the process. Checking the "append" box on the existing component could be enough, but creating the file at the beginning of the job overwrites the file of the last execution, which is easier when developping.</description>
      <pubDate>Wed, 19 Aug 2009 10:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303936#M75756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-19T10:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: webservice output to an xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303937#M75757</link>
      <description>@nkxxDV: that's what I thought but I can't find the "append" check box in the tFileOutputXML component. Is there another way to do that?</description>
      <pubDate>Sat, 20 Feb 2010 20:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303937#M75757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-20T20:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: webservice output to an xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303938#M75758</link>
      <description>@brunogirin
&lt;BR /&gt;The 'append' option is avaliable on tAdvancedFileOutputXML component. We generally use tAdvancedFileOutputXML instead of tFileOutputXML to output a xml file.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Sun, 21 Feb 2010 01:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303938#M75758</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-21T01:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: webservice output to an xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303939#M75759</link>
      <description>@shong: when I use tAdvancedFileOutputXML, I get errors that says: "Loop element is missing" or "Require set as loop or set as group at least". I tried to add a loop element called "row" under the rootTag and then mapping all fields but it doesn't seem to resolve the error. I've attached a screenshot to show what I mean.</description>
      <pubDate>Sun, 21 Feb 2010 12:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303939#M75759</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-21T12:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: webservice output to an xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303940#M75760</link>
      <description>Following the details from 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqbYCAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Logging-to-xml-file/td-p/109969&lt;/A&gt;, I changed the structure to include a group element. However, I still get the following exception on this component when I run my job: 
&lt;BR /&gt; 
&lt;PRE&gt;Exception in component tAdvancedFileOutputXML_1&lt;BR /&gt;java.lang.Exception: can not find the file:/home/bruno/TOS-All-r31371-V3.2.1/workspace/out.xml&lt;BR /&gt;	at filetransfer.filetransferjob_0_1.FileTransferJob.tFileList_1Process(FileTransferJob.java:2507)&lt;/PRE&gt; 
&lt;BR /&gt;Presumably, because I append to the file, it complains when the file doesn't exist. As I already have a tPrejob to clean up logs on startup, I tried to add a simple task to theat pre-job with a tFixedFlowInput and another tAdvancedFileOutputXML where the "append" option is not checked, in order to create the file's structure but that doesn't work either. Now, it only tells me that I have errors in both tAdvancedFileOutputXML but it doesn't give me any meaningful error message, nor are the errors listed in the "Problems" tab. 
&lt;BR /&gt;I attached a number of screen shots that show: what the overall job looks like and the XML tree configuration screen of both tAdvancedFileOutputXML.</description>
      <pubDate>Sun, 21 Feb 2010 15:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303940#M75760</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-21T15:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: webservice output to an xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303941#M75761</link>
      <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Exception in component tAdvancedFileOutputXML_1&lt;BR /&gt;java.lang.Exception: can not find the file:/home/bruno/TOS-All-r31371-V3.2.1/workspace/out.xml&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;As the exception message shows, the file doesn't exist, if you are checking 'append' option, the file must exist on your hard disk. 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;I tried to add a simple task to theat pre-job with a tFixedFlowInput and another tAdvancedFileOutputXML where the "append" option is not checked,&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;When you do a simple task for test, it is better to deactivate the second subjob.
&lt;BR /&gt;About 'append the source xml file' feature, see 5975.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Mon, 22 Feb 2010 03:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303941#M75761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-22T03:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: webservice output to an xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303942#M75762</link>
      <description>@shong: thanks for your reply.
&lt;BR /&gt;I had indeed worked out that I needed to create the XML file first before using the tAdvancedFileOutputXML task with the "append" option checked. I've now got the main job working by creating a skeleton XML file by hand prior to running the job but obviously having to manually create this skeleton file defeats the purpose of using a tool like Talend. Is there any way to include a task somewhere in order to do that? Topic #5975 that you mention doesn't say anything about it.</description>
      <pubDate>Mon, 22 Feb 2010 10:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303942#M75762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-22T10:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: webservice output to an xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303943#M75763</link>
      <description>&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Hi,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;You can set the group element and loop element in TAdvancedFileOutputXML Component.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="2"&gt;Please Find the&amp;nbsp;attachment&amp;nbsp;for the Settings i had configured.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;</description>
      <pubDate>Tue, 29 Dec 2015 07:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/webservice-output-to-an-xml-file/m-p/2303943#M75763</guid>
      <dc:creator>lvsiva</dc:creator>
      <dc:date>2015-12-29T07:01:03Z</dc:date>
    </item>
  </channel>
</rss>

