<?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: First FTP Job - Copy files on FTP server - Split XML file per order into a new XML file - Upload new files with ActiveMQ in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/First-FTP-Job-Copy-files-on-FTP-server-Split-XML-file-per-order/m-p/2324969#M94615</link>
    <description>&lt;P&gt;This is not the best way to ask a question here I am afraid. You have essentially asked for a complete solution which is made up of multiple problems. You will need to first solve the FTP part of this and then go to the XML processing part. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To start you off, if you want to find check whether the files exist, you will need to first use the tFTPFileList component. This will allow you to carry out a search of your FTP location for certain file patterns. It will return the records via an Iterate flow, so you'll probably want to use a tIterateToFlow component to work with this data. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a look at this example (https://help.talend.com/r/en-US/7.3/ftp/tftpfilelist-tftpconnection-tlogrow-listing-and-getting-files-folders-on-ftp-directory-standard-component) which shows this in a very simple way. Then try and extrapolate from this to get to solving the first part of your issue.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2022 10:52:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-04T10:52:13Z</dc:date>
    <item>
      <title>First FTP Job - Copy files on FTP server - Split XML file per order into a new XML file - Upload new files with ActiveMQ</title>
      <link>https://community.qlik.com/t5/Talend-Studio/First-FTP-Job-Copy-files-on-FTP-server-Split-XML-file-per-order/m-p/2324968#M94614</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm assigned to create a job, however I've never done anything with FTP nor XML components before. (only SQL and retreive/update DB)&lt;/P&gt;&lt;P&gt;The documentation can only show me as much as the general info, but I haven't seen anything that can help me further with where I'm stuck on.&lt;/P&gt;&lt;P&gt;My mentor is unfortunately unavailable and I hoped that someone could get me started here /steer me in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've broken down the job as per below what needs to be done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;The Job;&lt;/B&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I would need to establish a connection with the FTP.&lt;/LI&gt;&lt;LI&gt;Check whether new files are available, if not, the job should end.&lt;/LI&gt;&lt;LI&gt;Copy all files (orders.xml and perhaps others) from FTP folder "\orders\" into "\orders\archive\"&lt;/LI&gt;&lt;LI&gt;if orders.xml contains more than 1 order, the xml should be split into seperate xml files based on the order.&lt;/LI&gt;&lt;LI&gt;The new xml-files/orders should be send with AcriveMQ Artemis with orders.xml to be renamed as header "OriginalFilename"&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Up to now I have below schedule created;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WupzFAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131949i4DAA201ADAC6ADB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WupzFAAR.png" alt="0695b00000WupzFAAR.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;FTPConnection is created.&lt;/LI&gt;&lt;LI&gt;I would assume, I would need tFTPFileProperties, in between FTPConnection and tFTPGet to check if the orders.xml was updated in "\orders\". But how can I do this? I assume I need some Java code for this? Or perhaps a different component?&lt;/LI&gt;&lt;LI&gt;FTPGet would get all files and store it locally. Can I put it directly into "\orders\archive\" with this component into the FTP server? Or should I use tFTPut as in the schedule to store it into the FTP?&lt;/LI&gt;&lt;LI&gt;I really have no clue how to split the xml files per order. Any help, links or examples would be greatly appreciated.&lt;/LI&gt;&lt;LI&gt;To be honest I have not yet looked into ActiveMQ, given I can't sort the above out yet, I figured I would wait to dig into ActiveMQ till I have the first 4 steps working.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/First-FTP-Job-Copy-files-on-FTP-server-Split-XML-file-per-order/m-p/2324968#M94614</guid>
      <dc:creator>Oliemar84</dc:creator>
      <dc:date>2024-11-15T22:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: First FTP Job - Copy files on FTP server - Split XML file per order into a new XML file - Upload new files with ActiveMQ</title>
      <link>https://community.qlik.com/t5/Talend-Studio/First-FTP-Job-Copy-files-on-FTP-server-Split-XML-file-per-order/m-p/2324969#M94615</link>
      <description>&lt;P&gt;This is not the best way to ask a question here I am afraid. You have essentially asked for a complete solution which is made up of multiple problems. You will need to first solve the FTP part of this and then go to the XML processing part. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To start you off, if you want to find check whether the files exist, you will need to first use the tFTPFileList component. This will allow you to carry out a search of your FTP location for certain file patterns. It will return the records via an Iterate flow, so you'll probably want to use a tIterateToFlow component to work with this data. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a look at this example (https://help.talend.com/r/en-US/7.3/ftp/tftpfilelist-tftpconnection-tlogrow-listing-and-getting-files-folders-on-ftp-directory-standard-component) which shows this in a very simple way. Then try and extrapolate from this to get to solving the first part of your issue.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 10:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/First-FTP-Job-Copy-files-on-FTP-server-Split-XML-file-per-order/m-p/2324969#M94615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-04T10:52:13Z</dc:date>
    </item>
  </channel>
</rss>

