Biztalk Mapping

Hi Guys,

 

Hope everyone is doing good.

have a question here...I am mapping the flatfile(CSV) to XML. my flat file looks below

transid transname custname transcode, transamount

1,trans1,transname1,custname1,A,10.00

2,trans2,transname2,custname2,B,20.00

2,trans2,transname2,custname2,C,30.00

2,trans2,transname2,custname2,D,40.00

 

If transid is same, have to repeat only transcode and transamount only like below.   So it means,if the transid is same for three rows, transid, transname, custname should come only once and transcode and transamount should be repeating. Please help me in this.

<transactions>

       <transaction>

                    <1>

                   <trans1>

                   <transname1>

                    <custname1>

                              <transactiondetails>

                                      <A>

                                      <10.00>

                              <transactiondetails>

            <transaction>

            <transaction>

                     <2>

                      <transname2>

                      <custname2>

                                 <transactiondetails>

                                        <B>

                                        <20.00>

                                </transactiondetails>

                                <transactiondetails>

                                        <c>

                                        <30.00>

                                 </transctiondetails>

                                 <transactiondetails>

                                          <c>

                                           <40.00>

                                  <transactiondetails>

                 <transaction>

<transactions>

 

Thanks

jith

July 11th, 2014 6:53pm

What you wish to achieve is called "Muenchian Grouping" and done through a custom XSLT in a MAP. Refer Sandro's article http://code.msdn.microsoft.com/windowsdesktop/Muenchian-Grouping-and-790347d2

So create a FFDASM schema to parse your file into XML and then apply the muenchian grouping through a map on the receive port to get the final results.

Regards.

Free Windows Admin Tool Kit Click here and download it now
July 12th, 2014 3:14am

What you wish to achieve is called "Muenchian Grouping" and done through a custom XSLT in a MAP. Refer Sandro's article http://code.msdn.microsoft.com/windowsdesktop/Muenchian-Grouping-and-790347d2

So create a FFDASM schema to parse your file into XML and then apply the muenchian grouping through a map on the receive port to get the final results.

Regards.

July 12th, 2014 10:04am

What you wish to achieve is called "Muenchian Grouping" and done through a custom XSLT in a MAP. Refer Sandro's article http://code.msdn.microsoft.com/windowsdesktop/Muenchian-Grouping-and-790347d2

So create a FFDASM schema to parse your file into XML and then apply the muenchian grouping through a map on the receive port to get the final results.

Regards.

Free Windows Admin Tool Kit Click here and download it now
July 12th, 2014 10:04am

What you wish to achieve is called "Muenchian Grouping" and done through a custom XSLT in a MAP. Refer Sandro's article http://code.msdn.microsoft.com/windowsdesktop/Muenchian-Grouping-and-790347d2

So create a FFDASM schema to parse your file into XML and then apply the muenchian grouping through a map on the receive port to get the final results.

Regards.

July 12th, 2014 10:04am

What you wish to achieve is called "Muenchian Grouping" and done through a custom XSLT in a MAP. Refer Sandro's article http://code.msdn.microsoft.com/windowsdesktop/Muenchian-Grouping-and-790347d2

So create a FFDASM schema to parse your file into XML and then apply the muenchian grouping through a map on the receive port to get the final results.

Regards.

Free Windows Admin Tool Kit Click here and download it now
July 12th, 2014 10:04am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics