Invoice PO issue in BizTalk Map

Hi All,
I did get below error while I was testing the map. I have reloading the map so many times still I'm getting below error
Invoking component...
C:\somepath.btm: error btm1023: Exception Caught: The map contains a reference to a schema node that is not valid.  Perhaps the schema has changed.  Try reloading the map in the BizTalk Mapper.  The XSD XPath of the node is: /*[local-name()='<Schema>']/*[local-name()='']/*[local-name()='']/*[local-name()='INVOICE']/*[local-name()='POSITEID']
Component invocation succeeded.
How can i fix this error could you please assist me on this.
Thanks & Regards,
Vasu

Hi Vasu,
1) Try "CLEAN SOLUTION" and then try,
2) If that doesnt fix. Choose the properties of the map and disable the “Ignore Namespaces for Links” like this:
Refer: Two nodes on same
level with same name but different namespace
3) If that doesn't fix the issue, Refer this link. FIX:
Error message when you validate a BizTalk map in BizTalk Server 2006 R2 or in BizTalk Server 2009 if the map and its schemas are in a separate project
Rachit
Please mark as answer or vote as helpful if my reply does

Similar Messages

  • Issue with heat maps refresh process in EID 3.1?

    Issue with Heat Maps in EID 3.1? Heats maps don't refresh unless you go back to home page and then again go back to the Endeca app.
    In Oracle Sample app if we open the Map tab we will see that Milwaukee is really hot in the heat map. now if we filter the data to just show data from 100 miles within Orlando, FL then the map will get refreshed to show that area but the colors on heat maps do not change.
    Now if we keep the refinements same and go back to home page and again go back to sample app and maps tabs then it will still show area of 100 miles within Orlando, FL which is good but now heat map would have updated and it would show us correct color.
    Now if we remove the refinement then it would show complete US map as hot which is again wrong.
    I have observed this issue in chrome browser as well as firefox.
    Is there anyway to overcome this issue?

    This issue was resolved after applying latest patch from Oracle.

  • MIAL RECIEVER CC -- ISSUE USED XSLT MAPPING

    Hi All,
    I have a Scenario   in which  IDOC  is a sender and Mail Adaptert  is reciever .The Xi is supposed to sent the Email notification to the client . Mail adapter is SMTP configured correctly ,Reciever  Mail CC is up and running but Error  is :Delivery of the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    The Mapping here is used is XSLT mapping and in SXMB_MONITOR , Error shown is :
    SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">TRANSFORMER_CONF_EX</SAP:Code>
    Could you plesae help  me this  Issue asap .
    Thanks,
    Vara

    Hi Abhi ,
    I checked in ATOVA SPY XML Check , it seems to be the issue in XSLT mapping .
    Part of XSLT mapping  Error line:
    when test="//IDOC/EDI_DC40/RCVLAD = '3157411730014'">   --There was a single  qoute missing
    Tested in Atova with payload , it worked
    Thanks for your  supprt as well.
    Best Regards,
    Vara

  • Issues in Value Mapping...

    Hi Experts,
    I have an issue in Value mapping. For 2 to 3 target data  I have assigned same Group ID of source.
    1) It is not allowing to segregate based on Group ID in the target area.
    2) If I want to change the group Id of one of the assigned target data, it is throwing error saying that group ID already exists.
    Please help.
    Regards,
    Praveen.

    hi Praveen,
    As far as i know Value mapping in XI will not allow you to have duplicate values . I mean different source cannot have same target values .. in case of you still want to implement the same you can use some logic like
    source -- target
    x---1
    y---1
    then save your values like this in VM
    x--x~1
    y---y~1
    in code u should put the logic to split and take the value.
    Hope this helps .
    Laks

  • Issue in adapters mapping in OIM 11g

    Hi,
    I am having the issue in adapters mapping in OIM 11g.....
    I had created an Entity Adapter using utility task in OIM... and I had attached it to post update of users form in data object manager.... But when I am trying to map the adapter variables.... it shows me two fields in map to field (Literal and Entity field) and when I select the entity field.. I am not able to see any thing in qualifier field...as there should be fields of user form so that I can map the adapter variables with user form fields...
    I am not able to troubleshoot why is it so....I had restarted the server again but no solution...
    Can anybody help me to resolve the issue??
    Regards,
    Anil

    Hi Rajiv,
    Actually my issue is not that entity adapter will work or not.... But issue is I am not able to map the adapter variables.... there should be user forms fields shown during mapping of entity adapter...... so that i can map the adapters variables...

  • Issue in Geo map content

    Hi,
    I am facing an issue in geo map content with TM 9.1 where when I select show  map in transportation cockpit I get a dump-
    ERROR: Error in HTML_ISLAND "VISBIZ_ISLAND" of view "FPM_VISBIZ_UIBB.V_VISBIZ": To use a UI element of type HTML_ISLAND, the application must be executed in the "Standards" browser mode (termination: RABAX_STATE).
    I have already done the below enclosed config-
    a) Map product ID-HERE_NORMAL
    b) Map server- http://1.maps.nlp.nokia.com/maptile/2.1/maptile/newest/normal.day/{LOD}/{X}/{Y}/256/png?token=OvJJVLXUQZGWHmYf1HZCFg&app_id=TSCNwGZFblBU5DnJLAH8
    c) Map layer stack ID-HERE
    d) MAP product assignment- here MAP LAYER NAME-BASE and MAP PRODUCT ID-HERE_NORMAL
    e) Application-TM_TNC
    f) MAP LAYER STACK assignment- Here there are 2 values speciifed a) Default  b) HERE which is marked as default
    Aalso for point b, for MAP PRODUCT ID-HERE_NORMAL when I clicked on test server entry for the URL enclosed ,I have attached the jpg also where its showing blank.
    http://1.maps.nlp.nokia.com/maptile/2.1/maptile/newest/normal.day/{LOD}/{X}/{Y}/256/png?token=OvJJVLXUQZGWHmYf1HZCFg&app_id=TSCNwGZFblBU5DnJLAH8
    Can you tell me how to resolve the issue

    We need really be thankful for Marcus' patience. Let us hope that next question will not be: "What is a menu bar?" ;-)
    Thanks Marcus for your help all the time to any questions.
    Rajiv
    PS: 7:1 rules ;-)

  • BizTalk Map: Grouping CRM Response XML based on the ID field in Custom XSLT

    Hi,
    I will receive a CRM response as below. 
    <ns0:RetrieveMultipleResponse xmlns:ns0="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:ns2="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Metadata" xmlns:ns5="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:ns1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ns4="http://schemas.microsoft.com/xrm/2011/Contracts"><ns0:RetrieveMultipleResult>    <ns4:Entities>      <ns4:Entity>        <b:Attributes xmlns:b="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic">            <b:KeyValuePairOfstringanyType>            <c:key>ccx_datevaccineinfostatementpresented</c:key>            <c:value i:type="d:dateTime" xmlns:d="http://www.w3.org/2001/XMLSchema">2012-08-14T04:00:00Z</c:value>          </b:KeyValuePairOfstringanyType>          <b:KeyValuePairOfstringanyType>            <c:key>ccx_administeredamount</c:key>            <c:value i:type="d:decimal" xmlns:d="http://www.w3.org/2001/XMLSchema">0.75000000</c:value>          </b:KeyValuePairOfstringanyType>          <b:KeyValuePairOfstringanyType>            <c:key>ccx_immunizationid</c:key>            <c:value i:type="d:guid" xmlns:d="http://schemas.microsoft.com/2003/10/Serialization/">826c2b0e-a349-e411-866c-00155d1e1f77</c:value>          </b:KeyValuePairOfstringanyType>     </b:Attributes>  </ns4:Entity>   <ns4:Entity>        <b:Attributes xmlns:b="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic">            <b:KeyValuePairOfstringanyType>            <c:key>ccx_datevaccineinfostatementpresented</c:key>            <c:value i:type="d:dateTime" xmlns:d="http://www.w3.org/2001/XMLSchema">2012-08-14T04:00:00Z</c:value>          </b:KeyValuePairOfstringanyType>          <b:KeyValuePairOfstringanyType>            <c:key>ccx_administeredamount</c:key>            <c:value i:type="d:decimal" xmlns:d="http://www.w3.org/2001/XMLSchema">0.25000</c:value>          </b:KeyValuePairOfstringanyType>          <b:KeyValuePairOfstringanyType>            <c:key>ccx_immunizationid</c:key>            <c:value i:type="d:guid" xmlns:d="http://schemas.microsoft.com/2003/10/Serialization/">766c2b0e-a349-e411-866c-00155d1e1f77</c:value>          </b:KeyValuePairOfstringanyType>     </b:Attributes>  </ns4:Entity><ns4:Entity>        <b:Attributes xmlns:b="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic">            <b:KeyValuePairOfstringanyType>            <c:key>ccx_datevaccineinfostatementpresented</c:key>            <c:value i:type="d:dateTime" xmlns:d="http://www.w3.org/2001/XMLSchema">2012-08-14T04:00:00Z</c:value>          </b:KeyValuePairOfstringanyType>          <b:KeyValuePairOfstringanyType>            <c:key>ccx_administeredamount</c:key>            <c:value i:type="d:decimal" xmlns:d="http://www.w3.org/2001/XMLSchema">0.7500000000</c:value>          </b:KeyValuePairOfstringanyType>          <b:KeyValuePairOfstringanyType>            <c:key>ccx_immunizationid</c:key>            <c:value i:type="d:guid" xmlns:d="http://schemas.microsoft.com/2003/10/Serialization/">826c2b0e-a349-e411-866c-00155d1e1f77</c:value>          </b:KeyValuePairOfstringanyType>     </b:Attributes>  </ns4:Entity></Entities></ns0:RetrieveMultipleResult></ns0:RetrieveMultipleResponse>
    I have  to count the distinct Entities based on ccx_immunizationid value & also I have to group the fields if both entity has same immunization ID. If the xml file (without namespace) and the field is <ccx_immunizationid>2323</ccx_imunizationid>,
    I can use something like below,
    <xsl:template match="//Entity/Attributes[not(./ccx_immunizationid= preceding::ccx_immunizationid)]">
    but here, I have to look for the key 'ccx_immunizationid' and its value. 
    I am using custom xslt in BizTalk map. Please help. Thanks.
    Regards,
    Lakshmi

    You need to get the distinct record filtered by "value" field whose "key" is "ccx_immunizationid" i.e <c:key>ccx_immunizationid</c:key>".
    So you need to use the XPath with syntax: 
    /*[not(@name = preceding::*/@name)]
    So in your case, the XPath value will be like the following:
    /*[local-name()='RetrieveMultipleResponse' and namespace-uri()='http://schemas.microsoft.com/xrm/2011/Contracts/Services']/*[local-name()='RetrieveMultipleResult' and namespace-uri()='http://schemas.microsoft.com/xrm/2011/Contracts/Services']/*[local-name()='Entities' and namespace-uri()='http://schemas.microsoft.com/xrm/2011/Contracts']/*[local-name()='Entity' and namespace-uri()='http://schemas.microsoft.com/xrm/2011/Contracts']/*[local-name()='Attributes' and namespace-uri()='http://schemas.microsoft.com/xrm/2011/Contracts']/*[local-name()='KeyValuePairOfstringanyType' and namespace-uri()='http://schemas.microsoft.com/xrm/2011/Contracts'][*[local-name()='key' and namespace-uri()='http://schemas.datacontract.org/2004/07/System.Collections.Generic']/text() ='ccx_immunizationid'][not(*[local-name()='value' and namespace-uri()='http://schemas.datacontract.org/2004/07/System.Collections.Generic'] = preceding::*[local-name()='value' and namespace-uri()='http://schemas.datacontract.org/2004/07/System.Collections.Generic'])]
    You may need to change the namespaces according to yours. This XPath would give you an idea of how to use the distinct XPath (1.0) snystax as shown above in your XML.
    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.

  • BizTalk map Julian date

    Hi,
    how can i convert date into julian date in BT map. 
    Thanks in adv.
    2Venture2

    Try this in BizTalk map via an inline C# scripting functoid
    public static string ToJulian(string strdateTime)
    DateTime dateTime = Convert.ToDateTime(strdateTime);
    int day = dateTime.Day;
    int month = dateTime.Month;
    int year = dateTime.Year;
    if (month < 3)
    month = month + 12;
    year = year - 1;
    long dt = day + (153 * month - 457) / 5 + 365 * year + (year / 4) - (year / 100) + (year / 400) + 1721119;
    return dt.ToSTring(dt);
    or this returns long, and the input parameter is datetime
    public static long ToJulian(DateTime dateTime)
    int day = dateTime.Day;
    int month = dateTime.Month;
    int year = dateTime.Year;
    if (month < 3)
    month = month + 12;
    year = year - 1;
    return day + (153 * month - 457) / 5 + 365 * year + (year / 4) - (year / 100) + (year / 400) + 1721119;
    Refer this article for more details:http://mikearnett.wordpress.com/2011/09/13/c-convert-julian-date/
    Following in the what we have been using in our maps, this has two static methods. One for standard datetime to Julian and another to convert Short datetime to Julian:
    public int ToJulian(string dt)
    try
    DateTime date = DateTime.Parse(dt);
    return ((date.Year - 1900) * 1000) + date.DayOfYear;
    catch
    return 0;
    /// <summary>
    /// Convert to Julian from dd/mm/yy
    /// </summary>
    /// <param name="dt"></param>
    /// <returns></returns>
    public int ToJulianFromShortDT(string dt)
    try
    DateTime date = new DateTime(int.Parse(dt.Substring(6, 2))+2000, int.Parse(dt.Substring(3, 2)), int.Parse(dt.Substring(0, 2)));;
    return ((date.Year - 1900) * 1000) + date.DayOfYear;
    catch
    return 0;
    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.

  • Biztalk Map: Repeated node

    Hi,
    Please find below Input file
    <Vin_Decoder>
    <Process>
    <Risk>
    <Line>
    <Exposer>
    <Type>VIN</type>
    <Svalue>123456789123456789</Svalue>
    </Exposer>
    <Exposer>
    <Type>Year</type>
    <Svalue>2014</Svalue>
    </Exposer>
    <Exposer>
    <Type>MAKE</type>
    <Svalue>2546</Svalue>
    </Exposer>
    <Exposer>
    <Type>Discripttion</type>
    <Svalue></Svalue>
    </Exposer>
    </line>
    </risk>
    <Risk>
    <Line>
    <Exposer>
    <Type>VIN</type>
    <Svalue>123456789987654321</Svalue>
    </Exposer>
    <Exposer>
    <Type>Year</type>
    <Svalue>2013</Svalue>
    </Exposer>
    <Exposer>
    <Type>MAKE</type>
    <Svalue>6789</Svalue>
    </Exposer>
    <Exposer>
    <Type>Discripttion</type>
    <Svalue>kfjdklf</Svalue>
    </Exposer>
    </line>
    </risk>
    </Process>
    </Vin_Decoder>
    and i am expecting the out put format
    <Vin_Decoder>
    <Decoder>
    <VIN>123456789123456789</VIN>
    <Year>2014</Year>
    <Make>2546</Make>
    <Description></Description>
    </Decoder>
    <Decoder>
    <VIN>123456789987654321</VIN>
    <Year>2013</Year>
    <Make>7896</Make>
    <Description>kfjdklf</Description>
    </Decoder>
    </Vin_Decoder>
    please suggest me how to do this in biztalk map..
    Thanks..

    Hi,
    In the Vin_Decoder schema create a "Decoder" Child Record and make it optional. Inside the Decoder" Record create the all the Field Elements like VIN, Year, etc. Create a map where the source and destination is the Vin_Decoder schema. Map to the field
    elements inside the Decoder" Record.
    Kind regards,
    Tomasso Groenendijk
    Blog 
    |  Twitter
    MCTS BizTalk Server 2006, 2010
    If this answers your question please mark it accordingly

  • Biztalk Map Logic

    Hi,
    I have the Biztalk Map logic as shown in figure
    Discount Step and Loyalty both are repeatitive node structures
    Sample Input Xml is as shown below
    <DiscountStepList>
     <DiscountStep>
      <NumberOfTrips>35</NumberOfTrips>
      <Percentage>1113</Percentage>
      </DiscountStep>
     <DiscountStep>
      <NumberOfTrips>5</NumberOfTrips>
      <Percentage>7732</Percentage>
      </DiscountStep>
     <DiscountStep>
      <NumberOfTrips>30</NumberOfTrips>
      <Percentage>8280</Percentage>
      </DiscountStep>
       </DiscountStepList>
    the logic to get the o/p will be
    For Childe Element MIntrip:
    in the first iteration Mintrip=1 and in Secoond iteration Mintrip=Last elememnt Maxtrips+1
    For CHild Element Maxtrips:
    In the first Iteration Maxtrips="NumberOfTrips" and in Second iteration current element MintripNum  + NumberOfTrips.
    The o/p for the above input example will be like
    <ns0:Loyalites xmlns:ns0="http://BizTalk_Server_Project7.Schemdfa1">
      <Loaylty>
        <MinTrip>1</MinTrip>
        <MaxTrips>35</MaxTrips>
      </Loaylty>
    <Loaylty>
        <MinTrip>36</MinTrip>
        <MaxTrips>41(36+5)</MaxTrips>
      </Loaylty>
    <Loaylty>
        <MinTrip>36</MinTrip>
        <MaxTrips>41(36+5)</MaxTrips>
      </Loaylty>
    <Loaylty>
        <MinTrip>42</MinTrip>
        <MaxTrips>72(42+30)</MaxTrips>
      </Loaylty>
    </ns0:Loyalites>
    Is it possible in Biztalk Map using functoids?

    Sujith,
    You got to buy me a drink :)
    You can achive this using XSLT in your map, following XSLT will get the desired result:
    <?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" version="1.0" xmlns:ns0="http://BizTalk_Server_Project7.Schemdfa1" >
    <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
    <xsl:template match="/">
    <xsl:apply-templates select="/DiscountStepList" />
    </xsl:template>
    <xsl:template match="/DiscountStepList">
    <ns0:Loyalites>
    <xsl:for-each select="DiscountStep">
    <xsl:if test="position() =1">
    <Loaylty>
    <MinTrip>
    <xsl:value-of select="position()" />
    </MinTrip>
    <MaxTrips>
    <xsl:value-of select="NumberOfTrips/text()" />
    </MaxTrips>
    </Loaylty>
    <xsl:call-template name="ConstructNextLoayltyNode">
    <xsl:with-param name="i" select="2"/>
    <xsl:with-param name="limit" select="count(/DiscountStepList/DiscountStep)"/>
    <xsl:with-param name="vMaxTrips" select="NumberOfTrips/text()"/>
    </xsl:call-template>
    </xsl:if>
    </xsl:for-each>
    </ns0:Loyalites>
    </xsl:template>
    <xsl:template name="ConstructNextLoayltyNode">
    <xsl:param name="i"/>
    <xsl:param name="limit"/>
    <xsl:param name="vMaxTrips"/>
    <xsl:if test="$i &lt;= $limit">
    <Loaylty>
    <MinTrip>
    <xsl:value-of select="$vMaxTrips + 1" />
    </MinTrip>
    <MaxTrips>
    <xsl:value-of select="$vMaxTrips + 1 +/DiscountStepList/DiscountStep[$i]/NumberOfTrips/text() " />
    </MaxTrips>
    </Loaylty>
    <xsl:call-template name="ConstructNextLoayltyNode">
    <xsl:with-param name="i" select="$i+1"/>
    <xsl:with-param name="limit" select="$limit"/>
    <xsl:with-param name="vMaxTrips" select="$vMaxTrips + 1 +/DiscountStepList/DiscountStep[$i]/NumberOfTrips/text()"/>
    </xsl:call-template>
    </xsl:if>
    </xsl:template>
    </xsl:stylesheet>
    Note: You may have to change the namespace as yours. And also the output sample you have show has repeated node as following which is correct.
    <Loaylty>
        <MinTrip>36</MinTrip>
        <MaxTrips>41(36+5)</MaxTrips>
      </Loaylty>
    <Loaylty>
        <MinTrip>36</MinTrip>
        <MaxTrips>41(36+5)</MaxTrips>
      </Loaylty>
    For your requirement you will get the out as following which your requirement:
    <ns0:Loyalites xmlns:ns0="http://BizTalk_Server_Project7.Schemdfa1">
    <Loaylty>
    <MinTrip>1</MinTrip>
    <MaxTrips>35</MaxTrips>
    </Loaylty>
    <Loaylty>
    <MinTrip>36</MinTrip>
    <MaxTrips>41</MaxTrips>
    </Loaylty>
    <Loaylty>
    <MinTrip>42</MinTrip>
    <MaxTrips>72</MaxTrips>
    </Loaylty>
    </ns0:Loyalites>
    Regards,
    M.R.Ashwin Prabhu
    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.

  • PO default invoice matching issue

    Hi All,
    I'm facing a PO default invoice matching issue. As we know, we can use the PO default invoice type to copy the invoice detail information from PO e.g. PO distribution. The following is the problem details:
    Oracle Application Version: 11.5.10.2
    1. PO distribution (PO Charge Account) 01-110-1570-0000-000
    2. Receiving Option (Expense AP Accrual Account) 01-000-2225-0000-000
    3. Item destination type is Expense.
    When I create the PO default invoice, give the po number and click the match button, Match to Purchase Order form comes out. And then I give the Qty invoiced and click the match button. Ideally, the invoice distribution account should be same as the PO distribution account e.g 01-110-1570-0000-000. But the invoice distribution account is 01-000-2225-0000-000. Could you please explain my doubt on this?
    Thanks & Best Regards,
    Jerome
    Edited by: Jerome.Yin on Aug 21, 2009 8:25 PM
    Duplicate Thread, Please look into the another one. Sorry for inconvenience

    Hi All,
    I'm facing a PO default invoice matching issue. As we know, we can use the PO default invoice type to copy the invoice detail information from PO e.g. PO distribution. The following is the problem details:
    Oracle Application Version: 11.5.10.2
    1. PO distribution (PO Charge Account) 01-110-1570-0000-000
    2. Purchasing Option (Expense AP Accrual Account) 01-000-2225-0000-000
    3. Item destination type is Expense.
    When I create the PO default invoice, give the po number and click the match button, Match to Purchase Order form comes out. And then I give the Qty invoiced and click the match button. Ideally, the invoice distribution account should be same as the PO distribution account e.g 01-110-1570-0000-000. But the invoice distribution account is 01-000-2225-0000-000. Could you please explain my doubt on this?hi
    this is a general rules. invoice distribution shows the Debit entries. and AP Expense Accrual A/C is debited in Invoice while it is credit in Receiving.
    Thanks
    Lisan

  • BizTalk Map - Xslt Issue

    Hi,
    Here is a piece of xslt, i need to replace the characters with their shortcode which are not supported in xml.
    For eg i need to replace '&' to '&amp' and similarly all other characters as mentioned
    Unsupported characters and their replacements:
    & - &amp;
    < - &lt;
    > - &gt;
    " - &quot;
    ' - &#39;
    XSLT:
    <xsl:if test="/*[local-name()='Root' and namespace-uri()='http://schemas.microsoft.com/BizTalk/2003/aggschema']/*[local-name()='InputMessagePart_1' and namespace-uri()='']/*[local-name()='GetOrderDetailsByIdResponse' and namespace-uri()='http://tempuri.org/']/*[local-name()='GetOrderDetailsByIdResult'
    and namespace-uri()='http://tempuri.org/']/*[local-name()='TermsAndConditionList' and namespace-uri()='http://schemas.datacontract.org/2004/07/GEP.Cumulus.P2P.BusinessEntities']/*[local-name()='TermsAndCondition' and namespace-uri()='http://schemas.datacontract.org/2004/07/Gep.Cumulus.CSM.Entities']/*[local-name()='TermsConditionText'
    and namespace-uri()='http://schemas.datacontract.org/2004/07/Gep.Cumulus.CSM.Entities']/text()">
    <Extrinsic>
    <HeaderExtrinsic>
    <TermsAndConditions>
    <xsl:for-each select="../s10:TermsAndConditionList">
    <xsl:for-each select="s9:TermsAndCondition">
    <xsl:if test="s9:TermsConditionText">
    <TermsAndCondition>
    <xsl:value-of select="s9:TermsConditionText/text()" /> 
    </TermsAndCondition>
    </xsl:if>
    </xsl:for-each>
    </xsl:for-each>
    </TermsAndConditions>
    </HeaderExtrinsic>
    </Extrinsic>
    </xsl:if>
    [Need to do it in the value coming from termandcondition text ie s9:TermsConditionText]
    Thanks in Advance

    Then go back to the source and explain to them that this is not valid XML, and you cannot consume it. Have you tried opening this XML in a web browser? or have an XML Disassemble Pipeline Component consume it?
    It should be 
    <ns5:TermsConditionText>Terms&amp;conditions</ns5:TermsConditionText>
    From the source, otherwise you will not be able to parse it as XML.
    Morten la Cour

  • Biztalk Map create duplicate target node

    Using biztalk mapper, I need a target node to be duplicated.. I have created a simplified version of my issue. Please see below map
    link for source and destination schema.
    I  need the target Option node to be duplicated for each OptionNotes. The value of OptionNotes is to be split by a pipe ("|"),
    then map to target Code and Description.
    The input is as below:
    <ns0:Source xmlns:ns0="http://Test.SOAP.Source1">
    <Option>
    <OptionID>ID0_NoNotes</OptionID>
    <OptionName>OptionName_0</OptionName>
    </Option>
    <Option>
    <OptionID>ID1_NoNotes</OptionID>
    <OptionName>OptionName_1</OptionName>
    <OptionNotes>NOTE1|BLAH1</OptionNotes>
    <OptionNotes>NOTE2|BLAH2</OptionNotes>
    </Option>
    </ns0:Source>
    The output should be as below:
    <Destination>
    <Options>
    <Option>
    <Code>ID0_NoNotes</Code>
    <Description>OptionName_0</Description>
    </Option>
    <Option>
    <Code>ID1_NoNotes</Code>
    <Description>OptionName_1</Description>
    </Option>
    <Option>
    <Code>NOTE1</Code>
    <Description>BLAH1</Description>
    </Option>
    <Option>
    <Code>NOTE2</Code>
    <Description>BLAH2</Description>
    </Option>
    </Options>
    </Destination>
    Tried to use Looping and combination with Value Mapping, but to no avail. Do I have to resort to inline xslt?
    Thanks.

    Thanks for all your answers.
    @Pi_xel_xar Your suggestion requires a change in the message schema.
    @Nadeem We have already tried the solution on the blog, but it's not quite the scenario we face. The issue is the OptionNote is in the same layer as OptionID and OptionName.
    We have used another tool, which has done this easily. We then get the XSLT and import it as part of Inline XSLT scripting functoid.
    The XSLT produced was as below:
    <xsl:for-each select="ns0:Source/Option">
    <Option>
    <xsl:for-each select="OptionID">
    <Code>
    <xsl:value-of select="string(.)"/>
    </Code>
    </xsl:for-each>
    <xsl:for-each select="OptionName">
    <Description>
    <xsl:value-of select="string(.)"/>
    </Description>
    </xsl:for-each>
    </Option>
    </xsl:for-each>
    <xsl:for-each select="ns0:Source/Option/OptionNotes">
    <xsl:variable name="var1_resultof_cast" select="string(.)"/>
    <Option>
    <Code>
    <xsl:value-of select="substring-before($var1_resultof_cast, '|')"/>
    </Code>
    <Description>
    <xsl:value-of select="substring-after($var1_resultof_cast, '|')"/>
    </Description>
    </Option>
    </xsl:for-each>
    Thanks everyone.

  • External Assembly Call in BizTalk Map

    Hello All,
    I am trying to call an external assembly as below from a scripting Functoid:
    public static string dblookup()
    string eaidbconnection = null;
    eaidbconnection = System.Convert.ToString(BizTalk.CE.Eai.Common.EaiSettings.GetSetting("ForecastFileExclusions"));
    return eaidbconnection;
    But when I do so and test the map am getting the below error: Exception has been thrown by the target of an invocation.Object reference not set to an instance of an object.
    When I deploy the application and then use the map as inbound map in the receive port I get the error as : Exception has been thrown by the target of an invocation.
    The external assembly is gaced in assembly too.
    What is wrong with the code?

    Hello All,
    Even when I change the code of the method to just return a string it is not working :
    public static string dblookup()
    string eaidbconnection = null;
    eaidbconnection = "Provider=SQLOLEDB;Server=ServerName\SQL02;Database=EAI_Main;Integrated Security=SSPI;";
    return eaidbconnection;
    I am using a databaselookup functoid and want to keep the database name input as configurable. so want to fetch it from a table.. but that is not working so in the above code am simply returning the connection string from the method and that is also not
    working. But, when use this connection string directly in the db functoid it works. There seems to be something wrong when I am calling the external assembly from sricting functoid. I think this is a server issue ?  so is there anythign I can check to
    confirm the same ?

  • Receive pipeline issue in BizTalk

    Hi All,
    I'm getting below error frequently in BizTalk while the records triggering from inbound to out bound.
    Here Inbound transport Type : FILE  and Outbound transport Type :
    WCF-BasicHttp
    Log Name:      Application
    Source:        BizTalk Server
    Date:          18/2/2015 12:38:53 PM
    Event ID:      5719
    Task Category: BizTalk Server
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      someserver.local
    Description:
    There was a failure executing the receive pipeline: " BizTalk.Pipeline.ReceiveMeasureCSVs, SLNG.BizTalk.Pipeline, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bb4520a982c06a31" Source: "ESB Dispatcher" Receive Port: "SLNG_DynamicResolutionOneWay"somelocation
    _*.csv" Reason: Root element is missing.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="BizTalk Server" />
        <EventID Qualifiers="49344">5719</EventID>
        <Level>2</Level>
        <Task>1</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-02-18T04:38:53.000000000Z" />
        <EventRecordID>2022354</EventRecordID>
        <Channel>Application</Channel>
        <Computer>someserver.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data> BizTalk.Pipeline.ReceiveMeasureCSVs, SLNG.BizTalk.Pipeline, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bb4520a982c06a31</Data>
        <Data>ESB Dispatcher</Data>
        <Data>SLNG_DynamicResolutionOneWay</Data>
        <Data>\\sftp server location_*.csv</Data>
        <Data>Root element is missing.</Data>
      </EventData>
    </Event>
    How can i fix this error. Could you please assist me on this.
    Thanks in advance.
    Best Regards,
    Vasu

    Hi,
    Check the output of the map creating the msg to be sent to the port.
    https://social.msdn.microsoft.com/Forums/en-US/19ae19f2-1799-4b2a-a056-1619a955fa19/issue-with-publishing-schema-as-webservice-using-wcfbasichttp-two-way-channel?forum=biztalkgeneral#3492ac06-708a-4b3c-a594-e249fcfa57e3
    Regards Pushpendra K Singh

Maybe you are looking for

  • Need Clarity in TOR & Availabilty Check

    Hey Folks If i have an order of 1000 Material A, i have in stock 500 for Material A, So i want to deliver 500 on the order creation date, and i want to get a new schedule line for the balance 500. I have Configured TOR Requirement Class Requirement T

  • ESS implementation issue.

    hi all I am implementing ESS on the NW04s platform. I have done all configuration in the front end and the back end (ECC 5.0). When I assign the role ESS to a user I see only the role, workset and one page (overview). I am not able to see the other p

  • Component initialization when used by parent component

    Hi everybody I have 'parent' and 'child' components. View V1 belongs to child and, upon receiving an inplug, performs a specific view controller method InitView performing activities such as executing controller methods to populate its context depend

  • How to only edit the Sky within an image?

    Hi. I'm trying to fathom how you can, say, change the saturation; brightness;..etc of one particular section of an mage instead of the changes being applied to the entire image. Say, I wanted to tweak the adjustments for only the sky within a landsca

  • Ability to turn headings into graphics when creating PDFs

    I would like the ability to convert the text headings and footers into graphical images whenever I create PDFs. My reason for this wish is that when you search for a text string in a PDF, it is very annoying when you keep getting hits that occur in h