cancel
Showing results for 
Search instead for 
Did you mean: 

Message mapping error in UDF of PI 7.31

banersu
Participant
0 Kudos


Hi All,

I have migrated a scenario in PI 7.31 from a old XI system.

In that scenarion,there was a UDF called duplicatefile check which basically declares an object of DuplicateFileValidation.and then by using the object it calls a method "validation " which is already declared in the class DuplicateFileValidation.

The udf duplicatefile check is like that:

String response = null;
AbstractTrace trace = container.getTrace();

DuplicateFileValidation  instance = new DuplicateFileValidation();

response  = instance.validation(service[0],communicationchannel[0] ,trace,container);

result.addValue(response);

I have already imported the DuplicateFileValidation as an imported archive in the fubction tab of message mapping

In older version It was working fine.but in 7.31 while activating the message mapping an Error comes:

Can anyone have any idea how to solve this:

Pls help me

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member192892
Active Contributor
0 Kudos

Have you referred the imported archive in the archives used tab of functions?

Regards

Varun

iaki_vila
Active Contributor
0 Kudos

HI Suparna,

From XI 3.0 and PI 7.0 to PI 7.1 and onwards the API has changed ans you can find some differences.

You are calling a method validation from the class instance, Are you sure that method is accessible?, have you imported the jar and it is compiled correctly?.

Try to use the NWDS to compile before to upload to PI.

Regards.

banersu
Participant
0 Kudos

@Inaki

I compiled the DuplicateFileValidation class in NWDS and it is working fine

After that I imported the Zip file

@

com.sap.aii.mapping.api.*
com.sap.aii.mapping.lookup.*

java.io.*

java.lang.reflect.*
java.util.*

com.abc.duplicatefile.*

com.sap.aii.mappingtool.tf7.rt.*

suman_saha
Contributor
0 Kudos

Hope there is no syntax error and no ; or } is missing.

banersu
Participant
0 Kudos

no syntax error

checked in NWDS

iaki_vila
Active Contributor
0 Kudos

Hi Suparna,


com.sap.aii.mapping.api.*
com.sap.aii.mapping.lookup.*

java.io.*

java.lang.reflect.*
java.util.*

com.abc.duplicatefile.*

com.sap.aii.mappingtool.tf7.rt.*

I suppose in  com.abc.duplicatefile.* you have DuplicateFileValidation. Have you imported the jar? Do you have the jar in the same namespace where the UDF has been developed?

Regards.

Former Member
0 Kudos

Hi,

Can you please send me a screenshot of your Function Tap in the Message Mapping. Also make sure that you copied the correct naming of parameters and context etc.

Regards,

Jannus Botha