<?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 Macro Qlikview  data to FTP in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-Qlikview-data-to-FTP/m-p/1820312#M1213414</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i used this code to copy a file to the SFTP no error displayed when i running the macro&amp;nbsp; but the file is not copied&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;Sub FTPUpload&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;Set oShell = CreateObject("Shell.Application")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;'Path to file or folder to upload&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;path = "C:\Users\Documents\AJOUUUTTTTT.TXT"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;On Error Resume Next&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;Const copyType = 16&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;'FTP Wait Time in ms&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;waitTime = 80000&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;'Configuración FTP&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;FTPUser = "**************"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;FTPPass = "**************"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;FTPHost = "172.28.70.151"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;FTPDir = "**************"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;strFTP = "ftp://" &amp;amp; FTPUser &amp;amp; ":" &amp;amp; FTPPass &amp;amp; "@" &amp;amp; FTPHost &amp;amp; FTPDir&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;Set objFTP = oShell.NameSpace(strFTP)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;'Upload single file&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;If objFSO.FileExists(path) Then&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;MSGBOX 'test'&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;Set objFile = objFSO.getFile(path)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;strParent = objFile.ParentFolder&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;Set objFolder = oShell.NameSpace(strParent)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;Set objItem = objFolder.ParseName(objFile.Name)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;objFTP.CopyHere objItem, copyType&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;End If&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;WScript.Sleep waitTime&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;End Sub&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jul 2021 08:04:54 GMT</pubDate>
    <dc:creator>souadouert</dc:creator>
    <dc:date>2021-07-07T08:04:54Z</dc:date>
    <item>
      <title>Macro Qlikview  data to FTP</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Qlikview-data-to-FTP/m-p/1820312#M1213414</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i used this code to copy a file to the SFTP no error displayed when i running the macro&amp;nbsp; but the file is not copied&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;Sub FTPUpload&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;Set oShell = CreateObject("Shell.Application")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;'Path to file or folder to upload&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;path = "C:\Users\Documents\AJOUUUTTTTT.TXT"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;On Error Resume Next&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;Const copyType = 16&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;'FTP Wait Time in ms&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;waitTime = 80000&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;'Configuración FTP&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;FTPUser = "**************"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;FTPPass = "**************"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;FTPHost = "172.28.70.151"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;FTPDir = "**************"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;strFTP = "ftp://" &amp;amp; FTPUser &amp;amp; ":" &amp;amp; FTPPass &amp;amp; "@" &amp;amp; FTPHost &amp;amp; FTPDir&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;Set objFTP = oShell.NameSpace(strFTP)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;'Upload single file&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;If objFSO.FileExists(path) Then&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;MSGBOX 'test'&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;Set objFile = objFSO.getFile(path)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;strParent = objFile.ParentFolder&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;Set objFolder = oShell.NameSpace(strParent)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;Set objItem = objFolder.ParseName(objFile.Name)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;objFTP.CopyHere objItem, copyType&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;End If&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;WScript.Sleep waitTime&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080"&gt;&lt;STRONG&gt;End Sub&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 08:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Qlikview-data-to-FTP/m-p/1820312#M1213414</guid>
      <dc:creator>souadouert</dc:creator>
      <dc:date>2021-07-07T08:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Qlikview  data to FTP</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Qlikview-data-to-FTP/m-p/1820331#M1213416</link>
      <description>&lt;P&gt;It looked that you used this code-example:&amp;nbsp;&lt;A href="http://www.codescript.co.uk/ftp_connect_and_upload.htm" target="_blank"&gt;FTP Connect and Upload Code Script&lt;/A&gt;. Assuming that this code is really working it seems that your FTP-path variable isn't quite correct - you may return it within a msgbox and putting the result within the windows explorer to check if the access in general worked.&lt;/P&gt;&lt;P&gt;If the path is really correct and it didn't work it could be caused from not appropriate user-rights (maybe you could check it with another one) or that the connection is blocked from any security tool like a firewall or rules to the open ports or similar stuff.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 09:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Qlikview-data-to-FTP/m-p/1820331#M1213416</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-07-07T09:19:00Z</dc:date>
    </item>
  </channel>
</rss>

