Mapping issue with repeating segments

Hi,
Our system creates EDI messages and have a date part which looks like below:
<DTM>
<DTM01>
<DTM0101>2</DTM0101>
<DTM0102>201409241200</DTM0102>
<DTM0103>203</DTM0103>
</DTM01>
<DTM01>
<DTM0101>137</DTM0101>
<DTM0102>201409221200</DTM0102>
<DTM0103>203</DTM0103>
</DTM01>
</DTM>
So we have the DTM segment and under the DTM segment we have several DTM01 segments for every date.
Now we want to change it to show a DTM segment for every date, so it should be like below:
<DTM>
<DTM01>
<DTM0101>2</DTM0101>
<DTM0102>201409241200</DTM0102>
<DTM0103>203</DTM0103>
</DTM01>
</DTM>
<DTM>
<DTM01>
<DTM0101>137</DTM0101>
<DTM0102>201409221200</DTM0102>
<DTM0103>203</DTM0103>
</DTM01>
</DTM>
How can i achieve this in this mapping?

Hi Ronald,
Use Looping functiod to achieve this. Connect <DTM01> in your source schema with looping functiod and then connect <DTM> of you destination schema with Looping functiod. Basically you are telling the mapper to create an
instance of <DTM> for each <DTM01> record.
Please indicate "Mark as Answer" or "Mark as Helpful" if this post has answered the question
Regards,
Rahul Madaan
biztalkvillage.blogspot.com

