Hello,
I am sending a file to an SFTP location and the GUID is sent rather than the actual file name.
A file is dropped on our server and then Neuron picks it up and sends it to the SFTP site which works ok. I see the GUID on the SFTP site. I try to set the FTP Filename property, but does not work.
thanks.
// Save the body in text form
context.Data.SetProperty("Aetna","InputDoc",context.Data.Text);
//***************************************************************************************
context.Properties.Add("OriginalData", context.Data.InternalBytes);
context.Instance.TraceInformation("Save original data");
//***************************************************************************************
string
sourceFileName = context.Data.GetProperty("file_in", "Name");
string
sourceFileNameType = context.Data.GetProperty("file_in", "Type");
string
ftpFileName = context.Data.GetProperty("file_in", "Filename");
context.Instance.TraceInformation("sourceFileName = " + sourceFileName);
context.Instance.TraceInformation("sourceFileNameType = " + sourceFileNameType);
//context.Data.SetProperty("file_out", "Name", sourceFileName);
context.Data.SetProperty("file_out", "Name",sourceFileName );
context.Data.SetProperty("file_out", "Type", sourceFileNameType);
context.Data.SetProperty("ftp", "Filename", ftpFileName);
Tags:
Replies are closed for this discussion.
Hello Carlos,
The context property prefix for the sftp adapter is “sftp”, not “ftp”. Try that. Also make sure that Enable Metadata checkbox is checked on the adapter endpoint
Thank you Marty, Totally missed that one. It works great.
Neuron ESB Product Support Forums and Communities
© 2024 Created by Neuron Admin. Powered by