cancel
Showing results forΒ 
Search instead forΒ 
Did you mean:Β 

Error with getMessageID

yatanveersingh
Active Participant

HI Guys,

I am getting below error in a mapping ERP_COD_BusinessPartnerERPBulkReplicateRequest.

This is a HCI process to replicate business partner from SAP ERP

Error Details

com.sap.xi.mapping.camel.XiMappingException: com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception during processing target field mapping /ns0:BusinessPartnerERPBulkReplicateRequest/MessageHeader/ID. The root message is: Exception:[com.sap.aii.mappingtool.tf7.rt.BehaviorInvocationException: while trying to invoke the method java.lang.String.toUpperCase() of a null object loaded from local variable 'MessageID'] in class com.sap.xi.tf._ERP_COD_BusinessPartnerERPBulkReplicateRequest_ method getMessageID[com.sap.aii.mappingtool.tf7.rt.Context@6a42bf25] while trying to invoke the method java.lang.String.toUpperCase() of a null object loaded from local variable 'MessageID', cause: java.lang.NullPointerException: while trying to invoke the method java.lang.String.toUpperCase() of a null object loaded from local variable 'MessageID'

This is the HCI flow.

This is the mapping where it has issue as per the error message.

I even tried to test the mapping in HCI and it works there, however does not works in runtime. πŸ™‚

Can you guys help.

Thanks

Yatan

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member194481
Participant

Hi Yatanveer Singh,

Is the getMessageId a UDF in HCI , if yes then it should have atleast one input for it. it might be un used in your script logic.

Thanks and Regards,

Vijay.

vinaykumardigaveedi
Participant
0 Kudos

I have the same issue, Can you please let me know how this can be resolved

0 Kudos

I also have this issue. This java function is SAP standard content and I have no clue what's happening inside there. It's not possible to open it in the CPI mapping tool.

My use case: I edit a standard SAP IFlow and I simulate a payload via content modifier for testing purpose. The payload is from a productive scenario. One step after the SAP_ApplicationID is set (SAP standard), but the mapping step fails. So I'm wondering why this java function doesn't work properly in this case.

Thanks in advance
Frank

gtedaldi1
Explorer
0 Kudos

I have the same issue, how did you solve it?

Thanks

apu_das2
Active Contributor
0 Kudos

Hi Yatanveer,

You message mapping is using groovy script - getMessage ID. May be it is trying to fetch value from some local variable which is set in some of the earlier step in your iFlow. This local variable is not set properly, hence your groovy script is fetching some null value and trying to convert that to upper case which is irrelevant.

Check your groovy script - what value it is trying to fetch and where it is set and why it is not stored with any value.

Check steps Set Monitoring ID. May be local variable is getting set in this step.

Thanks,

Apu

yatanveersingh
Active Participant
0 Kudos

Its just for logging.