cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate Subtree in CIDX messages

Former Member
0 Kudos

Hi,

I am mapping an IDoc structure to a CIDX message which has been imported into XI through External Definitions. In my requirement, I need multiple nodes of type Referenceinformation which has to be mapped with IDoc structure with different conditions. So, I have used duplicate the sub tree and had two referenceinformation nodes and later I have mapped.

When I am saving the map, it is throwing an error as described below and deleting the created sub tree.

<i>The source or target structure has been changed or could not be found in the Integration Repository. The mapping definition contains elements or attributes that do not exist in the changed structure. The relevant entries will be deleted

Target structure has no such path:

<b>/ns0:LoadTenderMotor/ns0:LoadTenderMotorBody/ns0:LoadTenderMotorDetails/ns0:LoadTenderMotorProductLineItem/ns0:ReferenceInformation[1]/@ReferenceType.</b> Skipping mapping</i>

I want to retain the duplicated sub tree and use it for mapping. Any help is appreciated.

Thanks & Regards,

Suraj Kumar.

Accepted Solutions (1)

Accepted Solutions (1)

former_member214364
Active Contributor
0 Kudos

Hi Mr.Suraj,

What is the occurrence of ReferenceInformation node in source message.

you want to map each occurrence of ReferenceInformation to different nodes in IDOC based on condition or to different IDOCs?

Could you please clarify these,if possible just send us source and target structures.

Cheers,

Jag

Former Member
0 Kudos

Hi Venu and Jagdish,

Thanks for your reply.

Actually I am using ReferenceInformation (In the target structure) for two purposes as listed below:

1. Map Purchase Order Number

2. Map Batch Lot Number

Mapping is done using different nodes of IDoc elements(in the source structure) and both exists simultaneously.

Please let me know if you require more information on this.

Thanks & Regards,

Suraj Kumar

Former Member
0 Kudos

Hi Suraj,

the referenceinformation node can occur multiple times so your mapping should work fine, however the error it gives is about the attribute you want to map. To do that first of all the node itself needs to be created by a mapping, only then if the node exists, the attribute can be set.

Did you check that the node referenceinformation is created by a mapping i.e. it is green not gray? If you duplicate subtrees and save the mapping all subtrees which are still gray will not be saved and all mappings within the subtree will be discarded.

Regards

Christine

Former Member
0 Kudos

Hi Christine Geier,

Thanks for your suggestions, they helped in complete the mapping as per the requirement.

Regards,

Suraj Kumar

Answers (2)

Answers (2)

former_member214364
Active Contributor
0 Kudos

Hi Mr.Suraj,

if ReferenceInformation node occurrs more than once in target message,you dont have to duplicate subtree.I guess you shouldnt duplicate the subtree in mapping as do in testing tab.

You just need to use node functions in mapping purchase order number and lot number to ReferenceInformation node.

Cheers,

Jag

Former Member
0 Kudos

Hi,

Why didn't you try with a single mapping to matach all your condition.

If condition1 ...then map source to target or

If condition2 ...then map source to target .

After adding the dupluicate structure and mapping did you tested your mapping..

Regards,

Venu.