Skip to Content
Feb 28, 2006 at 12:04 PM

Problem: The same filename from a sender to a receiver file adapter - SP14


Blog : /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

My Problem:

The thing works for me and i am able to get my input files name as my output file name. But one thing i noticed is that in my target message, the field where i have mapped the code it always returns the value "null" but finally when the file is created i get the required result.

My input file name is input.txt and i get the same name in my output file too.

In sxmb_moni if i check DynamicConfiguration link i see the following

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Response


-">" name="SourceFTPHost">" name="Directory">/input/test" name="SourceFileTimestamp">20060228T112200Z" name="FileType">bin" name="FileName">input.txt" name="SourceFileSize">770


But when i check my mapped field i see








- <Trailer>


<b><field2>null</field2> -> Null value instead of input.txt</b>



The code i have used to map the field2 of the trailer is the following ....

<i>DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("","FileType");

String valueOld = conf.get(key);

return valueOld; </i>

Any clues ?