Condition on Mapping in Repeating Records

Hi,
This is my map file :
My input file is as follows:
<ns0:Root xmlns:ns0="http://schemas.microsoft.com/BizTalk/2003/aggschema">
  <InputMessagePart_0>
    <ns1:Response xmlns:ns1="http://Interplx_ndPhase.SourceSchema">
      <Employees>
        <Employee>
          <EmpID>10</EmpID>
          <EmpName>Prakash</EmpName>
        </Employee>
       <Employee>
          <EmpID>20</EmpID>
          <EmpName>EmpName_0</EmpName>
        </Employee>
      </Employees>
    </ns1:Response>
  </InputMessagePart_0>
  <InputMessagePart_1>
    <ns2:ResponseM xmlns:ns2="http://Interplx_ndPhase.ManagerSchema">
      <Managers>
        <Manager>
          <ManagerID>30</ManagerID>
          <Salary>Salary_0</Salary>
        </Manager>
        <Manager>
          <ManagerID>20</ManagerID>
          <Salary>1000000</Salary>
        </Manager>
      </Managers>
    </ns2:ResponseM>
  </InputMessagePart_1>
</ns0:Root>
I want to compare each EmpID with each Manager ID.If any  EmpID and ManagerID is equal then simply transform with destination schema otherwise not.
How its is possible ??
Please suggest me some solution.
Prakash

