cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping error

Former Member
0 Kudos

HI

I am working on a Proxy to SOAP Scenario in PI 7.1

I have Commercial name on the target side, and which is mapped as

First nameOrg: Concat : SecondName : ThirdName : Fourth Name

But I am not receiving an value in the payload for the second, third & Fourth name because the table contains only first name value and from the Proxy.

When the mapping program gets execute it gives the error as specified below

How Can I assign the default values to get rid the following error, If i do not receive anything as part of the payload from the Proxy , I tried MapwithDefault and it did not work

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Request Message Mapping

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>Application</SAP:Category>

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

<SAP:P1>com/sap/xi/tf/_MM_ECC_Claimsinfo_to_ISO_</SAP:P1>

<SAP:P2>com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti</SAP:P2>

<SAP:P3>on: Cannot create target element /ClaimInvestigati</SAP:P3>

<SAP:P4>onAddRq/ClaimsParty[2]/GeneralPartyInfo/NameInfo/~</SAP:P4>

<SAP:AdditionalText />

<SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_ECC_Claimsinfo_to_ISO_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ClaimInvestigationAddRq/ClaimsParty[2]/GeneralPartyInfo/NameInfo/~</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

PR

Former Member
0 Kudos

Hi,

I think you are getting error while trying to create NameInfo, not with Commercialname.

Check the mapping to that node.

Once test mapping with example in mapping editor.

Regards,

Ravi.

former_member581827
Participant
0 Kudos

Hi,

Use if Exists for second name,third name and fourth name then use "IF" Bollean function if it exists pass second name for concatenate function else pass constant. similar for third and fourth name as well.

Regards,

Chandra.

justin_santhanam
Active Contributor
0 Kudos

PR,

The map with default must work. What you are doing in the below step, can you plz explain?

First nameOrg: Concat : SecondName : ThirdName : Fourth Name

Thanks,

raj.

Former Member
0 Kudos

FirstName Concat -


>SecondLine:MapwithDefault:ConcatThirdLine:MapwithDefault:Concat--


>Fourthline:MapwithDefault--


>Commercialname

FirstName node is coming into PI and second name, THird Name , Fourth Name nodes are not coming into PI because the Values do not exists on the ECC side,

I hope if the node does not exists I have to use CREATEIF and EXISTS (NodeFunctions),

Can anyone let me know how to do it in Graphical mapping this

Thanks

PR

Former Member
0 Kudos

Hi,

In your case MapWithDefault will work.

The error looks as ur Name in the second segment is not created.

Take a sample xml and test in ur message mapping.

Regards,

Rajesh

Former Member
0 Kudos

Hi,

I guess ur node has empty value...compare those node with empty constant and if it is true map with constant else pass the same value..try this for one node and test it and if it works apply same thing to other nodes.

Regards,

Manisha

markangelo_dihiansan
Active Contributor
0 Kudos

Hi,

FirstName Concat -


>SecondLine:MapwithDefault:ConcatThirdLine:MapwithDefault:Concat--


>Fourthline:MapwithDefault--


>Commercialname

You have not used the node function: splitByValue before the end of your mapping. That is why you are getting the error.

Hope this helps,

Former Member
0 Kudos

Hi,

can you give sample source and target structure with sample data?

Regards,

Prakasu.M