cancel
Showing results for 
Search instead for 
Did you mean: 

PI 7.1: Problem while saving the Map after creating a UDF

arkesh_sharma
Active Participant
0 Kudos

Hi Experts,

I created a UDF for dynamic file configuration where it will fetch the file name during runtime and send it to target IDoc field. There is no input to the UDF as it just fetches the file name dynamically. I use the UDF and map it to target IDoc field but I get the below mentioned error:

"the length 0 of the array 'sortedFunctionKeys' is not equal to the number 1 of functions."

The Java Code that I am using is a standard java code which is mentioned below:

try{

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

// Creating a DynamicConfiguraionKey object

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

// Accessing the Filename

return (""+conf.get(KEY_FILENAME));

}

catch (Exception e)

{

          return "No filename";

}

I am unable to understand the cause of this error and I need to get rid of it so that my mapping works fine.

Please guide me in this regard.

Thanks,

Arkesh

Accepted Solutions (1)

Accepted Solutions (1)

former_member184681
Active Contributor
0 Kudos

Hi,

Identical problem has been solved here: http://scn.sap.com/thread/1130431

Regards,
Greg

arkesh_sharma
Active Participant
0 Kudos

Many Thanks Greg !

This solves in Problem.

Answers (0)