cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic configuration "null" value returned

Former Member
0 Kudos

Hi all,

I have reviewed the Michal blog and created a function to return the directory name, but it always returns a null value...

Here is the code:

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

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","DirectoryName");

String ourSourceDirName = conf.get(key);

return ourSourceDirName;

I can't find the error....

i will reward points....

Gerardo.

Accepted Solutions (1)

Accepted Solutions (1)

henrique_pinto
Active Contributor
0 Kudos

The correct Technical Name of this Key is "Directory", not "DirectoryName".

Regards,

Henrique.

Former Member
0 Kudos

Thnx guys, now it works.... the error was the "DirectoryName" instead of "Directory"....

Regards,

Gerardo.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Please check the Adapter setting also and need addtional parameter where it return the value like

DCJMSReplyTo

DCJMSTimestamp

agasthuri_doss
Active Contributor
0 Kudos

Hi

Check this demo program

TEST_FRONTEND_SERVICES

Regards

Agasthuri Doss