Hi Angelika,
Can you please let me know why you are validating whether key exists for DynamicConfiguration or not in IF condition?
AFAIK, when we go for dynamicconfiguration mechanism, normally we don't put conditions for validation unless and until if it requires.
Can you just use the below code and check the outcome.
DynamicConfiguration dc = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey dck = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File",dynConfKey);
dc.put(dck,dynConfValue);
return dynConfValue;
Please let me know if this doesn't cover your requirement.
Regards
Vishnu