cancel
Showing results for 
Search instead for 
Did you mean: 

Error while creating an UDF in a PI 7.1 Mapping

Former Member
0 Kudos

Hi experts,

I'm having problems after creating an UDF in a Message mapping. I receive the error:

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

It seems like forgeting initializing something...

Regards

Gonzalo

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Upgrading my JDK to 1.6 in my PC almost solved the problem. Anyway, sometimes that happens again.

What I actually do:

1.-Creating my Message Mapping

2.-Saving it

3.-Developping my UDF

The problem occcurs when you create an UDF and just in that moment you don't save it. It will be a bug...

Hope that helps you

Regards

Gonzalo

Former Member
0 Kudos

Hi Gonzalo,

Faced a similar problem long back..

To avoid this error while creating UDFs, please create it after moving to functions tab & add your UDF into Function & Java Areas section.

After that, we can save & activate it with no pop ups for error message.

Thanks,

Anoop

Former Member
0 Kudos

Hi Anoop,

Thanks a lot. This has really solved my problem.

Thanks & Regards,

Karthick

Former Member
0 Kudos

Hi Anoop,

Thanks a lot. This has really solved my problem.

Thanks & Regards,

Karthick

Former Member
0 Kudos

Hi Anoop,

Thanks a lot. This has really solved my problem.

Thanks & Regards,

Karthick

Former Member
0 Kudos

Hi all,

I've got the same problem today and the reason of this error message is that you are using the same UDF in more Message Mapping, then PI doesn't like it and fail. When u change the name, only the name, using the same code, it runs.

Cheers.

Former Member
0 Kudos

Hi Gonzalo,

Has this problem been solved?

Please provide inputs here.

Thanks,

Kumar

Former Member
0 Kudos

The error occurs because my local java version

It works before upgrading to 1.6

Former Member
0 Kudos

Hello,

Same problem here... Is it really because of the local java version? WHich version should be used?

Thanks,

CHRIS

Former Member
0 Kudos

check the order of parameters you are passing in the UDF(graphical mapping). Looks like there is mismatch with the order.

Former Member
0 Kudos

I'm not using the function in the mapping yet, is just developped. The error occurs when I try to save or just changing between the different tabs in the mapping tool.

For example, if I add another UDF to my MM the message changes from 1 to 2:

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