FTP commands failed in \"Before get\" field

Home Page Forums BizTalk 2004 – BizTalk 2010 FTP commands failed in \"Before get\" field

Viewing 1 reply thread
  • Author
    Posts
    • #14924

      You need to use raw FTP commands.
      [url]http://www.w3.org/Protocols/rfc959/4_FileTransfer.html[/url]

      The commands you are using are interpreted by the Windows ftp client application and the data port is also handled by the ftp client. The concept of a local directory is specific to the ftp client.

      The FTP adapter cannot copy and save files to a local directory

    • #14925

      You will NOT be able to copy the files to a local directory. The FTP adapter does not have the capability to handle an ftp data port and save the data stream to a local directory.

      Your best bet is to use the normal FTP adapter functionality to copy the files and use an archiving pipeline component to save the files locally.
      [url]http://codebetter.com/blogs/jeff.lynch/archive/2006/04/08/142537.aspx[/url]

      • #14926

        Hi,

        I need to copy files located in a remote ftp to a local folder (servers = [b:636255320c]Windows 2003[/b:636255320c]). With a simple windows \”[b:636255320c]cmd[/b:636255320c]\” it works :

        [code:1:636255320c]ftp> prompt
        Interactive mode Off .
        ftp> lcd c:\\save
        Local directory now C:\\save.
        ftp> mget *
        200 Type set to A.
        200 PORT command successful.
        150 Opening ASCII mode data connection for files/data.txt(1795 bytes).
        226 Transfer complete.
        ftp: 1795 bytes received in 0,00Seconds 1795000,00Kbytes/sec.
        ftp>[/code:1:636255320c]

        So, in the [b:636255320c]BizTalk admistration console[/b:636255320c], when I configure my receive locations, i put the following in the field called \”before get\” :

        [code:1:636255320c]prompt; lcd c:\\; mget *;[/code:1:636255320c]

        But in the \”[b:636255320c]Application Event Viewer[/b:636255320c]\”, a warning writes :

        [code:1:636255320c]unknown command prompt[/code:1:636255320c]

        If I remove \”[b:636255320c]prompt[/b:636255320c]\”, I still have the same warning.

        Thanks a lot if anybody ‘s got an idea !

        • #14927

          [quote:736f85e83e=\”greg.forsythe\”]You need to use raw FTP commands.
          [url]http://www.w3.org/Protocols/rfc959/4_FileTransfer.html[/url]

          The commands you are using are interpreted by the Windows ftp client application and the data port is also handled by the ftp client. The concept of a local directory is specific to the ftp client.

          The FTP adapter cannot copy and save files to a local directory[/quote:736f85e83e]

          Thanks, I’m gonna try this and tell you the result.

          • #14928

            You’re rigtht: [b:998cb285a6]raw FTP commands[/b:998cb285a6] don’t provide the ability to copy or save files from remote FTP server to a local folder.

            Sure, I could save incoming files in my orchestration, but do you know if there is another way to do that ?

            • #14929

              [quote:1bf274a3e5=\”greg.forsythe\”]You will NOT be able to copy the files to a local directory. The FTP adapter does not have the capability to handle an ftp data port and save the data stream to a local directory.

              Your best bet is to use the normal FTP adapter functionality to copy the files and use an archiving pipeline component to save the files locally.
              [url]http://codebetter.com/blogs/jeff.lynch/archive/2006/04/08/142537.aspx[/url][/quote:1bf274a3e5]

              Great ! It really works fine. Very useful pipeline. I recommand it to everyone who wants to archive incoming messages.

              [u:1bf274a3e5]Thanks a lot for your help.[/u:1bf274a3e5]

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.