Fast, Efficient Message Archiving for BizTalk with the BizTalk Message Archiving Pipeline Component. Download a Free 14-Day Trial!

FTP Adapter Context Property Oddities

Originally posted by Nick Heppleston at: http://www.modhul.com/2009/03/04/ftp-adapter-context-property-oddities/

Interesting to see that the FTP adapter doesn’t capture the full Uri of the file in its ReceivedFileName context property – instead it simply gives us the filename:

ftp-context-properties2

Compare this with the FILE adapter where the full name (incl. the path) of the file is provided:

file-context-properties

So, if you need to capture say the folder structure of the FTP server, you need to do a few lines of magic to extract the folder name from the InboundTransportLocation property (shown in green in the first screenshot) and munge it with the ReceivedFileName.

Reblog this post [with Zemanta]

3 Responses to “FTP Adapter Context Property Oddities”


  1. 1 Thiago Almeida

    Another one is that it uses the ReceivedFileName property of http://schemas.microsoft.com/BizTalk/2003/file-properties instead of its ft-properties counterpart on a send port when you set the %SourceFileName% macro…

  1. 1 Context Property Macros « Atomic-Scope
  2. 2 Context Property Macros - FTP Adapter Macros « Atomic-Scope

Leave a Reply





Get Adobe Flash playerPlugin by wpburn.com wordpress themes

Nick Heppleston’s BizTalk Blog is Digg proof thanks to caching by WP Super Cache