cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicating Subtrees not working 7.31

Former Member
0 Kudos

Dear All,

I have a graphical mapping issue regarding duplicating subtrees.

When I duplicated the subtree of the target node  the target node is not created for the duplicated subtree but just for the original node. Also i noticed in the subtree the occurrence is missing.

Please advise if anyone else is facing the same issue with duplicating subtrees. The graphical mapping works well in our pi 7.0 version.

Thanks,

Teresa

Below is brief description of the issue

src node A ---- splitbyvalue --- target node X

src node A --- splitbyvalue  -- target node X(1) (Subtree node)

During  testing it just creates target node X and its subnodes but does not create target node X1 and the subnodes

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Teresa

Occurance will not be there when you do a duplicate subtree. did you try to see display queue on the nodes?

Regards

Osman

Former Member
0 Kudos

Hi Osman,

I did see the display queue and everything looks good on both the original node and subtree. the output values are  <null>

                                [123]

                                [123]

Former Member
0 Kudos

Also the occurance of source node and target node is [0..1]

src node A[0:1] ---- splitbyvalue --- target node X [0:1]

src node A [0:1] --- splitbyvalue  -- target node X(1) (Subtree node) [0:1]

Former Member
0 Kudos

Hi Teresa

I am confused about your structures and mapping.

Can you share the source/target structure and the screenshot  mapping for that node.

Are you using create if in that duplicate subtree mapping? Check this blog once.

Regards

Osman

Former Member
0 Kudos

Hello Teresa,

As suggested by Osman, do share your structures and mapping. It could be the case you may not require SplitbyValue at all.

Former Member
0 Kudos

Here is the mapping snapshots from PI 7.31 and PI 7.0. I am mapping the source node  File Type to target nodes DT_Header and File Type. It works well in 7.0 but in 7.31 it does not dubplicate subtree. I created this example .

azharshaikh
Active Contributor
0 Kudos

Hi Teresa,

Please change the Occurrence for the Target Data Type - DT_Header

as 0...Unbounded...

instead of 1..1

Regards,

Azhar

Former Member
0 Kudos

I have done that but did not work. It works fine in 7.0 but not in 7.31

Thanks,

Teresa

former_member184720
Active Contributor
Former Member
0 Kudos

We did take a look at that note. We are already on 7.31 SP 12

former_member184720
Active Contributor
0 Kudos

I understand that but the behavior has been changes from 7.0. So you might need to change the occurrence of the node to 0..unbounded.

azharshaikh
Active Contributor
0 Kudos

Hi,

Its working fine for me...pls check the attached screenshot for reference....

Please re-ckh ur DT.

Regards,

Azhar

Former Member
0 Kudos

Hareesh,

What could be different between 7.0 and 7.31 . They are similar mappings. Please refer to my earlier post with screenshots.

Thanks,

Teresa

former_member184720
Active Contributor
0 Kudos

It's not an issue with your mapping, the way the duplicate sub tree behaves has been changed.

If i understand the note correctly,You need to change the occurrence to 0..unbounded if you want to repeat your target structure multiple times.

Former Member
0 Kudos

The problem I have is with an external definition its an EDI 834 IDoc where the occurrence of the node is just 0..1.

If i have to change it to 0 .. unbounded then I would have to export the xsd and make changes to that node Correct ?

former_member184720
Active Contributor
0 Kudos

Yes. You need to modify and re import as external definition.

Former Member
0 Kudos

Thank you. I will change the xsd and let you know.

Answers (0)