<?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: Trouble Sending CSV to SFTP in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/Trouble-Sending-CSV-to-SFTP/m-p/2466466#M4233</link>
    <description>&lt;P&gt;When comma is creating problems in CSV files because the content has also commas inside , try to use another delimiter, like pipe, or # or ~ . &lt;BR /&gt;&lt;BR /&gt;Both when generating the CSV, but also in the read of CSV back in Qlik, if it is the case, using&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt; (delimiter is'~') &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 15:51:09 GMT</pubDate>
    <dc:creator>cotiso_hanganu</dc:creator>
    <dc:date>2024-06-28T15:51:09Z</dc:date>
    <item>
      <title>Trouble Sending CSV to SFTP</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Trouble-Sending-CSV-to-SFTP/m-p/2465876#M4222</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm new to Automations and a novice Qlik developer - I'm looking to move data from a Straight Table I've built to an SFTP. I've got a test up, and can see data being moved, but I have two problems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Instead of sending the full table, it's sending each row as its own file.&lt;/P&gt;
&lt;P&gt;2. I'm using a comma to delimit things, but there's commas in the values of the table, and so it's splitting the values in an unusual way.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm attaching an excel workbook with three tabs. The first has an image of the Automation flow I'm using. The second has an image of the (very simple) two row table. The next two tabs are the output in the SFTP.&lt;/P&gt;
&lt;P&gt;Does anyone have any tips here? I'm sure the solution is fairly simple but I'm missing something. Screenshots below as well. We are using Qlik Cloud&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidJ_0-1719434001285.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168544i659932D7A1DD19D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidJ_0-1719434001285.png" alt="DavidJ_0-1719434001285.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidJ_1-1719434058090.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168545i81E475767C9EFF09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidJ_1-1719434058090.png" alt="DavidJ_1-1719434058090.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidJ_2-1719434128899.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168546i04181FD9072D8D80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidJ_2-1719434128899.png" alt="DavidJ_2-1719434128899.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidJ_3-1719434183487.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168547i81E6983491F36428/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidJ_3-1719434183487.png" alt="DavidJ_3-1719434183487.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidJ_4-1719434200702.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168548iED04A3E940D544EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidJ_4-1719434200702.png" alt="DavidJ_4-1719434200702.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 20:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Trouble-Sending-CSV-to-SFTP/m-p/2465876#M4222</guid>
      <dc:creator>DavidJ</dc:creator>
      <dc:date>2024-06-26T20:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Sending CSV to SFTP</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Trouble-Sending-CSV-to-SFTP/m-p/2466432#M4232</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/205512"&gt;@DavidJ&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I did not try to create an automation of the same nature, but i did notice a few things from what you mentioned and pictures.&lt;BR /&gt;&lt;BR /&gt;For the first point, the reason why its creating multiple CSV files is because in each iteration of the get Stright table data loop you are creating a file on SFTP&lt;BR /&gt;&lt;BR /&gt;Take it out of the loop so it will only create a file once.&lt;BR /&gt;&lt;BR /&gt;-----------------------------&lt;BR /&gt;&lt;BR /&gt;For the second point for the values of the table that have a ',' maybe use a text formula named "Remove" to remove the ',' from the values.&lt;BR /&gt;&lt;BR /&gt;-----------------------------&lt;BR /&gt;&lt;BR /&gt;Another thing that i could suggest for the current configuration is to maybe also save the contents of the file once, outside of the loop.&lt;BR /&gt;&lt;BR /&gt;I am not quit sure if you need to save after every written line but you can try that.&lt;BR /&gt;&lt;BR /&gt;-------------------------------&lt;BR /&gt;&lt;BR /&gt;Finally, while it is not the same use case you have, we have a template that does a similar thing named "&lt;SPAN&gt;Copy data from a Qlik Sense straight table to an Excel sheet&lt;/SPAN&gt;"&lt;BR /&gt;&lt;BR /&gt;Maybe you can make use of that&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 13:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Trouble-Sending-CSV-to-SFTP/m-p/2466432#M4232</guid>
      <dc:creator>Shai_E</dc:creator>
      <dc:date>2024-06-28T13:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Sending CSV to SFTP</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Trouble-Sending-CSV-to-SFTP/m-p/2466466#M4233</link>
      <description>&lt;P&gt;When comma is creating problems in CSV files because the content has also commas inside , try to use another delimiter, like pipe, or # or ~ . &lt;BR /&gt;&lt;BR /&gt;Both when generating the CSV, but also in the read of CSV back in Qlik, if it is the case, using&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt; (delimiter is'~') &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 15:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Trouble-Sending-CSV-to-SFTP/m-p/2466466#M4233</guid>
      <dc:creator>cotiso_hanganu</dc:creator>
      <dc:date>2024-06-28T15:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Sending CSV to SFTP</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Trouble-Sending-CSV-to-SFTP/m-p/2480843#M4709</link>
      <description>&lt;P&gt;Thanks for your replies - both were very helpful.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been able to correct the output, as listed viewed using the Output block in Qlik, to include commas correctly, as well as loop correctly, to list all of the desired data in one table. The result from the block looks great (listed in the first screenshot, with some sensitive values in the data omitted).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, now I'm having trouble with the file encoding. I've been using CSV, with a pipe delimiter, and the output block is listing everything correctly, but the file that's dropped in the SFTP either lists "ArrayArrayArrayArrayArray...", or the column headers I provide it, and that's it. It does not match the output block at all.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm assuming I've messed something up in the Write Line to File block, but I can't tell what it is, and it's hard to troubleshoot with the Output block telling me I've done it correctly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any advice? Thanks,&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 21:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Trouble-Sending-CSV-to-SFTP/m-p/2480843#M4709</guid>
      <dc:creator>DavidJ</dc:creator>
      <dc:date>2024-09-10T21:20:31Z</dc:date>
    </item>
  </channel>
</rss>

