none
Multiple SFTP Adapters with identical URI RRS feed

  • Question

  • I run into an issue where I need to configure multiple SFTP adapters that ultimately have the same URI.

    The SFTP server I am connecting to is performing chrooting resulting in each account starting in /

    Therefore different user accounts will see the same folder's once connecting to the SFTP but they are physically in different locations on the sftp server.

    As a result the URI for both adapters is sftp://<ip>:22/Incoming (despite the incoming folder being a different physical path on each account)

    Because the adapter doesn't seem to recognize that a different username is provided in the configuration, biztalk doesn't allow for the second apater to be created.

    Any help or suggestions would be great!

    Thanks

    Monday, March 3, 2014 5:00 PM

Answers

  • Thanks boatseller,

    Disambiguating didn't help but different host aliases did.  I agree it is a little hack'y but got me past the issue I'm currently experiencing.

    Thanks again.

    Monday, March 3, 2014 7:43 PM

All replies

  • Hi,

    I dont see any issue .You can create Multiple sftp reveive Location within same port pointing to same folder .

    What error you are getting while creating second recieve location

    Thanks

    Abhishek

    Monday, March 3, 2014 6:41 PM
  • The error I receive is:

    Address should be unique for Receive Location <Receive Location Name>. Address 'sftp://<ip>:22/Incoming/*.xml' is already present for Receive Location <Other Receive Location Name>. (Microsoft.BizTalk.ExplorerOM)

    I should have specified that this is Biztalk 2013

    Monday, March 3, 2014 7:08 PM
  • Good catch.  For clarity, this is not a restriction of the Adapter, rather BizTalk requires a unique URI for every Receive Location, always has.

    Have you tried simple disambiguating the URI by adding /[username] or ?[username]? If the server automatically redirects based on use name, it may just ignore any superfluous elements.

    If that doesn't work, you could try using host aliases for each user.  It's a little hack'y but will give you unique URI's.

    This would be a great product suggestion for Connect.  I recall, especially at school, FTP Servers frequently having this behavior.

    Monday, March 3, 2014 7:37 PM
    Moderator
  • Thanks boatseller,

    Disambiguating didn't help but different host aliases did.  I agree it is a little hack'y but got me past the issue I'm currently experiencing.

    Thanks again.

    Monday, March 3, 2014 7:43 PM
  • Hi,

    Add the secound receive location with *.xml*, *.x* or *.xm* in the file mask.

    Best regards

    Rasmus Jaeger 

    Friday, March 14, 2014 1:22 PM