For the given input instance, if you want map the employees who are managers (i.e. for the employee whose EmployeeID matches with the ManagerID) I created a output schema like the below to give an idea about the XSLT (which you can change it to
yours)
, in the map, If I use the XSLT like the following:
<?xml version="1.0" encoding="UTF-16"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var s0" version="1.0" xmlns:s0="http://Interplx_ndPhase.ManagerSchema" xmlns:ns0="http://schemas.microsoft.com/BizTalk/2003/aggschema" xmlns:ns2="http://Interplx_ndPhase.SourceSchema">
<xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
<xsl:template match="/">
<xsl:apply-templates select="/ns0:Root" />
</xsl:template>
<xsl:template match="/ns0:Root">
<ns0:Root>
<OutputMessagePart_0>
<ns2:Response>
<Employees>
<xsl:for-each select="InputMessagePart_0/ns2:Response/Employees/Employee">
<Employee>
<xsl:call-template name="CheckMan">
<xsl:with-param name="empID" select="EmpID/text()" />
<xsl:with-param name="pos" select="position()" />
</xsl:call-template>
</Employee>
</xsl:for-each>
</Employees>
</ns2:Response>
</OutputMessagePart_0>
</ns0:Root>
</xsl:template>
<xsl:template name="CheckMan">
<xsl:param name="empID" />
<xsl:param name="pos" />
<xsl:for-each select="../../../../InputMessagePart_1/s0:ResponseM/Managers/Manager">
<xsl:if test="ManagerID/text() = $empID">
<EmpID>
<xsl:value-of select="../../../../InputMessagePart_0/ns2:Response/Employees/Employee[$pos]/EmpID/text()" />
</EmpID>
<EmpName>
<xsl:value-of select="../../../../InputMessagePart_0/ns2:Response/Employees/Employee[$pos]/EmpName/text()" />
</EmpName>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
You would get the desired output. As mentioned, you can change the output as per your need, and this XSLT which works for me for the above input & output schema can give an idea about how to achieve this requirement.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Similar Messages

  • Mapping with repeating records

    Hello,
    I have once schema which has two child records out of that second child has many child fields with repeating records, but when I mapped it further I am getting that second schema only once even it has multiple.
    Help me please ASAP
    Thanks in advance

    Nilesh,
    You have two options:
    Option1:
    Just ensure in schemas, in second child records, set the repeating child record's (repeating record under second child record) "Max Occurs" property is set to
    * (or unbounded). Ensure that this property (Max Occurs =
    *) is set for repeating records in both source and destination schemas. By this way, particular child record will repeat. This way gives more control on which child record you want to
    set as repeatable.
    Options2:
    Just set the second child record (which has the repeating records under it) "Group Max Occurs" property to
    * (or unbounded). By this way, all the child records of this second child, will be set to repeating record.
    Also ensure that the repeating records (not just the child elements, but also the repeating records) are mapped from source to destination.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • I can't build an xsd for a flat file (txt) to handle repeating records

    Hi - have looked at many posts around flat file schema and they don't seem to address my question.
    I have a flat file that is \n delimited
    the pattern of the data is simple:
    record1 - 90 characters
    record2 - 20 characters
    record3 - n 248 characters - each of these records is parsed into children by the positional method
    record n+1 10 characters
    record n+2 20 characters
    so I used the flat file schema generator to generate the schema and built a map mapping the flat file schema to another xml schema. The schema looks ok - record1, record2, record n+1, record n+2 are child elements of the root. the repeating record
    section is showing up as a node with the parsed children.
    The transform is only mapping the children of the repeating records. When I test the map only the first repeating record gets parsed. No repeating happens (the actual flat file has 400+ repeating records). When I run the map in debug mode, the input
    xml shows that record1 is read in correctly, record2 is read in correctly, record3 is read in and parsed and record4 is treated like record n+1 and record5 is treated like record n+2 and the map thinks it's all finished.
    the section of the repeat part of the schema is and you can see that I set the minOccurs=1 and maxOccurs=unbounded for the node (INVOICE) and the complexType but this is not an affective syntax. I have looked at how the EDI X12 schema look and how they handle
    looping and it is a lot different than what the Flat File schema wizard is doing. Is there a good set of rules published that would guide me though this? otherwise I will basically have to read in the lines from the file and parse them out with functoids -
    seems so inelegant. Thanks in advance.
    <xs:element minOccurs="1" maxOccurs="unbounded" name="INVOICE">
              <xs:annotation>
                <xs:appinfo>
                  <b:recordInfo structure="positional" sequence_number="3" preserve_delimiter_for_empty_data="true" suppress_trailing_delimiters="false"
    />
                </xs:appinfo>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence minOccurs="1" maxOccurs="unbounded">
                  <xs:annotation>
                    <xs:appinfo>
                      <groupInfo sequence_number="0" xmlns="http://schemas.microsoft.com/BizTalk/2003"
    />
                    </xs:appinfo>
                  </xs:annotation>
                  <xs:element name="SegmentType" type="xs:string">
                    <xs:annotation>
                      <xs:appinfo>
                        <b:fieldInfo justification="left" pos_offset="0" pos_length="2" sequence_number="1" />
                      </xs:appinfo>
                    </xs:annotation>
                  </xs:element>....... more children elements
    Harold Rosenkrans

    Thanks for responding
    I gave up trying to parse the repeating record into fields. Instead I just loop through the repeating record section with an <xs:for-each> block in the xsl and use functoids to grab the fields.
    So that works for having the two, shorter header records (structure is positional) before the section of repeating records. Now I just have to figure out how to get the schema to handle the two, shorter trailer (or footer, whatever you prefer) records after
    the section of repeating records
    the error I get in VS when I test the map is [BTW I changed the element names in the schema which is why you don't see INVOICE in the error]
    When I declare the last element as being positional with a character length of 10 I get the error:
    Error 18 Native Parsing Error: Unexpected end of stream while looking for:
    '\r\n'
    The current definition being parsed is SAPARData. The stream offset where the error occured is 1359. The line number where the error occured is 9. The column where the error occured is 0. 
    so the first record is 77 char in length and the second is 16 char and then the repeating records (5 in the file) are 248 char and the last record is 10 char
    so an offset of 1359 puts it beyond the last record by 16 characters - so the stream reader is looking for the next repeating record.
    if I try to declare the last element as delimited I get the error:
    Error 14 Native Parsing Error: Unexpected data found while looking for:
    '\r\n'
    The current definition being parsed is SAPARData. The stream offset where the error occured is 597. The line number where the error occured is 5. The column where the error occured is 0. 
    so the first record is 77 char in length and the second is 16 char and then the repeating records are 248 char.
    a stream offset of 597 puts me 8 characters into the third repeating record - at this point I have only declared one trailer record in the  schema, 10 characters long.
    Why is stream reader stopping at such a weird spot?
    The bottom line is I still haven't discovered the correct schema to handle the trailer records. even if I set the maxOccurs="4" (for the repeat record declaration) it still gets the first error. How does it find an unexpected end of stream looking
    for \r\n when the maxOccurs for the repeat record declaration should have the stream pointer in the 5th repeat record.
    I unfortunately don't have any options concerning the file structure.
    I have read a lot of posts concerning the trailer issue. I have seen a couple that looked interesting. I guess I'll just have to give them a try. The other option is to create a custom pipeline that will only take file lines of 248 characters.
    That's just disgusting !
    Harold Rosenkrans

  • DIscount condition types mapping to value field  (+/-)

    Hi,
    1)While mapping SD condition types to Copa value fields, do we need to check the transfer +/- symbol for all discount condition types...
    or when do we need to check it..
    2) In our case we have some 4 to 5 discount condition types mapped to copa... If we check that symbol, as discount will always be negative system is posting discount values in negative in copa. At the time of report execution, since we give formula as Sales Less discount and discount is already negative in system it is getting added... so we are planning to change formula as sales + discounts... is that approach is right?
    Reg
    Karthik

    Hi Ajay,
    Thanks for your quick reply... generally for which condition types do we need to check this indicator in ke4i... for all discount condition types and rounding off condition types... is that right? Because as I told we have some 4 to 5 discount condition types and we have ticked for only one discount condition type which is mostly used...
    Reg
    Karthik

  • Mapping from repeating header to unique headers.

    Dear experts,
    I would like to map a repeating segment of an Idoc structure to 5 segments with each different names of the target structure. The underlying fieldnames are identical. Ofcourse the number of segments in the source structure is 1, with cardinality 0...9999. Can you please advice on how to do this. (The other way around I could just use "duplicate subtree" to match the number of segments.)
    Example:
    <headerA>
    <item>.....</item>
    <item2>.....</item2>
    </headerA>
    <headerA>
    <item>.....</item>
    <item2>.....</item2>
    </headerA>
    <headerA>
    <item>.....</item>
    <item2>.....</item2>
    </headerA>
    Target structure:
    <headerA>
    <item>.....</item>
    <item2>.....</item2>
    </headerA>
    <headerB>
    <item>.....</item>
    <item2>.....</item2>
    </headerB>
    <headerC>
    <item>.....</item>
    <item2>.....</item2>
    </headerC>
    Thanks in advance!
    Will reward points!

    Hi,
    You can do this only with JAVA or ABAP-mapping.
    Regards Mario
    Sample with dom4j:
    results = document.selectNodes("//header");
              int i = 0;
              for (Iterator iter = results.iterator(); iter.hasNext();) {
                   Node node = (Node) iter.next();
                   node.setName("header"+i);
                   i++;
                   System.out.println(node.getName());

  • How to highlight the repeated records in a BO crystal report?

    Hi ,
    How to highlight the repeated records in a BO crystal report?
    we want to highlight the rows for which account number is same.
    thanks
    sriram

    You don't even need to create a group.  Just sort the records on the fields that define "duplicate".  Then you can just use
    if {field} = PreviousValue({field}) then crYellow else crNoColor
    in the format's Background Color formula.  This will cause the background to be yellow on duplicates.  (If you need to check more than one field in order to determine duplicates, just insert
    and {field2} = PreviousValue({field2}
    and so on for each field that needs to be checked.
    HTH,
    Carl

  • Powerbook G4 10.4.11  won't start from hard drive .  Tried repair, " The underlying task reported failure on exit (-9972).Invalid sibling link,invalid B tree header, invalid map node,invalid record type,the volume needs to be repaired.

    Powerbook G4 10.4.11  won't start from hard drive .  Tried repair, " Invalid sibling link,invalid B tree header, invalid map node,invalid record type,the volume needs to be repaired.Powerbook G4 10.4.11  won't start from hard drive .  Tried repair, " The underlying task reported failure on exit (-9972).Invalid sibling link,invalid B tree header, invalid map node,invalid record type,the volume needs to be repaired.
    The underlying task reported failure on exit (-9972).

    kauribill wrote:
    " The underlying task reported failure on exit (-9972).Invalid sibling link,invalid B tree header, invalid map node,invalid record type,the volume needs to be repaired.
    The underlying task reported failure on exit (-9972).
    This is a directory issue that Disk Utility cannot fix. Although it manifests itself as a software issue sometimes it may be hardware based. See DiskUtility reports "Underlying task reported failure" when repairing avolume http://support.apple.com/kb/TS1901?viewlocale=en_US". You can try using a utility like TechTool Pro, Drive Genius or Disk Warrior to repair and replace the directory. Another option would be to use the Archive and Install feature to reinstall. If the problem returns after correction you may have a failing or failed HDD.
    cornelius

  • Best Practices to update Cascading Picklist mapping for Account record type

    1. Most of the existing picklist values name in parent and related picklist has been modified in external app master list, so the same needs to be updated in CRMOD.
    2. If we need to update picklist value, do we need to DISABLE the existing value and CREATE a new picklist.
    3. Is there any Best Practices to avoid doing Manual Cascading picklist mapping for Account record type? because we have around 500 picklist values to be mapped with parent and related picklist.
    Thanks!

    Mahesh, I would recommend disabling the existing values and create new ones. This means manually remapping the cascading picklists.

  • Condition Groups in Purchase info record

    Hi SAP Folks
    Can you please in undertsanding the usage of the Field : Condition Groups in Purchase info record .
    How can this be used and what are the required set up to be done  in the system.
    We are SAP ECC 6.0
    Thanks for the help.
    Achu

    Hi,
    Click F1 on field Cond. Grp which gives the infomation about the Condition groups.
    Check  links : http://help.sap.com/saphelp_47x200/helpdata/en/75/ee1fa755c811d189900000e8322d00/frameset.htm
    Condition group comes under strategic sourcing and it is used to group together vendor  & mass changes for vendor masters.
    e.g to change tax condition for certain group. Check the T-code MEKG.
    Hope it will help U...
    Regards
    Vikrant

  • How can I map last of the repeating records into a single record?

    I have a following input schema, I need to take only one of the <Student> records and map that to a single record in output. Doesn't matter if the first, second or last one of the records get mapped, I only need one in the output. Any idea how can
    this be accomplished?
    Input:
      <Students>
        <Student id="1">
            <Name>
              A
            </Name>
            <Roll>
              1
            </Roll>
        </Student>
          <Student id="2">
            <Name>
              A
            </Name>
            <Roll>
              1
            </Roll>
        </Student>
        <Student id="3">
            <Name>
              A
            </Name>
            <Roll>
              1
            </Roll>
        </Student>
      </Students>
    Expected Output:
    <Candidate>
      <Student>
        <Name>
           A
        </Name>
      </Student>
    </Candidate>

    Sounds rather complex for something that could be done very simple in custom XSLT like this:
    <?xml version="1.0" encoding="utf-16"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="Students">
    <Candidate>
    <Student>
    <Name>
    <xsl:value-of select="Student/Name" />
    </Name>
    </Student>
    </Candidate>
    </xsl:template>
    </xsl:stylesheet>
    Morten la Cour

  • Strange Errors from Import Server on Schema-based maps for repeating nodes

    I have already posted one thread about this, but perhaps some more in-depth information is required:
    We have uploaded our schema into the console, and have mapped the following multi-node file to it:
    CUSTOMER <repeating node>
      MDM_CUST (new Customer number returned)
      CUSTOMER(mapped back from XI for RECORD MATCHING)
      CREATE_DATE (text field)
      CONTACT<repeating node>
        CONTACT_NO (RECORD MATCHING : NON-QUALIFIER)
        CONTACT_SAP_NO (QUALIFIER)
         [NOTE: There are other qualifers for CONTACT, but only this one
    qualifier is being returned and is the only field that would and should be updated.
    The other fields should be left alone. However, it appears to overwrite EVERYthing
    with NULL other than these two fields. The CONTACT_NO is the sole qualifer on
    the table. It is a calculated field that equals the Auto-ID that is also produced on
    the table - but obviously not mapped.]
      PARTNER<repeating node>
        CUSTOMER_NO (RECORD MATCHING : NON-QUALIFER)
        PARTNER_FUNC (NON-QUALIFIER - Code given to lookup from PARTNER_FUNCTION table which has Code and Desc)
        PARTNER_NO     (NON-QUALIFIER)
        DEFAULT_PARTNER_FLAG (QUALIFIER)
    <CLOSE CUSTOMER NODE>
    In the Customer main table, all records are matched on CUSTOMER. The CONTACT_NO non-qualifer is matched to the CONTACT qualified lookup table directly since it is the only available non-qualifier. For the PARTNER table, the three qualifiers are mapped and then a compound field is created to map to the PARTNER table entry.
    We have the Configurations set at:
    Default Multi-Valued Update: Replace
    Default Qualified Update: Replace
    Default Matching Qualifiers: None
    Our record matching is: Create / Update(ALL MAPPED FIELDS) / Update(ALL MAPPED FIELDS)
    When the map is reused, the repeating nodes are all recognized, be it one node or many. However, when the map is reused, it does not automatically map the values for many of the Partner fields (nor the compound field) though the fields are correctly mapped.
    Also, when we attempt to use Import Server to automate the mapping, we use the mdis.ini set to
    Automap Unmapped Value=True
    Unmapped Value Handling=Add
    Always Use Unmapped Value Handling=False
    We get a very strange error saying that :
    [code]Encountered a pre-SP4 map. The map needs to be upgraded to SP4.
    Solution: Please, Launch the Import Manager GUI using the same source file and simply save the map.[code]
    Could it be that our MDM 5.5 SP4 is not compatible with schemas generated with XI v.7 SP9?
    All of our MDM is 5.5 SP4. It makes no sense that we would get THIS kind of error. Also, I am questioning our combination of these and other configurations since it doesn't always seem to do what it should

    Hi Donald,
    this sounds good so far. Just a short hint: you've set "Default Qualified Update: Replace". This explains why Import server "appears to overwrite EVERYthing
    with NULL other than these two fields.". The reason is the replace. A replace means that the old values are completely deleted and only the new incoming ones are stored. I'd suggest to use any of the Update possibilities.
    Note: the definitions you set in in the record matching step are mainly for the new records in the main table! Records in qualified look ups are handled differently! If you open your map in Import Manager, switch to tab "Map Fields/Values". Select a field that is your non qualifier. Right-Click on it and choose "Set qualified update" from the context menu. Now you can define which qualifiers can be used for the qualified look up matching. And you can define as well what should happen with new and/or existing records.
    Regarding the value mapping: do you use keymapping? Or do you use simple values only? Do you save the map everytime you add a new value mapping?
    Regarding the issue "Encountered a pre-SP4 map. The map needs to be upgraded to SP4. Solution: Please, Launch the Import Manager GUI using the same source file and simply save the map". This sounds very likely like a bug in MDIS and should be reported to SAP!
    Hope that helps
    Michael

  • BizTalk mapping for repeating Nodes using XSLT

    Hi,
    I am mapping the source schema to destination schema using Custom XSLT file. I have a repeating node in the Sources schema:
    Period node can repeat any number of times. I am using the XPath in XSLT to map the nodes from source to destination and using the "for-each" loop.
    Destination Schema:
    I want to map "PeriodID" and "Volume" both to the destination node "html:TD". I am using the following XSLT code:
    <xsl:for-each select="/*[local-name()='RootNode' and namespace-uri()='Namespace']/*[local-name()='Periods' and namespace-uri()='Namespace']/*[local-name()='Period' and namespace-uri()='Namespace']">
    <html:TR class="data0" level="0">
    <html:TD class="data-int" datatype="int">
    <xsl:value-of select="./*[local-name()='RootNode' and namespace-uri()='Namespace']/*[local-name()='Periods' and namespace-uri()='Namespace']/*[local-name()='Period' and namespace-uri()='Namespace']/*[local-name()='PeriodID' and namespace-uri()='Namespace']"/>
    </html:TD>
    <html:TD class="data-dbl" datatype="dbl">
    <xsl:value-of select="./*[local-name()='RootNode' and namespace-uri()='Namespace']/*[local-name()='Periods' and namespace-uri()='Namespace']/*[local-name()='Period' and namespace-uri()='Namespace']/*[local-name()='Volume' and namespace-uri()='Namespace']"/>
    </html:TD>
    </html:TR>
    </xsl:for-each>
    I am only getting the first value of both the nodes in every loop.
    I know that we can use the XPath of the actual Node(PeriodID) in "for-each" loop and use value-of="." to get the current values of the node.
    But the problem is I want both the values "PeriodID" and "Volume" repeating in the destination.

    if you use xpath like you did ( imean without index), you will only get 1 record elements each time.
    Either you have to use code like i did, or use index based xpath.
    The code i gave you should work, just try to debug it from visual studio. Because xslt is a case sensitive, check if the code i gave you matches the elements in case sensitive. may be you have to use prefixes like s1, s2 etc as per you xsl file declaration.
    Check you xsl file for prefix declarations.
    you can also try below code, it uses postion() method to get the current for loop index.
    <xsl:for-each select="/*[local-name()='RootNode' and namespace-uri()='Namespace']/*[local-name()='Periods' and namespace-uri()='Namespace']/*[local-name()='Period' and namespace-uri()='Namespace']">
    <html:TR class="data0" level="0">
    <html:TD class="data-int" datatype="int">
    <xsl:value-of select="(./*[local-name()='RootNode' and namespace-uri()='Namespace']/*[local-name()='Periods' and namespace-uri()='Namespace']/*[local-name()='Period' and namespace-uri()='Namespace']/*[local-name()='PeriodID' and namespace-uri()='Namespace'])[position()]"/>
    </html:TD>
    <html:TD class="data-dbl" datatype="dbl">
    <xsl:value-of select="(./*[local-name()='RootNode' and namespace-uri()='Namespace']/*[local-name()='Periods' and namespace-uri()='Namespace']/*[local-name()='Period' and namespace-uri()='Namespace']/*[local-name()='Volume' and namespace-uri()='Namespace'])[position()]"/>
    </html:TD>
    </html:TR>
    </xsl:for-each>
    but i insist you to verify for any prefix declarations in you xsl file
    Please mark the post as answer if this answers your question. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Post mapping for Reject records!!

    hi
    I would like to capture all the rejected records when I am loading the fact table. I know I can get this information from WB_RT_ERRORS and WB_RT_ERROR_SOURCES. But, what I would like to do is to have Post mapping process which and the action set to "on error", I would like to capture all the reject records into a flat file. Is there a way I can identify reject in the post mapping process other than referring to WB_RT_ERRORS and WB_RT_ERROR_SOURCES in runtime.Because this is what client is requesting for , Any help on this would be greatly appreciated.
    Please mark me directly also since I do not get emails sometimes through the distribution list.
    Thanks in Anticipation,
    Balaji

    Reposting the response from M.Van Der Wiel:
    2 comments:
    - Ideally, you would explicitly capture the errors, and insert those into a separate table. This would enable you to run the mapping in set-based mode (traditionally this means: no error logging) for optimal performance, and you still get the errors. This does mean you would have
    to explicitly design what may go wrong, so you should know what your data looks like. Your flat file could then be created out of the explicit error records, which is probably a bit easier (and faster) than to go from the WB_RT_ERRORS.
    - The mapping errors out once the maximum number of errors is reached (as passed at runtime; is defaulted by the configuration setting). Anything in between 0 and the maximum number of errors will result in a status warning.
    To do what you want to do, you could indeed use the post mapping process, but perhaps you want to design a separate mapping to write the errors to a file, and use a process flow (with conditional sequencing) to run the second mapping (only if the first one fails or results in a warning). This may be a nicer solution than to write the code manually and implement it as a standalone post-mapping process.
    Finally, notice that WB_RT_ERRORS and the like are not tables you should directly query (they will change in the future). Rather you should use the ALL_RT_<something> views to access the same information. Going forward, as the customer desires to migrate to a later release, it is
    more likely that their customizations still work.
    Thanks,
    Mark.
    PS.
    Another possiblity - if the errors violate a key constraint - would be to configure the mapping target with the constraints parameter set to false and redirect the error records to a error table (this can be done in the mapping configuration - sources and targets section). This configuration will disable the constraints during the load and re-enable them after the load, putting the offending records in the error table. You can then download the records from the error table into a flat file in a separate mapping or in a post-mapping process.
    Regards:
    Igor

  • Graphical mapping issue, repeated lines are not populating

    Hello All,
    i have mapping where i need to map source node and its coresponding subelements to target node and its subelemtns based on certains condition, which i did using If condition.
    Now my issue is, when mapped source node with condition , conditional field is not in the same node which i am mapping. It is in the parent node of the node which i am mapping. SO when i mapped to target node, only one occurence only its populating in target side even When lines repeated more than once its not populating all lines corespondingly. Please let me know how to populate all line items when i have validation field in parent node and child node and its subelemnts to be mapped to the target node. ( Both parent node and sub node in source and target node are unbounded) .
    Thanks in advance.
    Regards,
    Kalpana

    Thanks for your reply, My source structre looks like below.
    I have to map rows node and its coresponding fields to target node Lines which is unbounded and to its subelements when collection name = 'MATGRP_COLLN'.  I did it using if condition but , only one row tis getting populated in target LIne node. next repeated row values are not populating in target side.
    - <extensions>
    + <collection name="REGION_COLLN" />
    +  <collection name="DIVISION_COLLN" />
    + <collection name="DTL_PRCNG_COLLN" />
    + <collection name="COUNTRY_COLLN">
    - <collection name="MATGRP_COLLN">
    - <row>
    - <fields>
      <OBJECTID>-2147483540</OBJECTID>
      <UNIQUE_DOC_NAME>-21474835401248121690973</UNIQUE_DOC_NAME>
      <DISPLAY_NAME />
      <MATGRP_ITEM_NO>1</MATGRP_ITEM_NO>
      <MATGRP_NAME>10100000</MATGRP_NAME>
      </fields>
      </row>
    - <row>
    - <fields>
      <OBJECTID>-2147483539</OBJECTID>
      <UNIQUE_DOC_NAME>-21474835391248121706160</UNIQUE_DOC_NAME>
      <DISPLAY_NAME />
      <MATGRP_ITEM_NO>2</MATGRP_ITEM_NO>
      <MATGRP_NAME>10101500</MATGRP_NAME>
      </fields>
      </row>
      </collection>
      </extensions>
      </object>
      </objects>
      </fcidataexport>

  • Suppressing repeated records in the query

    Hello Gurus,
           I have a Doctor#1 treating Patient#1 in 3 different cases and in the report I just need to see 1 instead of 3 as it is the same patient#1 to the same doctor#1. What are the ways I can manipulate this data without writing any program.
    Report shows as follows:                   records
    doctor 1       disease 1     patient 1         1 
                   disease 2     patient 1         1
                   disease 3     patient 1         1
    total                                          3   
            Any help i.e can I write conditions? Selections? or any idea would be greatly appreciated.
    Thanks,
    Priya

    Hello Diwa,
            I did select (hide the repeated key values) in the query properties and also hid the diseases column but still it shows as below.
    Doctor       Patient         Number of Records
    00000403880040     A05088000490040            1
                                     1
    Total                                  2
    Thanks,
    Priya

Maybe you are looking for

  • Can I use a Solid State Drive (SSD) as a startup disk

    My System Drive just crashed. So I need a new unit. I would like to get away from a mechanical unit so I was thinking that a SSD would be nice. Will my Powermac G4 (867 mhz) running Mac OS 9.2.2 let me install and run the SSD as a startup drive? Gary

  • Unknown error in opening attached pdf files

    Vista operating system; Adobe Reader is selected to use to open pdf files but is not used within Thunderbird. If saved to desktop, files open normally.

  • How to create single user and bulk users from back end in ebs r12?

    Hi all, how to create users from back end in oracle application R with responsibilities? Thanks in Advance, Sandeep Edited by: user2584435 on 17 Nov, 2009 11:14 PM Edited by: user2584435 on 17 Nov, 2009 11:14 PM

  • AdvancedDataGrid headerrenderer children added dynamically do not display

    The AdvancedDataGrid in Flex 3.x does not correctly render children of a custom headerrenderer when the children are added dynamically. This works correctly with the DataGrid. An AdvancedDataGrid has a custom headerrenderer with one field to display

  • Just simple email using 10.6.8, nothing else

    I just want to keep my .mac email account running smoothly, I simply have no use whatsoever for anything iCloud offers Reading the iCloud transition blurb I need to manually configure Mail as 10.6.8 isn't supported (nice one Apple) Is this all I need