none
bLogical SFTP Adaptor Error RRS feed

  • General discussion

  • Hello ..... My name is Scott - I am new to the BizTalk community. I am having difficulty in resolving the received SFTP file name.  My requirement is to process the received file based on the extension of the file name using a Decide shape, however I am unable to determine the receive file name because there is no value associated with the "remotefile" property. It seems as though I am missing something - can anyone offer a suggestion?

    Additional Info ....... connectivity is not an issue as I am able to drop a generic file into a directory on one server and BizTalk will successfully pick it up and deliver it to another server. My requirement is to deliver it to different directories based on the extension of the receive file - that's why I need to be able to use a decision shape to determine which send port to use.

    The following command is generating a run-time error:

                           COMMAND:         FileName = msgIN(Blogical.Shared.Adapters.Sftp.Schemas.remotefile);

                           ERROR:   Inner exception: There is no value associated with the property   'Blogical.Shared.Adapters.Sftp.Schemas.remotefile' in the message.

     Your help is greatly appreciated!!!!

    Scott

    Friday, January 7, 2011 8:27 PM

All replies

  • Hi,

    I'm not sure but I think you can use the BizTalk system property for this. Use "ReceivedFileName" in namespace 'http://schemas.microsoft.com/BizTalk/2003/file-properties' instead of the property you use now.

     


    HTH,

    Randal van Splunteren - MVP, MCTS BizTalk Server
    http://biztalkmessages.vansplunteren.net

    Please mark as answered if this answers your question.

    Check out the PowerShell provider for BizTalk: http://psbiztalk.codeplex.com
    Monday, January 10, 2011 10:38 AM
    Moderator
  • Thanx Randal - I will try your suggestion when I have a few minutes ...... In the mean time, given that our BizTalk server is in-house and thus inside our firewall, I was able to use the FTP adaptor on the Receive side and the SFTP adaptor on the Send side successfully. Our corporate policy will be changing soon where ALL communication will need to be via an SFTP protocol so I will definitely be trying your suggestion in the near future.

    Thanx again!

     

    Scott

    Monday, February 14, 2011 5:58 PM