Similar Messages

  • Graphical mapping issue with useOneAsMany if segment does not exist

    Hi all
    I have an issue with graphical mapping in an IDoc to file scenario. I need to have header level fields mapped to line item fields. Whether or not and how many source header segments of the same type exist depends on a qualifier (QUALF). This is generally working if I use the following graphical mapping:
    if QUALF = 001 then <source>  ->  removeContext  ->  useOneAsMany  ->  splitByValue  ->  <target>
    ... with setting QUALF, <source>, and the second input for the useOneAsMany to the highest possible context node.
    Nevertheless, if the segment with the qualifier 001 does not exist in the source then the mapping throws the error "Too few values in first queue in fuction useOneAsMany". Whatever I've tried, the mapping wants to execute the useOneAsMany statement anyway and I haven't found a way to omit this. Whether the target would be created with an empty value or not created at all would be secondary. Would eventually somebody have a solution to this problem?
    Thanks in advance,
    Daniel

    Daniel,
    try using mapWithDefault function before useAsmany
    if QUALF = 001 then <source> -> removeContext -> <b>MapwithDefault</b>->useOneAsMany -> splitByValue -> <target>
    I think it takes care even if the value occur in the contaxt or.
    Babu

  • Mapping Issue with UDF

    I am in the middle of doing a webservice call from within a UDF.
    The problem is that when I am declaring my message part of the definition is a url. So I am trying to declare a string like the following:
    String m = "<?xml version="1.0" encoding="UTF-8"?><msgType xmlns:ns0=http://www.webservice.com ......
    Now my problem is with the
    xmlns:ns0=http://www.webservice.com
    // is a comment in java so everything after this is being seen as a comment how do I solve this issue?
    I had the same issue with "
    "<?xml version="1.0" encoding="UTF-8"?>
    but I solved it using \ like the following:
    "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
    The problem is this is working for the //

    Hi Alex,
    I had a scenario like this in the past.
    In most cases you call Services for Lookups.
    In such a Case use the
    Com.sap.aii.mapping.lookup.api and use the accessor and the lookup services for the same.
    In such a case the Communication Channel can store the web addresses and XML,
    you just need to
    1. Create a Channel object  based on the channel
    2. Derive a accessor out of it
    3. Use the accessor to Bulid your payload
    4. parse your payload.
    [https://help.sap.com/javadocs/pi/SP3/xpi/index.html]
    let me know if this was helpful and do reward points
    regards,
    Abhishek

  • Mapping issue with context again

    I again need help with a mapping issue. I don’t know how to handle the contexts to get this working in the xi graphical mapping tool.  I have previously logged a question regarding this structure but the requirements have now changed. 
    I have a source document that has multiple delivery line items and for each delivery line item, there are multiple handling units. Each handling unit contains the line number of the delivery line item it belongs to. This structure has been simplified below.
    <b><u>Source Sample</u></b>
    <DOCUMENT>
    <DELIVERY_LINEITEM>
    <LINENUMBER>10</LINENUMBER>
    <MATERIAL>mat 1</MATERIAL>
    </DELIVERY_LINEITEM >
    <DELIVERY_LINEITEM >
    <LINENUMBER>20</LINENUMBER>
    <MATERIAL>mat 2</MATERIAL>
    </DELIVERY_LINEITEM >
    <HANDLING_UNITS>
    <HU_LABEL>123</HU_LABEL>
    <HU_ITEM>
    <LINENUMBER>10</LINENUMBER>
    </HU_ITEM>
    </HANDLING_UNITS>
    <HANDLING_UNITS>
    <HU_LABEL>456</HU_LABEL>
    <HU_ITEM>
    <LINENUMBER>10</LINENUMBER>
    </HU_ITEM>
    </HANDLING_UNITS>
    <HANDLING_UNITS>
    <HU_LABEL>789</HU_LABEL>
    <HU_ITEM>
    <LINENUMBER>20</LINENUMBER>
    </HU_ITEM>
    </HANDLING_UNITS>
    </DOCUMENT>
    <u><b>Source Structure</b></u>
    DOCUMENT 1..1
    DELIVERY_LINEITEM 1..unbounded
    LINENUMBER 1..1
    MATERIAL 1..1
    HANDLING_UNITS 1..unbounded
    HU_LABEL 1..1
    HU_ITEM 1..1
    LINENUMBER 1..1
    In the target structure, I need to output each handling unit along with the corresponding DELIVERY_LINEITEM material.  Target structure has been simplified below:
    <u><b>Target Sample</b></u>
    <DOCUMENT>
    <ROW>
    <PACKAGING>
    <HU_LABEL>123</HU_LABEL>
    </PACKAGING>
    <PACKAGING_ITEM>
    <LINENUMBER>10</LINENUMBER>
    <MATERIAL>mat 1</MATERIAL>
    </PACKAGING_ITEM>
    </ROW>
    <ROW>
    <PACKAGING>
    <HU_LABEL>456</HU_LABEL>
    </PACKAGING>
    <PACKAGING_ITEM>
    <LINENUMBER>10</LINENUMBER>
    <MATERIAL>mat 1</MATERIAL>
    </PACKAGING_ITEM>
    </ROW>
    <ROW>
    <PACKAGING>
    <HU_LABEL>789</HU_LABEL>
    </PACKAGING>
    <PACKAGING_ITEM>
    <LINENUMBER>20</LINENUMBER>
    <MATERIAL>mat 2</MATERIAL>
    </PACKAGING_ITEM>
    </ROW>
    </DOCUMENT>
    <u><b>Target Structure</b></u>
    DOCUMENT 1..1
    ROW 1..unbounded    
    PACKAGING 1...1
    HU_LABEL 1..1
    PACKAGING_ITEM 1..1
    LINENUMBER 1..1
    MATERIAL 1..1
    Note, 1 ROW in the target structure = 1 HANDLING_UNITS from the source structure.
    Can anyone help me to achieve this? I do not know how to map the relevant DELIVERY_LINEITEM\MATERIAL from the source structure to the target structure.

    JM,
    Please find the solution. Reply back if it helps or not
    http://www.flickr.com/photo_zoom.gne?id=1045178998&size=o
    http://www.flickr.com/photo_zoom.gne?id=1045179010&size=o
    http://www.flickr.com/photo_zoom.gne?id=1045179022&size=o
    Results :http://www.flickr.com/photo_zoom.gne?id=1045179134&size=o
    <b>Code used:</b>
    for(int j=0;j<Handling_Linenum.length;j++)
    for(int k=0;k<Delivery_Linenum.length;k++)
    if(Handling_Linenum[j].equals(Delivery_Linenum[k]))
    result.addValue(""Material[k]"");
    result.addContextChange();
    Best regards,
    raj.

  • Issue with valuation segment and gl in MB5l

    Hi gurus
    I have an issue with a couple of materials in a report in MM MB5L list of stock values.  The materials they are reporting with the issue have no costing screen extended in MM and I think this maybe the issue.  The message I am getting is:
    Account 121160 does not exist in company code 0010 G/L accnt is missing for val. segment 000005 1400.
    I have checked the account and it does exist in the company code, is there any other config between the segment and gl account.
    regards

    The transaction is MB5L which is stock values balances.    The message is:
    Account 121160 does not exist in company code 0010
    G/L accnt is missing for val. segment 000005 1400,
    There is no message number,  no question mark(help) to check the message number either,  as it is just text at the bottom of the report showing the error.
    I thought it might just be because the costing view was not setup,  however not sure why the gl account is coming up as cannot see any postings to this account?   It maybe that they have not done the relevant MM configuration.  The gl account is a material management account.
    thanks

  • Issue with Repeat Contact Info in Edit Screen

    Hello! 
    I recently had to get a replacement for my Droid because the home keys stopped working.    My replacement Droid was acting buggy and the screen would black out anytime I'd check voicemails and sometimes after placing a phone call.  I called customer service today and the tech support guy had me do a factory data reset on the phone.  Before I did it, I was instructed to export my contacts to my SD card, which I did.   The screen issue seems to be resolved, but I have an issue with my contacts now.  If I go into a contact and hit "edit contact", it will display three to four Google contacts for one person!  Also, if I try to make a shortcut to direct dial a contact, it has the same contact and phone number listed 3-4 times for every phone number listed.  (For example, my parents home phone is listed three times and so is their cell phone number.)  Anyone know how to get rid of the repeat contact info?  I have tried resetting the phone again, as well as separating contacts individually to no avail.  Any help or advice is appreciated!

    Here are the steps for deleting duplicate contacts.  HTH!
    From the home screen, touch the applications tab (located on the bottom of the screen).
    Touch Contacts.
    Touch the Contacts tab.
    Touch Menu.
    Touch the desired contact.
    Touch Menu.
    Touch Delete contact.
    Touch OK.

  • Message Mapping Issue with data without namespace

    Hi,
    I have a common xsd imported which has its own target namespace into my SWC namespace. Based on this xsd I have generated a Message Interface and webservice and given the wsdl to third party system for invoking my webservice.
    The problem is I have done the message mapping based on xsd which has namespace but whereas the third party system which is consuming my webservice is sending the xml data without any namespace and because of which my mapping is failing (target structure is not getting generated as expected). I have tested the mapping with namespace and without namespace from IR already. I have explained this below with example.
    I cannot change the xsd as it is a common and even cannot ask the end system to change the data format they are sending as they are sending the same data to some other systems also, which are not complaining.
    How to resolve this issue in XI?
    Actual xml data generated from my imported xsd (with namespace)
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Root xmlns:ns0="http://employee/types">
       <ns0:EmployeeDetails>
          <ns0:EmployeeId>12</ns0:EmployeeId>
            <ns0:EmployeeName>XYZ</ns0:EmployeeName>
    </ns0:EmployeeDetails>
    </ns0:Root>
    Actual Data coming from third party system (without namespace)
    <?xml version="1.0" encoding="UTF-8"?>
    <Root>
       <EmployeeDetails>
          <EmployeeId>12</EmployeeId>
            <EmployeeName>XYZ</EmployeeName>
    </EmployeeDetails>
    </Root>
    Thanks
    Amit

    Just  wild guess:)
    I am not 100% sure but i guess XSLT mapping does not checks the incoming payload against the sender message type.Within XSLT mapping you can add/remove namespace as you would like,use this XSLT mapping before your actual message mapping in interface mapping.
    I am saying this coz recently i was able to generate XSLT mapping(in altova Map Transform) without even specifying any sender or receiver Message type and it worked just fine.
    Thanx
    Aamir

  • Mapping Issue with useOneAsMany Function

    Hi Experts,
    1) The target node DATA must be repeat as many times as YT3M in source side, if YT3M not exist it must fill with empty node.
    2) the target field "P" must reapeat as many times as YT3M in source side and P value from source side repeat same value for all YT3M occurance under M1M node, if M1M node not exist fill with empty.
    Can anyone help me about this.
    Sorce structure is look like this.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:mt1 xmlns:ns0="urn:sap.shoprite.co.za:ecc:md">
       <a1m>
          <m1m>
             <po>100</po>
             <yt3m>
                <m>1</m>
             </yt3m>
             <yt3m>
                <m>2</m>
             </yt3m>
          </m1m>
       </a1m>
       <a1m>
          <m1m>
             <po>101</po>
             <yt3m>
                <m>1</m>
             </yt3m>
             <yt3m>
                <m>1</m>
             </yt3m>
             <yt3m>
                <m>2</m>
             </yt3m>
          </m1m>
       </a1m>
       <a1m/>
       <a1m>
          <m1m>
             <po>100</po>
             <yt3m>
                <m>1</m>
             </yt3m>
             <yt3m>
                <m>1</m>
             </yt3m>
          </m1m>
          <m1m>
             <po>103</po>
             <yt3m>
                <m>1</m>
             </yt3m>
             <yt3m>
                <m>1</m>
             </yt3m>
          </m1m>
       </a1m>
       <a1m>
          <m1m>
             <po>101</po>
             <yt3m>
                <m>1</m>
             </yt3m>
             <yt3m>
                <m>2</m>
             </yt3m>
          </m1m>
       </a1m>
    </ns0:mt1>
    Target Structure is look like this.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:mt2 xmlns:ns0="urn:sap.shoprite.co.za:ecc:md">
       <data>
          <po>100</po>
          <m>1</m>
       </data>
       <data>
          <po>100</po>
          <m>2</m>
       </data>
       <data>
          <po>101</po>
          <m>1</m>
       </data>
       <data>
          <po>101</po>
          <m>1</m>
       </data>
       <data>
          <po>101</po>
          <m>2</m>
       </data>
       <data>
          <po/>
          <m>1</m>
       </data>
       <data>
          <po>100</po>
          <m>1</m>
       </data>
       <data>
          <po>100</po>
          <m>1</m>
       </data>
        <data>
          <po>103</po>
          <m>1</m>
       </data>
       <data>
          <po>103</po>
          <m>1</m>
       </data>
       <data>
          <po>101</po>
          <m>2</m>
       </data>
       <data>
          <po>101</po>
       </data>
    </ns0:mt2>

    Hi,
    I tested your mapping with below structure.
    Source Structure
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:test xmlns:ns0="http://PurchaseRequest_Info">
       <M1M>
          <PO>100</PO>
          <YT3M>
             <M>1</M>
          </YT3M>
          <YT3M>
             <M>2</M>
          </YT3M>
       </M1M>
       <M1M>
          <PO>101</PO>
          <YT3M>
             <M>1</M>
          </YT3M>
          <YT3M>
             <M>1</M>
          </YT3M>
          <YT3M>
             <M>2</M>
          </YT3M>
       </M1M>
    </ns0:test>
    Output:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:target xmlns:ns0="http://PurchaseRequest_Info">
    <Data>
    <PO>100</PO>
    <M>1</M>
    </Data>
    <Data>
    <PO>100</PO>
    <M>2</M>
    </Data>
    <Data>
    <PO>101</PO>
    <M>1</M>
    </Data>
    <Data>
    <PO>101</PO>
    <M>1</M>
    </Data>
    <Data>
    <PO>101</PO>
    <M>2</M>
    </Data>
    </ns0:target>
    Mapping Used:
    Data Node: Y3TM- Context on Test Node.
    PO Node: Pass output of One as many to PO. first input to one as many will be Source PO field and other two inputs will be Node Y3TM.
    Map source M field as it is to Target M field.
    -Gouri

  • Mapping issue with Qualifier table

    Hi,
    1. I have an issue after mapping all 3  non-qual flds of a qualifier table in main table getting the compound fld enabled but selecting it , not mapping automatically to the appropiate compound field in the destination side, but giving an error message
    "unable to retrieve source record".
    2. The second issue is that after mapping some of the fields and qualified table and loading the maintable data, saving the map but subsequently when trying to open the saved map , it is coming out with the usual main error window
    SAP MDM Import Manager
    SAP Import manager has encountered a problem and needs to close.
    We are sorry for the inconvenience.
    Debug                                          Close
    Appreciate your help/suggestion on this issues.
    regards
    -reo

    Answer for Qn2:
    First you have to map all the display fields to individual Source Fields..
    Once you have mapped all the dispaly fields of the Qualified Table, you have to do value mapping for the Fields that require Value Mapping.
    Ex: Source Field A -> Destination Display Field 1
    Source Field B -> Destination Display Field 2
    Source Field C -> Destination Display Field 3
    Now Value Mapping where required should be done.
    Once the value mapping is done, then you can create a Compound Field.
    If you have done the previous steps correclty, then the compound field name is enabled for you to create Compound Field.
    Now map the newly created Compound Field to the Qualified Lookup field of the main table.
    Now you have to click on the Automap for value mapping.
    Hope this helps.
    Please reward if you find this helpful

  • Calendar Sync Issue With repeating entry deletions Notes 8.5 to BB

    I have an issue where when synchronizing may calendar with Lotus Notes version 8.5, the Blackberry will delete repeating entries. Specifically, if I load the Blackberry with all my calendar entries from Notes and then in one entry in my Notes calendar a "single" occurance of a meeting gets canceled .. the next time I sync with the Blackberry it deletes "all" occurances of that meeting from the BB. The entries remain correct on Lotus Notes. The only way I can seem to fix that is to reset sync setting and reload the calendar to the BB all over again, and then this occurs again .... this happens with both V5 and V6 of the BB Desktop Software. Has anyone seen this and is there a fix ?

    I have an issue where when synchronizing may calendar with Lotus Notes version 8.5, the Blackberry will delete repeating entries. Specifically, if I load the Blackberry with all my calendar entries from Notes and then in one entry in my Notes calendar a "single" occurance of a meeting gets canceled .. the next time I sync with the Blackberry it deletes "all" occurances of that meeting from the BB. The entries remain correct on Lotus Notes. The only way I can seem to fix that is to reset sync setting and reload the calendar to the BB all over again, and then this occurs again .... this happens with both V5 and V6 of the BB Desktop Software. Has anyone seen this and is there a fix ?

  • Dynamic population issue with repeated sub form

    I have a subform that populates a dropdown from another subform on a prior page. In the Enter event on the subform I have the following script:
    Drop Down 1
    this.clearItems();
    this.rawValue = null;
    this.fontColor = "0,0,0";
    var nCount = Subform3.Subform2.Subform1.instanceManager.count;
    console.println("nCount: " + nCount);
    for (var i=0; i<=nCount; i++)
    var vFld = xfa.resolveNode("Subform3.Subform2.Subform1[" + i + "]");
    var vItem = vFld.RiskNo.rawValue;
    this.addItem(vItem.toString());
    A second drop down is also populated in the PostOpen event on the subform with the following script:
    Drop Down 2
    this.clearItems();
    this.rawValue = null;
    this.fontColor = "0,0,0";
    var sf1 = Subform3.Subform2.resolveNodes ("Subform1[*]");
    for ( var i = 0; i < sf1.length; i++)
    if (CTPData.RiskRow.Risk.rawValue == sf1.item(i).RiskNo.rawValue)
      var controlsf = sf1.item(i).resolveNodes ("Controls.Control[*]");
      for ( var j = 0; j < controlsf.length; j++)
       var wInput = controlsf.item(j).ContNo.rawValue;
       this.addItem(wInput.toString());
    I then populate a text field with values based on drop down selections with the following Exit Event scripts:
    Exit Event Drop Down 1 to populate text field 1
    var sf1 = Subform3.Subform2.resolveNodes ("Subform1[*]");
    for (var i = 0; i < sf1.length; i++)
    if (CTPData.RiskRow.Risk.rawValue == sf1.item(i).RiskNo.rawValue)
       var wInput = sf1.item(i).RiskInput.rawValue;
       CTPData.RiskRow.RiskTxt.rawValue =(wInput);
       CTPData.ControlsRow.ControlTxt.rawValue = "";
    Exit Event Drop Down 2 to populate text field 2
    var sf1 = Subform3.Subform2.resolveNodes ("Subform1[*]");
    for ( var i = 0; i < sf1.length; i++)
    if (CTPData.RiskRow.Risk.rawValue == sf1.item(i).RiskNo.rawValue)
      var controlsf = sf1.item(i).resolveNodes ("Controls.Control[*]");
      for ( var j = 0; j < controlsf.length; j++)
    if (CTPData.ControlsRow.Control.rawValue == controlsf.item(j).ContNo.rawValue)
       var wInput = controlsf.item(j).ControlInput.rawValue;
       CTPData.ControlsRow.ControlTxt.rawValue =(wInput);
    These scripts work absolutely perfect for the first instance of the subform they are on.  On added instances of the subform however, the drop downs work but the populate text fields from the selected values do not.
    I am sure I am missing something simple but I can’t find it.
    I would greatly appreciate any pointers I could get.
    Thanks,
    Eagle

    I actually tried that with the same results.  It seems to me that the issue is that
    var wInput = controlsf.item(j).ControlInput.rawValue;
    CTPData.ControlsRow.ControlTxt.rawValue =(wInput);
    on the repeated subform has a different CTPData.ControlsRow.ControlTxt.  something like CTPData.ControlsRow.ControlTxt(0). but I don't understand enpough about repeated subform values to figure it out.
    Thanks,
    Eagle

  • Mapping issue with if else

    Src. Structure:
    A (0-unbounded)
       within A-> p
    B (0-unbounded)
      within B-> p
    NOTE: at a given instant either A/B can occur, # of K(Target)should b same as # of A/B
    Target structure
    K(0-unbounded)
        within K---> z(1)
    now i have done A/B -> K mapping,
    question comes when i try to map the p to Z field within K,
    depending on weather A/ B exists i need to map the P in A/B to the Z field in K,
    here is what i have done so far:A/B->K mapping
    A --> exists -->OR createif --> SplitByValue -->K
    B --> exists -->
    for mapping p-> Z (i used if then else function)
    A --> exists -->if then  --> A.p --> K.z
    else-> B.p-> K.z
    Here is the test scenario i am doing:
    I send a test without A's only 3 Bs
    I get 1 K element with 1 z in it.
    the remainder of the elements of B in other contexts don't show up.
    When i do a display queue: for my p->z mapping  at the if-then-else function i can see only 1 output from it though there are 3 p fields, this is because in my K structure z field can occur max only once,
    HOW CAN I HAVE  seperate Z elements, each within different K elements?
    Your help is very much appreciated,  this sounds so complicated i hope not, i m sure im not doing something correct, can some1 help me understand this?
    Thanks,
    Hank

    If you have not got the solution, then consider this logic:
    K is 0..unbounded so in the MM duplicate the subtree for K (so now you will have 2 K nodes)
    A -
    > exists -
    > createIf ---> K  ........K will occur when A node exists in the source...to one of the two K nodes
    To map A.p to K.p
    A.p -
    > K.p  ....... you may need to increase the Context of the A.p node....K.p should be the first K node to which the above exists logic (A exists) is applied.
    B ---> exists ---> createIf ---> K   .........K will occur when B node exists in the source...to second K node
    To map B.p to K.p
    B.p ---> K.p....... you may need to increase the Context of the B.p node....K.p should be the second K node to which the above exists logic (B exists) is applied.
    Regards,
    Abhishek.

  • Font Mapping issue with Arial Unicode MS font

    Hi All,
    I was able to do font mapping for Arial Unicode MS font (.ttf) in BIP version 10.1.3.4.
    But after applying the patch 10256764 I am not able to see the Arial Unicode MS font in the Font Selection drop down box in BIP .
    I have copied some other .ttf fonts to the .\ jre\lib\fonts folder and they are appearing in the BIP
    Does BIP patch 10256764 not support Arial Unicode MS font ?
    Please help me...
    its resolved .Font name extention should be in lower case (.ttf)
    Edited by: deepz on May 5, 2011 10:15 PM

    There is no BOLD font TTF files for Arial Unicode MS.  No resolution at this point of time. Closing the issue.
    Edited by: vamsee m on Apr 27, 2011 9:29 AM
    Closing this issue

  • Sling mapping issue with Query String

    For a button component, URL behaves differently with query string. Please let me know the sling mapping example for query string.
    Button component behavior across env:-
    Working Scenario:-
    - In Author edit mode, URL pointing to "/content/<websitelink>"
    - In Author preview mode shows URL "<host>:<port>/content/<websitelink>.html"
    - In Publisher mode shows URL, "<host>:<port>/<websitelink>", we do not want "/content" before website link so it is fine.
    Failure Scenario with query string:-
    - In Author edit mode URL pointing to "/content/<websitelink>?username=han"
    - In Author preview mode with URL "<host>:<port>/content/<websitelink>?username=han"
    - In Publisher mode, <host>:<port>/content/<websitelink>?username=han - Here we see the content, which is not acceptable in our scenario.
    Please let me know the mapping changes when we have a URL with query string.

    1) I assume you configure as per the rules mentioned in http://sling.apache.org/site/mappings-for-resource-resolution.html --> 'Mapping Entry Specification' under /etc/map. Based on the configuration in /etc/map and the website that we publish, it translates and shows all the applicable combination in the Felix console http://<host>:<port>/system/console/jcrresolver.
    2) How does Adobe CQ 5.4 resolve the right mapping, if we have multiple map folder like below in /etc directory with the same website with different rules.
    etc/map --> http --> <website> with property sling:match, sling:internalRedirect
    etc/map.publish --> http --> <website> with property sling:match, sling:internalRedirect
    etc/map.publish-stag --> http --> <website> with property sling:match, sling:internalRedirect
    Kindly clarify.

  • Workbench Mapping Issue with Bi-directionals

    I have a bi-directional one-to-one mapping (with relationship partners and all that...)
    Object A has an ivar that has a private one-to-one with the primary key of object B. Accordingly, A's ivar has a foreign key to B.
    Object B has a ivar that is a backpointer to the primary key of A. This is the one-to-one relationship partner in the bi-directional relationship. I made this relationship a TARGET foreign key.
    The mapping tool generates the target foreign key entry in the descriptor for object B incorrectly:
    OneToOneMapping scenarioMapping = new OneToOneMapping();
         scenarioMapping.setAttributeName("myBackPointerToA");
         scenarioMapping.setReferenceClass(A.class);
         scenarioMapping.setRelationshipPartnerAttributeName("ObjectAForeignKeyVariableToB");
         scenarioMapping.useBasicIndirection();
    --> next statement is incorrect and causes the runtime
    --> execution of this to fail
    scenarioMapping.addTargetForeignKeyFieldName("ObjectB.OID", "ObjectA.ObjectAForeignKeyVariableToB");
    --> changing the above to the following (reversing the parameters) works as we
    --> want it to work:
         scenarioMapping.addTargetForeignKeyFieldName("ObjectA.ObjectAForeignKeyVariableToB", "ObjectB.OID");
         descriptor.addMapping(scenarioMapping);
    The corrected way does use TopLink so that it manages the backpointer.
    Is this a bug, or am I not using the mapping tool correctly?
    All I'm trying to do is to get TopLink manage the backpointer in this one-to-one relationship and is there a better way to do this?
    Thanks,
    Steve

    Hello Steve,
    Yes, this is a bug (internal #2662409) that has been fixed in version 9.0.4.
    Cheers,
    Paul

Maybe you are looking for

  • Getting box says 'Do you use Yahoo toolbar on multiple computers' cant get rid of box. Wont accept input or close!

    The box has two buttons. One says 'save to my Yahoo!ID' the other says 'no thanks, just save to this computer'. I can press each button but nothing seems to happen. The only way to get rid of the box is to close firefox. I am using an HP s5713w-b and

  • CREATE DATABASE cannot create a control file

    I know, it's not supported. Please refrain from reminding me. I am trying to install a second database on an Oracle 8i installation (8.1.7.4) on a Windows 2003 server. I cannot use DBCA because it doesn't work, so I create the databases manually usin

  • ITunes stops working when syncing iPod.....

    every time I sync my iPod on iTunes it lags alot, doesn't say it is syncing anything, and crashes with a blue screen thats says something about a crash dump. I took b noir's advice and turned off automatic reboot. I just tried syncing my iPod and a l

  • Multiple Logon Pages?

    I am trying to have different logon pages for the same portal depending on the URL used to access the portal.  I already have URL Aliases implemented and I filter the content based on the portal desktop being used.  Does anyone know how to have a dif

  • Regarding user exit  BAPI_TRANSACTION_COMMIT

    I'm trying to use BAPI_TRANSACTION_COMMIT in customer exit but its dumping. please let me know how to commit a transaction in user exit through CMOd