This project has moved. For the latest updates, please go here.

Try to use the sFTP adapater in a dynamic send port

Mar 10, 2012 at 3:22 PM

Hello,

First of all thanks for your investment in this adapter, it is very helpfull. I have no problem using it with static send port.

I am trying to use sFTP adapter in a dynamic send port, I tried to follow the documentation.

But I miss some information :

what is the type for MsgOut in your example ? I used BLogical.Shared.Adapters.Sftp.Schemas.EmptyBatch.

then in your example the orchestration is complaing about that the msge needs to be created.

Thus I tried with MsGOut = new System.Xml.XmlDocument();

but at the end I still do not find where I need to put my data to transmit(I access all the promoted props) but no where I can specify the data.

Thus when I test I got the following error:

The part 'part' of message 'bLogicalSFTMsg' contains zero bytes of data.

Exception type: EmptyPartException
Source: Microsoft.XLANGs.Engine
Target Site: System.IO.Stream Persist(System.String ByRef, Boolean)
The following is a stack trace that identifies the location where the exception occured

   at Microsoft.XLANGs.Core.Part.Persist(String& encoding, Boolean wantEncoding)
   at Microsoft.BizTalk.XLANGs.BTXEngine.BTXXlangSt

I would like to make a demo next week, and I am on it since last week, trying all types of things, injecting multipart message, but then I am blocked...

Many thanks for your support.

Laurent

And again continue the great work.