cancel
Showing results for 
Search instead for 
Did you mean: 

BPM - Bundle 2 Files to 1 - Mapping error.

Former Member
0 Kudos

I'm using BPM to bundle 2 messages into 1. The two Data Types for the Abstract MT are completly diferent. I got the BPM to work but my final Message are in different order. IF I check each xml before the transformation they are both in perfect order. The sequence is changed only for the Message2.

How can assure the same order of the lines as they are in the inbound message?

Message1

RecordSet Structure: Header,1,Line,*,Footer,1

RecordSet Sequence: Ascending

Header.keyFieldValue 0

Line.keyFieldValue 2

Footer.keyFieldValue 4

Message1 example:

0abc

2def

2ghi

2jkl

4mno

Message2

RecordSet Structure: Header,,Line1,,Line2,,Footer,,EOF,*

RecordSet Sequence: Variable

Header.keyFieldValue 11

Line1.keyFieldValue 22

Line2.keyFieldValue 23

Footer.keyFieldValue 33

EOF.keyFieldValue 88

Message2 example:

11ABC

22def

23iii

22ijk

23iii

33RTE

11VBN

22hjk

23iii

22yui

23iii

33QWE

88EOF

The target message DATA TYPE:

HeaderG (from Message2)

Line1G (from Message2)

Line2G (from Message2)

FooterG (from Message2)

EOFG (from Message2)

HeaderD (from Message1)

LineD (from Message1)

FooterD (from Message1)

Target Message example (HOW IT SHOULD BE):

11ABC

22def

23iii

22ijk

23iii

33RTE

11VBN

22hjk

23iii

22yui

23iii

33QWE

88EOF

0abc

2def

2ghi

2jkl

4mno

And the result I'm getting is:

11ABC

11VBN

22def

22ijk

22hjk

22yui

23iii

33RTE

33QWE

88EOF

0abc

2def

2ghi

2jkl

4mno

See how it sorts all the Header, Line1, Line2, Footer together in that order. AND IT is removing all the other Line2 '23' because the are the same.

I guess the error is in the Message Mapping I'm doing in the BPM, but I don't think there is any option to change the sequence, I might be wrong.

Sorry for my english, I've tried to make it clear.

Thanks in advance for any help.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

i do not think so there is any error in the mapping side , check the file content content conversion parameters at the reciever side as the sequencing of the output file depends on the content conversion parmeters .

Thanks

sudhir sharma