Hi Laxman,
Your assign to="." isn't right. The SFTP Client Put looks for, in order of preference, a DocumentList parameter, a DocumentId parameter, or if neither of those are present the PrimaryDocument. The error you're seeing is that presumably there is no PrimaryDocument for it to PUT.
You need to get the file you're sending into B2Bi and so into your BP so that it can be sent. If it's on filesystem then you'll need to for example use the FileSystemAdapter to first read the file from the filesystem. Typically with SFG the file will be in a mailbox so the document id can be obtained from the message details, or in a custom delivery process the file will already be in PrimaryDocument when the delivery BP gets invoked in FileGatewaySendMessage.
An SFG flow might be to have a filesystem adapter that watches a folder and for each new file found bootstraps a BP to load the file into a mailbox associated with an SFG producer partner. You then have a routing channel associated with the mailbox that routes the file to the consumer partner which is configured via a custom delivery protocol to use your SFTP PUT BP to send the file to them.
Best regards,
Richard.
------------------------------
RICHARD CROSS
------------------------------