Biztalk Mapping issue

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Biztalk Mapping issue

Viewing 1 reply thread
  • Author
    Posts
    • #23839

      Hi,

      I am having a BizTalk HL7 schema . I am mapping my source schema to this schema. But after mapping I am getting the PRD fields repeated twice. 

      Please provide me some inputs if anyone of  you have faced this issue before and solved .. 

      Here are the Min/Max occurs properties for the PRD and sequence(It’s a direct mapping one to one and PRD segment is under sequence tag)

       Sequence:

      Min Occurs:0

      Max Occurs: Unbounded

       PRD

      Min Occurs:1

      Max Occurs:1                                                                                                                                                                                                                

       

      Input XML before mapping:

       <PRD_ProviderData>

            <PRD_1_ProviderRole>

               <CE_0_Identifier>RP</CE_0_Identifier>

            </PRD_1_ProviderRole>  

           <PRD_7_ProviderIdentifiers>

              <PLN_0_IdNumber>JPERICLES</PLN_0_IdNumber>

            </PRD_7_ProviderIdentifiers>

       </PRD_ProviderData>

        <PRD_ProviderData>

            <PRD_1_ProviderRole>

              <CE_0_Identifier>RP</CE_0_Identifier>

           </PRD_1_ProviderRole>  

           <PRD_7_ProviderIdentifiers>

             <PLN_0_IdNumber>JPERICLES</PLN_0_IdNumber>

           </PRD_7_ProviderIdentifiers>

       </PRD_ProviderData>

       

      OutPut XML after mapping: 

                <PRD_ProviderData>

                  <PRD_1_ProviderRole>

                  <CE_0_Identifier>RP</CE_0_Identifier>

                </PRD_1_ProviderRole>

               <PRD_1_ProviderRole>

             <CE_0_Identifier>PP</CE_0_Identifier>

          </PRD_1_ProviderRole>

             <PRD_7_ProviderIdentifiers>

            <PLN_0_IdNumber>JPERICLES</PLN_0_IdNumber>

           </PRD_7_ProviderIdentifiers>

          <PRD_7_ProviderIdentifiers>

             <PLN_0_IdNumber>JPERICLES</PLN_0_IdNumber>

          </PRD_7_ProviderIdentifiers>

       </PRD_ProviderData>

       

      Thanks in advance,

      Sinto

    • #23847

      Sinto,

      In the Output Map I see CE_O_Idetifier value as “PP”…..I think its a typo error..it will be “RP”.

      Let me know what Outut do you expect. Its nothing to do with Schema properties….its an issue with the Map so something has to fixed in your map to acheive it..

      • #23872

        Have your tried looking into the the xslt-code for the map?

        This is usually really helpful when debugging errors like this.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.