BizTalk HIPAA EDI multi-input map doesn't generate node

I have a BizTalk HIPAA solution that needs to merge an 837 claim schema with some data from our system. We're doing this with a map that has two input schemas, as shown here:
(I've greatly simplified the schemas for testing purposes). 
In the first input message, if IsRepriced = 1, I want to use our values for HCP_01, HCP_02, and HCP_03. If it's 0, use the values in the second message (the original 837 claim). The functoids shown work fine as long as the original 837 claim actually contains
the HCP node (segment), but if it's not there I'm unable to generate one from our data.
Replacing these with a scripting functoid using some if-then-else C# code has the same effect.
So, is there a way to do this using functoids, or do I need to resort to XSLT? Unfortunately I know next to nothing about XSLT, so that's going to be difficult...
Thanks!

I really, really hope someone else has a super-secret technique to solve this but....
I frequently hit a brick wall with with the if missing-else paradign in a Map.  Sometimes Looping Functioids do the trick, sometimes not.  Sometimes a carefully placed Logical Existence -> Not works, sometimes no.
It's mostly because if one of the source Records is minOccurs=0, the Mapper will wrap everything in a for-each.  Since the Element doesn't exist, the code never gets executed.
I'd say >50%, I resort to inline Xslt because at some point, it becomes cleaner than a page of mostly duplicate Functoid groups.
However, I'd bet the Xslt won't turn out as difficult a proposition as you think.  The Mapper can do most of the work for you.  You can build the bulk of the Map using Functoids, then just copy the resulting Xslt.  You will have to modify
for some things, like namespaces.

Similar Messages

  • Error in Multi Message Mapping

    Hi,
    I am getting the following error in my multi message mapping scenario where I am trying to create 2 different output files from a single input file based on some condition. I tested the message mapping by using a test file and it works fine, but when I use the same file and test it end to end the scenario is failing with the following error.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--
    Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">GENERIC</SAP:Code>
      <SAP:P1>Split mapping created no messages</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Split mapping created no messages</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Is there something wrong with my configuration?
    The trace has the following content.
    Trace level="1" type="T">*** START APPLICATION TRACE ***</Trace>
      <Trace level="3" type="T">Document start</Trace>
      <Trace level="3" type="T">Start tag [ns0:Messages]</Trace>
      <Trace level="3" type="T">Add raw attribute [ xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"]</Trace>
      <Trace level="3" type="T">Start tag [ns0:Message1]</Trace>
      <Trace level="3" type="T">Close tag [ns0:Message1]</Trace>
      <Trace level="3" type="T">Start tag [ns0:Message2]</Trace>
      <Trace level="3" type="T">Close tag [ns0:Message2]</Trace>
      <Trace level="3" type="T">Close tag [ns0:Messages]</Trace>
      <Trace level="3" type="T">Document end</Trace>
      <Trace level="1" type="T">*** END APPLICATION TRACE ***</Trace>
      <Trace level="2" type="T">Java mapping com/sap/xi/tf/_Employee1_MT_To_Employee1_MT_AND_Employee2_MT_MM_ completed. (executeStep() of com.sap.xi.tf._Employee1_MT_To_Employee1_MT_AND_Employee2_MT_MM_).</Trace>
      <Trace level="3" type="T">Message Type 1 Number of Messages 0</Trace>
      <Trace level="3" type="T">Message Type 2 Number of Messages 0</Trace>
      <Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>
      </Trace>
      <Trace level="3" type="System_Error">Error exception return from pipeline processing!</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    - <!--
      -->
      <Trace level="3" type="T">Persisting message Status = 014</Trace>
      <Trace level="3" type="T">Message version 001</Trace>
      <Trace level="3" type="T">Pipeline CENTRAL</Trace>
      </SAP:Trace>

    Hi,
    The scenario I am trying to test is a multi mapping scenario where I am trying to split one source message and create two target messages by using two different receiver interfaces, one for each message.
    I am on PI 7.1 and when I test message mapping and operation mapping using the payload from SXMB_MONI, it is successful. Whereas when I test the scenario end to end I am getting the following error messages:
    Operation Mapping
    Employee_Out_SI_To_Employee1_In_SI_AND_Employee2_In_SI_OM
    Name
    Employee_Out_SI_To_Employee1_In_SI_AND_Employee2_In_SI_OM
    Namespace
    http://accenture.com/1:N_multi-mapping
    Runtime error
    Split mapping created no messages
    Start tag ns0:Messages Add raw attribute xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge" Start tag ns0:Message1 Close tag ns0:Message1 Start tag ns0:Message2 Close tag ns0:Message2 Close tag ns0:Messages
    Could someone please help
    Cheers,
    S

  • Query Regarding Multi-Message Mapping in Interface Mapping.

    Hi All,
    I've a query that can we use Multi-Message Mapping in Interface Mapping if:
    One mapping structure is simple one-2-one mapping and
    Second mapping is calling a stored procedure.
    Please give me some links if the answer is YES.
    Thanks in Advance.
    Regards,
    Sreedhar.
    Edited by: Sreedhar Av on Oct 12, 2009 1:26 PM

    Hi,
    Your question not clear buddy..what i understood is..
    If you want execute multiple message mappings in Interface mapping we can ,just add two mapping programs in interface mapping.first mapping program output is input to the second mapping program.
    If first mapping program is very simple,if you want to execute stored procedure in second level mapping write used defned fun ction to conect to data base or create JDMC receiver communication channel ,cal the communictaion channel in udf.write stored procedure in UDF.
    SEARCH for more info in sdn how to perform DBLOOKUPS.
    regards,
    Raj

  • V-Drum Input Mapping

    Hi I'm recording MIDI drums into Logic 10 from a set of Alesis DM Lite MIDI drum pads. To enable the hi-hat and the hi-hat controller pedal to work correctly with Logic's kits, every time I load-up a kit or change a kit I have to go into Drum Kit Designer and change the Input Mapping from GM to V-Drum. Ok so it's not the end of the world having to do this, but is there any way in Logic of making V-Drum the default setting instead of GM, so that I don't have to open up Drum Designer every time and change the Input Mapping?
    Thanks
    PS I'm using Logic 10.1.0

    Thanks but no it doesn't save it, sadly. Well it sort of does I guess, but every time I change the drum kit patch, let's say from Detroit Garage to Retro Rock, it changes back to GM. Let's face it you don't do that very often per song so and it's not worth making a massive drama about (some people's reactions when they find an app doesn't do exactly what they want is like the Devil's threatened to take their first five offspring); it's just an annoyance when trying out the kits. Always have to go into Drum Kit Designer every time and change the Input Mapping back to V-Drum. Sadly there aren't any settings on the DM Lite to adjust its output to suit. I was hoping there'd be something in the MIDI tab of the Logic Preferences screen, but there isn't. Not even when all the Advanced Controls checkboxes are checked.

  • Could Mapping Template  be used in Multi Message mapping

    I had a 1:1 message mapping: MM_A
    but later i foudd that the mapping should be 1:n
    Multi message mapping
    so firstly i created mapping template of MM_A
    but the template doesn't work when i am doing the multi mapping.
    Could Mapping Template  be used in Multi Message mapping?
    Thank you very much

    Hi leo,
    <i>
    Could Mapping Template be used in Multi Message mapping?</i>
    Yes it can be used......
    Regards,
    Abhy

  • IPhone 2.0 - Maps doesn't work and Contacts is sluggish

    Updated to 2.0 and installed the new MobileMe Update.
    Maps doesn't show my position accurately. It shows I am 6 miles to the North East from my actual position and also can't find any locations when entered into Search or when an address is selected via the field in Contacts.
    Also, since going over to Push Mail, Calendars and Contacts (I deleted my itools account and then logged into the MobileMe account), whenever I open up Contacts, it won't do anything for 10 seconds and then starts working normally.
    Small note: I don't seem to be getting the E in the top left hand corner anymore. I get a square with a dot in it. What does this mean?
    Any thoughts or suggestions?
    Cheers

    The 2.0 map now claims I'm 6-7 miles SW of where I really am. I'm glad I'm not alone with the map bug, but I don't have the other problems you are describing.

  • Updated to IOS6, maps doesn't work

    So I updates my software to ios6, was really looking forward to it as iv waited months like so may others and its terrible.
    My maps doesn't work at all, the location is completely wrong and when I switch to hybrid or satellite view it just goes into black grids and doesn't come on, when I do get a picture in an area miles away from me it's black and white, I understand it only came out today and there will be glitches but the new maps is one of the main things in the update so I expected that to be up to scratch, also my keypad is forever freezing since iv updated.
    In all honesty I'm actually really disappointed in the update and if I'd have know I'd have stuck with ios5, the colour scheme was a lot better in the old version to, just wondering if anyone else has came across the map problem?

    im having the same trouble funny how they never mentioned this before we updated i wasnt expecting the 3d flyover view to work on iphone 4 because of the lack of appropiate processing power but i wasnt expecting to lose the hybrid or satellite view all im left with is the basic mapping view
    cmon apple fix it or at least let us have google maps back as an option

  • Multi level mapping in PI. eg:  A = B= C w/o BPM

    Hi All,
    I want to do multi level mapping withou BPM i.e Structure A to structure B mapping and Structure B to Structure C i.e
    A=>B=> C. Let me know proc in PI 7.0/7.1 without BPM. Is this possible through Interface mapping or Interface determination ?
    Thanks,
    Jogula Ramesh

    Hi Ramesh,
    Finally you want Strcuture C as the out from PI System,?? if Yes then develop two mappings(A>B,B>C)and add it in Interface mapping,we can add any number of mappings in Interface mappings.
    The source message to Interface mapping is A and receiver would be C.
    This is will work.
    Regards,
    Raj

  • Multi-Message Mapping based on value of field - (Without BPM)

    Hi.
    I am having a bit of difficulty with multi-message mapping without BPM. I want to map to message1 & message2 based on a field in the rows of the source structure.
    e.g.
    row1-Source-Field1=> (if equal 0)   => <b>Message1</b>-field1.
    row2-Source-Field1=> (if equal 10) => <b>Message2</b>-field1.
    To attempt to do this, I use the conditions in the graphical mapper:
    if row-Source-Field1 = 0   => Map "Row to MessageType1".
    if row-Source-Field1 = 10 => Map "Row to MessageType2".
    However when I test this the mapping only seems to consider the first row value in row-Source-Field1 and ignores the fact that row two has a value of 10. I think this has something to do with contexts etc..
    I would appreciate any help please.
    Regards.
    Mick.

    in that case try this out
    row1-source-field1 (remove context) -- UDF -splitbyvalue-target
    UDF1(for message 1)
    for(int i=0;i<field1.length;i++)
    if(field1<i>.equals("0"))
    result.addValue(<field to be mapped><i>);
    UDF2(for message 2)
    for(int i=0;i<field1.length;i++)
    if(field1<i>.equals("10"))
    result.addValue(<field to be mapped><i>);

  • Map doesn't display in PS Elements 12 organizer

    I'm trying to add places to photos, and the map doesn't display in the organizer. It's just a blank white page. I can't add any locations. All other connectivity is fine. Program just auto updated today.
    Any help is appreciated.

    No, they've moved to the bottom of the Enhance menu, for one of those mysterious adobe reasons.

  • Posting key 31 is ignored when processing Batch Input Map

    Hi,
    I have a problem when uploading an ascii file via RFBIBL00 to generate a batch input map. The map holds vendor and account bookings. The file looks like this:
    0MapName     001sap_user            X/
    1FB01                12062007YR0001120620076 EUR  ...
    2BBSEG                         31/         //            3381,00/...
    2BBSEG                         40/         //            1111,00/...
    The file uploads fine, the batch input map is created. Then I start to process the map. Transaction FB01 is filled with the necessary information. But instead of the starting with posting key 31 it starts with key 40. Field lengst, size of the 31 line is identical to the line with posting key 40 and 50 (expect for some fields like cost center, tax code,... which are not filled in the 31 line). For me it looks like that the line with the posting key 31 is totally ignored. oO
    What could be the problem? Where to check?
    Thank you for your help.
    best regards
    Hasan

    problem solved,
    thank you anyway

  • Is Multi Mapping will work with  node function useAsMany with SP10 ?

    Hi friends,
                    I  am  working some sample Multi Mapping scenario . My XI 3.0   SP is  10 .
                    I am getting the following error , while i am testing the Mapping with <b>useAsMany Node function </b> it  is giving the Following Error
    <b>
      Cannot produce target element /ns0:Messages/ns0:Message1/ns1:MT_MSG_IB[2]/root/Element1. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd</b>
                     Will Multi Mapping work with this SP 10 ?
    Best Regards.,
    V.Rangarajan

    Hi ,
           I have just taken the Model as the following link
            /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
            I have designed the Objects  as same as which is specified  in that link  . But my Service pack is 10.
            It is showing the above specified error
    Regards.,
    V.Rangarajan

  • Google maps doesn't display

    hi,
    just a little problem with my brand new macbook: google maps doesn't work. the maps never appear on the screen.
    thanks for help.

    I had this issue for SO LONG. Turns out that it was a router issue; SPI Firewall specifically.
    I have a Netgear router, and had to disable SPI Firewall in order for Google Maps to work.
    The issue was that the maps would load, but the tiles would fail to redraw as I zoomed in or out. Safari or Firefox or Camino had same issue, and all are fixed now.
    Now I can zoom in and out, and the Google Maps pages redraw instantly!
    Look up SPI Firewall to learn more. I'm advised that if I have the Mac Firewall set up, then the router Firewall can be safely disabled. (I have only a small network of three Macs at home here.)
    Message was edited by: Kenneth Feldman

  • Error mapping doesn't work for me. Plz Help!

    I have created a .war using deploytool and added "404, /WEB-INF/NoSuchPage.html" in the error mapping area in file refs on the right tabbed panes.
    When I deploy the war and test it, the error mapping doesn't work. The server still display the default 404 page to me.
    What is the problem?
    I do have checked the descriptor. It contains:
    <error-page>
    ������<error-code>404</error-code>
    ������<location>/WEB-INF/NoSuchPage.html</location>
    </error-page>
    Any help will be greatly appreciated!

    <?xml version="1.0" encoding="UTF-8" ?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>WebApp</display-name>
    - <welcome-file-list>
    <welcome-file>login.html</welcome-file>
    </welcome-file-list>
    - <error-page>
    <error-code>404</error-code>
    <location>/Error.html</location>
    </error-page>
    <jsp-config />
    </web-app>
    This is a very simple war with no component and an error page is defined. But this doesn't work. When I type something like /loginnnn.htmllll, it doesn't give me the error page. That is my problem. Any idea???

  • Ovi maps doesn't accept my Nokia account user name...

    It was necessary to do an *#7370# reset on my phone, every things is fine now, except the point that I can't log on to Ovi from the maps application to get my maps favourites back to the phone.
    Maps doesn't accepts my user name anymore. I got an error massage "no special characters allowed", but I have dots in my user name.
    I don’t have any problems with logging on to other Ovi services either they are PC based nor from my mobile.
    Creating a new account doesn't bring me back my maps favourites, therefore it's no solution for my problem.
    I tried to install an older maps version, but have sis files for version 3.03 and 3.04 only and both versions doesn’t allow my to log in to Ovi.
    Does anybody has an idea what to do?
    Thanks for help in advance!

    farby wrote:
    Why don't you contact Nokia using the 'CONTACT US' tab at the top ??
    Have tried e-mailing support @ Ovi reply was "go to accounts>Nokia account>sign in" which is what I'd explained wasn't working. Called the Nokia help line & told to delete maps & reinstall which is what I'd tried previously, tried again but still doesn't work.
    Navigation actually works with data download but still doesn't log in to enable sync. I still suspect it's something to do with a setting in the active sync profile.
    So I'm waiting for 1. Ovi help to reply to second e-mail and 2. the call centre to reopen Monday

Maybe you are looking for