EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SFTP adaptor not picking up my %SourceFileName% mask

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
#8876
Posted: 02/12/2009 13:11:02
by John Eisbrener (Basic support level)
Joined: 03/07/2008
Posts: 4

I'm using %SourceFileName% mask in my SFTP adaptor and it is no longer being picked up. Here's a Debug log generated by the adaptor:

[2/12/2009 1:14 PM] EldoS SFTP Adapter (send): __ctor()
[2/12/2009 1:14 PM] EldoS SFTP Adapter (send): TransmitMessage()
[2/12/2009 1:14 PM] EldoS SFTP Adapter (send): CreateProperties()
[2/12/2009 1:14 PM] AdapterProperties::UpdateUriForDynamicSend() Uri: SFTP://user@server:22/home/co3_user/co3_inbound/%SourceFileName%
[2/12/2009 1:14 PM] EldoS SFTP Adapter (send): ProcessMessage()
[2/12/2009 1:14 PM] AdapterProperties::LoadFromMessage()
[2/12/2009 1:14 PM] EldoS SFTP Adapter: Loading private key
[2/12/2009 1:14 PM] EldoS SFTP Adapter: Loading trusted keys
[2/12/2009 1:14 PM] EldoS SFTP Adapter: Opening connection to SFTP server
[2/12/2009 1:14 PM] EldoS SFTP Adapter: Running key validation handler
[2/12/2009 1:14 PM] EldoS SFTP Adapter: All keys are trusted, exiting
[2/12/2009 1:14 PM] EldoS SFTP Adapter: Authentication succeeded
[2/12/2009 1:14 PM] EldoS SFTP Adapter: SFTP connection started
[2/12/2009 1:14 PM] EldoS SFTP Adapter: Remote path is /home/co3_user/co3_inbound/.
[2/12/2009 1:14 PM] EldoS SFTP Adapter: Uploading file to SFTP server
[2/12/2009 1:14 PM] EldoS SFTP Adapter: Upload done
[2/12/2009 1:14 PM] EldoS SFTP Adapter: Closing the connection

When I use the %SourceFileName% mask in a FILE or normal FTP adaptor, the proper file name is generated. As you can see above, no file name is being generated at all, which also means my file is never transferred. This used to work, but now it no longer does. Anyone else run into this problem, and how do I go about fixing this problem?

John
#8877
Posted: 02/12/2009 13:40:12
by Eugene Mayevski (EldoS Corp.)

Do you mean that the mask previously worked with SFTP adapter or it worked with other adapters and didn't work with SFTP?

These masks are not standard and not documented. Each adapter supports certain masks but their list differs from adapter to adapter. I can't say whether SourceFileName mask is supported by our adapter - the developers know better and they will answer.


Sincerely yours
Eugene Mayevski
#8881
Posted: 02/12/2009 15:33:29
by John Eisbrener (Basic support level)
Joined: 03/07/2008
Posts: 4

Hi Eugene,

It was previously working in the SFTP adaptor, but no longer does. I made a change in my BizTalk project that changed what the mask was filled with, rebuilt, redeployed, restarted BizTalk Services, and it went from working to blank. I am going to restart the BizTalk Server (actual box) this evening in hopes that it fixes the problem, but there's got to be a way to make it work because it was working with my old project.

Thanks for the reply,

John
#8883
Posted: 02/12/2009 20:05:31
by John Eisbrener (Basic support level)
Joined: 03/07/2008
Posts: 4

The restart of the machine did NOT fix the issue. I will fill out a Support Ticket tomorrow unless someone has an idea on how to solve this.

Thanks,

John
#8884
Posted: 02/13/2009 00:24:36
by Ken Ivanov (EldoS Corp.)

First of all it is necessary to detect if the problem is caused by some failure in mask processing or with some problems with the message context (a value for the %SourceFileName% macro is taken from the ReceivedFileName property of the message context). Please try to do the following:
1) Replace a %SourceFileName% macro with %MessageID% and check if the file is created with such a name. If it isn't, please try %datetime% macro as well.
2) Put %SourceFileName% macro back and assign the "ReceivedFileName" property of the message context dynamically (from within the orchestration):
MyOutMessage(FILE.ReceivedFileName) = "test";
and check if the "test" file is created.
#8903
Posted: 02/13/2009 10:54:05
by John Eisbrener (Basic support level)
Joined: 03/07/2008
Posts: 4

Thanks Innokentiy!

That was the key. I switched it over to use %MessageID% and it went through without an issue, so you were correct in that it was something I must be doing in my project. I actually populate the ReceivedFileName property in a custom pipeline component (based on [URL=http://blogs.msdn.com/richardbpi/archive/2006/07/05/656948.aspx]http://blogs.msdn.com/richardbpi/archive/2006/07/05/656948.aspx[/URL]). To fix the problem, I had to switch the pipeline to the PassThruTransmit pipeline and run a file through. I then switched back to my custom pipeline and it picked up the custom mask again. I would not have thought that would have been the fix without your suggestion. Thanks!

John
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

Topic viewed 6120 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!