XPath not working?

Hiho,
i'm trying to transform a xmltype using a xstl in Oralce XE. In my stylesheet i have for example something like this:
<xsl:value-of select="count(//Gemeinde)"/>According to my xslt book this should give me the total number of Gemeinde nodes, no matter where they appear in my xml document.
When i transform my xml document outside oracle, for example with xalan or saxon, i get the expected result.
When i transform it in oracle, using xmltransform, the result of the count is always 0.
I tried several XPath expressions, none seems to work.
Where am i doing wrong?
Thanks for help in advance,
Dirk

Found the solution to my problem. My xml document didn't have a namespace. After adding it the xpath works fine.

Similar Messages

  • XPath Not Working (Namespace ?)

    I am not receiving any errors, but similair XPath in XMLSpy works...
    I have an XML document:
    <Results>
    <acc:Account xmlns:account="http://test/account" id="1">
    <acc:Name>Account Name 1</acc:Name>
    </acc:Account>
    <acc:Account xmlns:account="http://test/account" id="2">
    <acc:Name>Account Name 2</acc:Name>
    </acc:Account>
    </Results>
    When I use: "//Results" I get a a Node back
    When I use: //Results/acc:Account[@id=1], I get no results back and no errors
    To avoid namespace problems I used a StaticNamespaceResolver...
    My code:
    HashMap prefixes = new HashMap(1);
    String namespace = "http://test/account";
    prefixes.put("acc", namespace);
    try {
         XObject obj = XPathAPI.eval(RootNode, queryStr, new StaticPrefixResolverImpl(prefixes));
    NodeList nl = obj.nodelist();
    System.out.println("NodeList Length: " + nl.getLength());
    } catch (Exception ee) {
    System.out.println(ee);
    Thanks!

    Seems to me your problem is that you can't decide what prefix to use...
    Is it 'acc' or 'account' ?
    In your sample document, try:
    <Results>
    <acc:Account xmlns:acc="http://test/account" id="1">
    <acc:Name>Account Name 1</acc:Name>
    </acc:Account>
    <acc:Account xmlns:acc="http://test/account" id="2">
    <acc:Name>Account Name 2</acc:Name>
    </acc:Account>
    </Results>And see what the difference is...
    Also, the prefix you use in your XPath expression does not have to be the same as the one used in the document. They are linked via the URI and a NamespaceContext. It's quite likely you'll need to implement a NamespaceContext (depending on what XPath API you are using).
    -Rob

  • XPath query works with CLOB but not with object relational

    hi all
    i have the following queries,the XQuery work with all, but XPath queries work with XMLType CLOB and Binary XML, but they do not work with XMLType as Object relational,
    select extract (object_value,'movies/directorfilms/films/film [studios/studio = "Gaumont"]')
    from xorm;
    select extract (object_value,'movies/directorfilms[director/dirname = "L.Cohen"]/films/film[position()=2]/t')
    from xorm;
    they shows this message
    ORA-00932: inconsistent datatypes: expectd SYSTEM.name683_COLL got CHAR
    thanks

    Hi Marco
    fisrt here is my RO
    BEGIN
    DBMS_XMLSCHEMA.registerSchema(
    SCHEMAURL=>'http://......../ORMovies.xsd',
    SCHEMADOC=>bfilename('DB','Movies.xsd'),
    LOCAL =>false,
    GENTYPES=>true,
    GENTABLES=>FALSE,
    CSID=>nls_charset_id('AL32UTF8'));
    END;
    create table XORM of xmltype
    xmltype store as object relational
    XMLSCHEMA "http://......../ORMovies.xsd"
    ELEMENT "movies";
    INSERT INTO XORM
    VALUES(XMLType(BFILENAME('DB','ORMovies.xml'),nls_charset_id('AL32UTF8')));
    here the XQuery format that work fine with the OR
    A/D
    select XMLQuery ('for $a in movies/directorfilms/films/film
              where $a/studios/studio = "Gaumont"
              return $a'
         passing object_value
         returning CONTENT)"TitleX"
    from xorm;
    child element query
    select XMLQuery ('for $a in movies/directorfilms/director[dirname = "Feyder"]
              let $b:=$a/../films/film[position()=2]
              return $b/t'
         passing object_value
         returning CONTENT)"TitleX"
    from xorm;
    here is the XPath format which doesn't work
    select extract (object_value,'movies/directorfilms/films/film [studios/studio = "Gaumont"]')
    from xorm;
    select extract (object_value,'movies/directorfilms[director/dirname = "Feyder"]/films/film[position()=2]/t')
    from xorm;
    by the way all queries work fine with the CLOB or Binary XML
    many thanx Marco

  • ** XPath condition not work well in Receiver Determination.

    Hi,
    My scenario is having 3 receivers. I have 'Student' is the data type. I use the same data type for Source & Target Message Types. Requirement is I have to send
    1) only records which are having SCOURSE = 'BE' to receiver 1
    2) only records which are having SCOURSE = 'MCA' to receiver 2
    3) only records which are having SCOURSE = 'MBA' to receiver 3
    My Input.xml file contains the following records.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:THIRD_MT_OB xmlns:ns0="http://ganesh_third">
       <STUDENT_INFO>
          <ST_ID>10020</ST_ID>
          <SNAME>Raja</SNAME>
          <SCOURSE>BE</SCOURSE>
          <SFEES>3000</SFEES>
          <SMARKS>1200</SMARKS>
       </STUDENT_INFO>
       <STUDENT_INFO>
          <ST_ID>10021</ST_ID>
          <SNAME>Ram</SNAME>
          <SCOURSE>MCA</SCOURSE>
          <SFEES>3000</SFEES>
          <SMARKS>1200</SMARKS>
       </STUDENT_INFO>
       <STUDENT_INFO>
          <ST_ID>10022</ST_ID>
          <SNAME>Ram</SNAME>
          <SCOURSE>MBA</SCOURSE>
          <SFEES>3000</SFEES>
          <SMARKS>1200</SMARKS>
       </STUDENT_INFO>
    </ns0:THIRD_MT_OB>
    I set the Xpath condition in the Receiver Determination Step and add the 3 receivers for against the conditions.
    Our problem is, If we send the single record in the input file, the corresponding receiver is selected correctly and we get the output file for that receiver. But, if we send the all combination of records (MCA,BE,MBA) 3 receivers are selected and the 3 output files we get. But, the three files are having the all records (MCA,BE,MBA). Instead, we want the first file should only have MCA record,  the 2nd file should only have BE record and finally the 3rd file should only have MBA record. That means each receiver should receive only one record for the above input.
    Friends, I though it will work for the 'XPath Expression' against receivers in the Receiver Determination Step. But, it didn't work. (Records are not split up)
    How do achieve this, friends?
    Could you kindly help me to solve this problem.
    Kind Regards,
    Jeg P.

    If you are trying to split you input msg and send it  to 3 different receivers using conditional receiver determination then it will not work. Once a condition is meet in the receiver determination then the entire msg is forwarded to the corresponding receiver, that is why when you have a single row in your input file which results in a single msg in XI the conditional receiver works. Now when you have multiple rows in your input file still only one msg is being created in XI for all the rows currently so all the conditions are being meet and the msg is forwarded to all the receivers.
    If you are using FCC in the sender side then use the "recordset per msg" parameter to consider each row of your input file as a separate msg in XI and the rest will automatically fall in place.
    Cheer's

  • Xpath condition not working for determining receivers

    hello all
    am writing a xpath expression for a simple structure
    <doc>
       <status>
       <id>
    </doc>
    status is attribute field.and will have value 'error' and some other value for no error. I want to choose one receiver if error and other receiver if no error
    so I wrote an xpath expression
    /Doc[@status='Error']   EX    --> Error receiver
    count(/Doc[@status='Error']) = '0'   --> no error receiver
    it was working couple of days ago but suddenly stopped working
    whats going on? thx
    mike

    But xpath is not working properly..
    Are you using this in the condition editor of Interface Determination (it should not be a cause of concern though)
    Can you confirm that the condition that you have specified is proper ....does it work when you specify only one condition?
    Regards,
    Abhishek.

  • XPATH does not work in ccBPM

    Hi,
    I have a problem using XPATH expressions in a ccBPM.
    I'm using an XPATH-expression in a fork step, but although the payload of the relevant message is correct, it doesn't seem to work. The XPATH expression is as follows:
    IDOC_TO_ISU./ZE_ISU_VDEW_UTILMD_V40/IDOC/ZE1_E1VDEWIDE_1/OBJECT_TYPE EX
    I also tried
    IDOC_TO_ISU./p1:ZE_ISU_VDEW_UTILMD_V40/IDOC/ZE1_E1VDEWIDE_1/OBJECT_TYPE EX
    IDOC_TO_ISU is the name of the container, ZE_ISU_VDEW_UTILMD_V40 ist the root tag of the message, an p1 the namespace of the message.
    Further, I used the following expression in a container operation to count the number of elements within a message:
    count(/p1:ZE_ISU_VDEW_UTILMD_V40/IDOC/ZE1_E1VDEWIDE_1)
    Although there are several ZE1_E1VDEWIDE_1 elements in my message, the result is '0'
    Are my XPATH expressions wrong or do XPATH expressions not work in ccBPM in general?
    Regards,
    Torsten

    Hi,
    thank you for your contributions.
    I had positive experiences with XPATH-expressions in receiver determination, but it seems that it doesn't work in ccBPM.
    Using context objects, I cannot query payload fields, so I also do not see how I can solve the problem with context objects.
    Has anybody an idea or an example about a successful XPATH expression in ccBPM?
    Regards,
    Torsten

  • Fault policies locaton and test xpath conditions not working.

    I cant place fault policies files in a non mds location or the composite directory.
    For example it does not work with an /opt/...... server path in the composite.xml property.
    Also, I can't get working xpath test expressions like this:
    <condition>
    <test xmlns:elem="http://na.telefonica.com/elementoscomunes">$fault.fault0/elem:AREA_ERROR/ErrorType = "F"</test>
    <action ref="reintentos-neon"/>
    </condition>
    In jdeveloper, the part is "fault0", and the subelements are like i've showed, but the condition never matches.
    I saw in a forum that the sintax was $fault.nameofpart/xpathexpression, but doesn't seem to work. I've tried lots of permutations of the syntax, and also with 'F' instead of "F".
    ¿Any Idea?

    This is the exception in the server GUI
    <fault>
    <bpelFault>
    <faultType>1</faultType>
    <OBA_Par_Alta_AveriaFault>
    <part name="fault0">
    <elem:AREA_ERROR>
    <ErrorID>8888</ErrorID>
    <ErrorType>F</ErrorType>
    <ErrorDesc>Afsafds</ErrorDesc>
    </elem:AREA_ERROR>
    </part>
    </OBA_Par_Alta_AveriaFault>
    </bpelFault>
    </fault>

  • Urgent: SAX parser bean is not working in JSP page

    Hi All,
    I have created a bean "ReadAtts" and included into a jsp file using
    "useBean", It is not working. I tried all possibilities. But Failed Plz Help me.
    Below are the details:
    Java Bean: ReadAtts.java
    package sax;
    import java.io.*;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import java.util.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.ParserConfigurationException;
    public class ReadAtts extends DefaultHandler implements java.io.Serializable
         private Vector attNames = new Vector(); //Stores all the att names from the XML
         private Vector attValues = new Vector();
         private Vector att = new Vector();
         private Locator locator;
         private static String start="",end="",QueryString="",QString1="",QString2="";
    private static boolean start_collecting=false;
         public ReadAtts()
         public Vector parse(String filename,String xpath) throws Exception
    QueryString=xpath;
         StringTokenizer QueryString_ST = new StringTokenizer(QueryString,"/");
         int stLen = QueryString_ST.countTokens();
         while(QueryString_ST.hasMoreTokens())
              if((QueryString_ST.countTokens())>1)
              QString1 = QueryString_ST.nextToken();
    else if((QueryString_ST.countTokens())>0)
                   QString2 = QueryString_ST.nextToken();
         SAXParserFactory spf =
    SAXParserFactory.newInstance();
    spf.setValidating(false);
    SAXParser saxParser = spf.newSAXParser();
    // create an XML reader
    XMLReader reader = saxParser.getXMLReader();
    FileReader file = new FileReader(filename);
    // set handler
    reader.setContentHandler(this);
    // call parse on an input source
    reader.parse(new InputSource(file));
         att.add("This is now added");
         //return attNames;
    return att;
    public void setDocumentLocator(Locator locator)
    this.locator = locator;
    public void startDocument() {   }
    public void endDocument() {  }
    public void startPrefixMapping(String prefix, String uri) { }
    public void endPrefixMapping(String prefix) {  }
    /** The opening tag of an element. */
    public void startElement(String namespaceURI, String localName,String qName, Attributes atts)
    start=localName;
    if(start.equals(QString2))
    start_collecting=true; //start collecting nodes
    if(start_collecting)
    if((atts.getLength())>0)
    for(int i=0;i<=(atts.getLength()-1);i++)
    attNames.add((String)atts.getLocalName(i));
    attValues.add((String)atts.getValue(i));
    /** The closing tag of an element. */
    public void endElement(String namespaceURI, String localName, String qName)
    end = localName;
    if(end.equals(QString2))
         start_collecting=false; //stop colelcting nodes
    /** Character data. */
    public void characters(char[] ch, int start, int length) { }
    /** Ignorable whitespace character data. */
    public void ignorableWhitespace(char[] ch, int start, int length){ }
    /** Processing Instruction */
    public void processingInstruction(String target, String data) { }
    /** A skipped entity. */
    public void skippedEntity(String name) { }
    public static void main(String[] args)
    String fname=args[0];
    String Xpath=args[1];
    System.out.println("\n from main() "+(new ReadAtts().parse(fname,Xpath)));
    //System.out.println("\n from main() "+new ReadAtts().attNames());
    //System.out.println("\n from main() "+new ReadAtts().attValues());
    JSP File:
    <%@ page import="sax.*,java.io.*,java.util.*,java.lang.*,java.text.*;" %>
    <jsp:useBean id="p" class="sax.ReadAtts"/>
    Data after Parsing is.....
    <%=p.parse"E:/Log.xml","/acq/service/metrics/system/stackUsage")%>
    Expected Output:
    The jsp file should print all the vector objects from the "ReadAtts" bean
    Actual Output:
    Data after Parsing.......[]
    Thanks for your time.....
    Newton
    Bangalore. INDIA

    the problem is not because of java code insdie jsp page
    I have removed all things but the form and it is still not working
    here is the modified code:
    <!-- add news-->
    <%
    if(request.getParameter("addBTN") != null){
            out.print("addBTN");
    %>
    <!-- end of add news-->
    <form action="" method="post" enctype="multipart/form-data" name="upform" >
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr>
          <td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
        </tr>
        <tr>
          <td width="87%" align="right"><label>
            <input name="title" type="text" class="rightText" id="title">
          </label></td>
          <td width="13%" align="right">9FH'F 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
              </textarea></td>
          <td align="right">*A'5JD 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input type="file" name="filename" id="filename">
          </label></td>
          <td align="right">5H1)</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input name="addBTN" type="submit" class="btn" id="addBTN" value="  '6'A) .(1 ">
          </label></td>
          <td align="right"> </td>
        </tr>
      </table>
    </form>
    <!-- TinyMCE -->
    <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
            tinyMCE.init({
                    mode : "textareas",
                    theme : "simple",
                    directionality : "rtl"
    </script>
    <!--end of TinyMCE -->

  • Reports who work in BIP 10G does not work in BIP 11G

    Hi!
    We are in the middle of going from BIP 10G to BIP 11G (latest patch installed the 9 of february). We have used the Upgrade Assistant to migrate the reports from 10G to 11G, about 80-90% are working directly.
    But, as always are there some problems. There are 2 major problems I am struggling with for the moment. 1 is long running reports who gets "Connection reset by peer" before the report ends and the more problematic which is this:
    [2012-02-27T11:09:50.397+01:00] [bi_server1] [ERROR] [] [oracle.xdo] [tid: 24] [userId: <anonymous>] [ecid: 22bf1318a95b3a18:-528a5dc9:135b0d15f61:-8000-0000000000025a30,0] [APP: bipublisher#11.1.1] XSL error:[[
    <Line 80, Column 151>: XML-23002: (Error) internal xpath error
    @Line 80 ==> <_G><xsl:if test="sum($G1[(./QADATE02 = current-group()/QADATE02)]/QATRQT) = '0'" xdofo:ctx="3">
    [2012-02-27T11:09:50.397+01:00] [bi_server1] [WARNING] [] [oracle.xdo] [tid: 24] [userId: <anonymous>] [ecid: 22bf1318a95b3a18:-528a5dc9:135b0d15f61:-8000-0000000000025a30,0] [APP: bipublisher#11.1.1] oracle.xdo.XDOException: java.lang.reflect.InvocationTargetException[[
         at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1205)
         at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:276)
         at oracle.xdo.template.FOProcessor.createFO(FOProcessor.java:1973)
         at oracle.xdo.template.FOProcessor.generate(FOProcessor.java:1117)
         at oracle.xdo.servlet.RTFCoreProcessor.transform(RTFCoreProcessor.java:124)
         at oracle.xdo.servlet.CoreProcessor.process(CoreProcessor.java:372)
         at oracle.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:93)
         at oracle.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:1059)
         at oracle.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:624)
         at oracle.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:477)
         at oracle.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:447)
         at oracle.xdo.servlet.XDOServlet.doGet(XDOServlet.java:267)
         at oracle.xdo.servlet.XDOServlet.doPost(XDOServlet.java:299)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.xdo.servlet.metadata.track.MostRecentFilter.doFilter(MostRecentFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:122)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.xdo.servlet.init.InitCheckingFilter.doFilter(InitCheckingFilter.java:64)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor7820.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:917)
         at oracle.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:609)
         at oracle.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:328)
         at oracle.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:187)
         at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1181)
         ... 40 more
    Caused by: oracle.xdo11g.xqxp.XQException: XPTY0004
         at oracle.xdo11g.xslt.XSLStylesheet.flushErrors(XSLStylesheet.java:1850)
         at oracle.xdo11g.xslt.XSLStylesheet.execute(XSLStylesheet.java:616)
         at oracle.xdo11g.xslt.XSLStylesheet.execute(XSLStylesheet.java:551)
         at oracle.xdo11g.xslt.XSLProcessor.processXSL(XSLProcessor.java:345)
         at oracle.xdo11g.xslt.XSLProcessor.processXSL(XSLProcessor.java:194)
         at oracle.xdo11g.xslt.XSLProcessor.processXSL(XSLProcessor.java:230)
         at oracle.xdo11g.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:124)
         at sun.reflect.GeneratedMethodAccessor7820.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:920)
         ... 44 more
    Does anyone have the solution for this type of error, we have about 30-40 reports that is behaving like this in BIP 11G but works fine in BIP 10G.
    Can we do anything general in the BIP 11G or does we need to find the solution for each report and change in the template?
    All ideas are appreciated, thanks,
    Anders B

    Hi!
    Have everyone out there been able to use the upgrade assistant without any problem?
    The UA.bat program says everything is ok but the report actually created in BIP 10G does not work in BIP 11G. We are looking for documentation or "findings" of what the problem can be, in a more general way. We are aware of that we probably have to fix this manually, but we dont know what to fix, and it is not so "fun" to be forced to re create all this templates and reports. The datamodell seems for the most of the time works, so we get a working xml source but the creation of the report thru the template dont work.
    Best regards,
    Anders

  • Assign not working

    Hi,
    The below assign statement is not working. I am checking whether billToMasterAccount is equal to the OfflineAccountNbr, then i am assigning the value to the target variable BillToAccount. Actually i am not supposed to use switch to check this condition.
    *<copy>*
    *<from variable="Invoke_WS_MW_OUT_MwWebService_getVistaAgreements_OutputVariable"*
    part="parameters"
    *query="/ns10:getVistaAgreementsResponse/ns10:getVistaAgreementsReturn[ns11:billToMasterAccount=bpws:getVariableData('Invoke_OSB_BSOA_OUT_Services_process_OutputVariable','payload','/ns1:ORDER/Company/OfflineAccountNbr')]"/>*
    *<to variable="BillToAccount"*
    *part="parameters"*
    *query="/ns10:getVistaAgreementsResponse/ns10:getVistaAgreementsReturn"/>*
    *</copy>*
    I am getting the following error.
    *Error in evaluate <from > expression at line "688". The result is empty for the XPATH expression : "/ns10:getVistaAgreementsResponse/ns10:getVistaAgreementsReturn[ns11:billToMasterAccount=bpws:getVariableData('Invoke_OSB_BSOA_OUT_Services_process_OutputVariable','payload','/ns1:ORDER/Company/OfflineAccountNbr')]"*
    *"{http://schemas.xmlsoap.org/ws/2003/03/business-process}selectionFailure" has been thrown.*
    *<selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">*
    *<part name="summary">*
    *<summary>empty variable/expression result.*
    *xpath variable/expression expression "/ns10:getVistaAgreementsResponse/ns10:getVistaAgreementsReturn[ns11:billToMasterAccount=bpws:getVariableData('Invoke_OSB_BSOA_OUT_Services_process_OutputVariable','payload','/ns1:ORDER/Company/OfflineAccountNbr')]" is empty at line 688, when attempting reading/copying it.*
    *Please make sure the variable/expression result "/ns10:getVistaAgreementsResponse/ns10:getVistaAgreementsReturn[ns11:billToMasterAccount=bpws:getVariableData('Invoke_OSB_BSOA_OUT_Services_process_OutputVariable','payload','/ns1:ORDER/Company/OfflineAccountNbr')]" is not empty.*
    *Possible reasons behind this problems are: some xml elements/attributes are optional or the xml data is invalid according to XML Schema.*
    *To verify whether XML data received by a process is valid, user can turn on validateXML switch at the domain administration page.*
    *</summary>*
    *</part>*
    *</selectionFailure>*

    Hi,
    Looks like the variable/s you are comparing donot have any value to be compared.
    If you are using a select and populating the output to these variables, have a check after the select to see if it is a empty variable and then do a compare.
    Regards,
    Aasta

  • Enhanced Interface Determination - does not work!

    Hi guys,
    well i have a scenario where i have done a multi mapping where MT_TYPSCH is generated for each new value which occurs in one special source field.
    <NO>1</NO>
    <NO>2</NO>
    <NO>3</NO>
    ..so three MT will be generated.
    Now i would like these messages devided to different Business Services where each one has on FTP-CC to write a file with a certain filename, e.g. File1.txt, File2.txt, File3.txt.
    Therefore i thought i use different receivers in Receiver Determination with using Conditions and pointing to a value in field with XPATH. So depending on field <NO> the message should be routed to the given receiver targets.
    I surely use the enhanced Interface Determination because i use multi mapping.
    But when i run test, i receive 3 files with different names but same content. For me the receiver determination is not working that good.
    Can someone help me on this?!
    source:
    <ZBC0>
    <IDOC BEGIN="">
    <EDI_DC40 SEGMENT="">
    <ZBC0 SEGMENT=""> 0...9999
    <NO>1</NO>
    <TYPE>1B20-6</TYPE>
    <SPEC>152J</SPEC>
    </ZBC0>
    <ZBC0 SEGMENT="1">
    <NO>2</NO>
    <TYPE>1B20-6</TYPE>
    <SPEC>152J</SPEC>
    </IDOC>
    </ZBC0>
    target:
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_TYPSCH> 1..1
    <TYPSCHRecordSet> 1..1
    <TYPSCHDetailsStruc> 1..unbounded
    <FELD1/> {represents content of <No>}
    <FELD2/>
    <FELD3/>
    </TYPSCHDetailsStruc>
    </TYPSCHRecordSet>
    </MT_TYPSCH>

    Hi Mario,
    ok here is my requirement.
    We get ONE IDoc in which several items are listed. These have one field <NO> which can have the values 1,2 and 3. Depending on this value the items should be collected and written to different files on FTP.
    My approach is that i divide all the items in mapping in different Message Types. This MT should be routet to different business services which has one CC to write on FTP.
    To get the items with e.g. <NO>1</NO> i took condition in reciever determination using xpath. ((/ZBC21/IDOC/ZBC21/NO = 1).
    So depending on the mapping everything runs - in my point of view but the different messages are not routed to the different services to write them to different files.
    Source
    <ZBC0>
    <IDOC BEGIN="">
    <EDI_DC40 SEGMENT="">
    <ZBC0 SEGMENT=""> 0...9999
    <NO>1</NO>
    <TYPE>1B20-6</TYPE>
    <SPEC>152J</SPEC>
    </ZBC0>
    <ZBC0 SEGMENT="1">
    <NO>2</NO>
    <TYPE>1B20-6</TYPE>
    <SPEC>152J</SPEC>
    </IDOC>
    </ZBC0>
    target:
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_TYPSCH> 1..1
    <TYPSCHRecordSet> 1..1
    <TYPSCHDetailsStruc> 1..unbounded
    <FELD1/> {represents content of <NO>}
    <FELD2/>
    <FELD3/>
    </TYPSCHDetailsStruc>
    </TYPSCHRecordSet>
    </MT_TYPSCH>
    The output should be files with content of items depending on field <NO>.
    file1.txt (all items with <NO>1</NO>)
    file2.txt
    file3.txt
    I hope i made it clearer!
    br

  • Spry Accordian 2nd Panel Does Not Work in IE 8

    Anyone have a suggestion on this. I created a two tabbed according panel to show content below and image using the XML data set feed to dynamically insert content. The content for the first panel shows up nicely and so does the tab for the second item, but when the second panel is clicked to reveal the content in IE8 the action works but no content is displayed. Additionally an error message comes up that says there is a problem on the Spry script called SpryData.js character 2 on line 169.
    The according works nicely and content is visible on Safari, Firefox, and IE 7 but not in IE 8. This is the only browser that shows no content.
    Any suggestions on a fix. I have looked online and in the forum but do not see any specific information on how to fix this other an "well you know it is IE".
    Wish I had a link to show, but just undid my two hours of work when it was clear I could not get it to work but if you really need to see it in IE * to help me, I will redo it all and post a link.
    Thanks in advance for seeing if you can help.

    Thanks to both of you for your responses. I ended up fixing it myself and here is what I did. I had upgraded my Spry to the new version and it still was broken. I had a test version that I had done in a class that worked in IE but mine as I integrated it into my own website would not work. I found that by loading the old xpath.js file from my testing class files I was able to get the panels to work in IE all versions, Firefox, Chrome and Safari on my new page.
    I am not sure why the new upgraded version of the Spry xpath.js file would not work, go figure, but after literally hours on it and reviewing and validating the code there was nothing on my end that would cause the problem.
    Here is the finished and completed page. http://www.mccordweb.com/web-design/portfolio.php
    If you have a similar problem you can grab the xpath.js file that works for me better than the new version xpath.js here: http://www.mccordweb.com/SpyAssets/xpath.js
    I don't clearly understand why this is a problem but the old file solved the issue.

  • XSLT not working correctly in BPEL

    Hi,
    We are using XSLT to remove namespaces from our XSL. When testing this XSL in Jdeveloper, it works fine. But when we using it in BPEL, the transformation is not working correctly.
    Please find below the XSL content
    +<xsl:stylesheet version="1.0"+
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"                xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"+
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    exclude-result-prefixes="xsl xref xp20 bpws ora ehdr orcl ids hwf">
    +<xsl:template match="comment()|processing-instruction()|/">+
    +<xsl:copy>+
    +<xsl:apply-templates/>+
    +</xsl:copy>+
    +</xsl:template>+
    +<xsl:template match="*">+
    +<xsl:element name="{local-name()}">+
    +<xsl:apply-templates select="@* | node()"/>+
    +</xsl:element>+
    +</xsl:template>+
    +<xsl:template match="@*">+
              +<xsl:choose>+
                   +<xsl:when test="name() != 'xmlns'">+
                        +<xsl:attribute name="{local-name()}">+
                             +<xsl:value-of select="."/>+
                        +</xsl:attribute>+
                   +</xsl:when>+
              +</xsl:choose>+
    +</xsl:template>+
    +</xsl:stylesheet>+
    The BPEL code of the transform is:
    +<assign name="Transform_1">+
    +<bpelx:annotation>+
    +<bpelx:pattern>transformation</bpelx:pattern>+
    +</bpelx:annotation>+
    +<copy>+
    +<from expression="ora:processXSLT('Transformation_1.xsl',bpws:getVariableData('inputVariable','payload'))"/>+
    +<to variable="TempVar" part="payload" query="/ns1:mthReplacement_input"/>+
    +</copy>+
    +</assign>+
    Not sure why the transformation isnt working in BPEL. Has anyone faced similar issues? Please share your experiences.
    Thanks
    John

    Hi John ,
    We have tried this instead of writing new code in the xslt , pls do the following
    1.Open the xslt in jdev.
    2.Remove the attribute exclude-result-prefixes for the element xsl:stylesheet.
    3.Your new XSLT file should look like below,
    <xsl:stylesheet version="1.0"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    +xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    >
    ....business logic...
    </xsl:stylesheet>
    4.Compile and deploy your BPEL Process.
    5.You should not see any namespaces in the BPEL Console now for this xslt.
    Thank you.
    Regards
    Venkat.

  • Transformation not working on result  from oraext:query-database() functio

    Step 1: Create a project in Jdeveloper (File->New->Project->SOA Project)
    Step 2: Select synchronous process
    Step 3: Take the default schema for input and output
    Step 4: create a schema to hold multiple simple type string values.
    Step 5: Import that xsd file in the project wsdl file.
    Step6: Create a another variable (var1) referring the above element type (result)
    Step7: Drop an assign activity from component palette to the process between Receive and Replay activity
    Step 8: In the from section use the function oraext:query-database("select ename from emp",true(),true(),'jdbc/EBS_database').in the to section select the var1 variable.
    Step9: Drop another assign activity from component palette to the process before Replay activity and after the first assign activity
    Step 10: In from section select the first ename using xpath from var variable and assign to the output variable.
    Error: The value is not coming to the output from source(var) variable using xpath or transformation.

    See the audit trail on EM and verify why it is not working.
    Regards,
    Anuj

  • War file deployment to Test env not working

    Hi All,
    i am using war file as scheduler for calling bpel process. Now i need to move the same war to test environment. For this i followed this site http://biemond.blogspot.ca/2009/04/using-weblogic-deployment-plan-to.html. But it is not working.
    even i update the generated deployment plan to weblogic console, but still this is not working.
    here is the my web.xml file
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
             version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
      <description>Empty web.xml file for Web Application</description>
        <context-param> 
            <param-name>wsdlUrl</param-name> 
            <param-value>http://sasoah91.corp.gdglobal.ca:8001/soa-infra/services/TarakTest/TSStoRMSScheduler/tsstormsschedulerproject_client_ep?WSDL</param-value> 
         </context-param>
      <servlet>
        <servlet-name>SOASchedulerServlet</servlet-name>
        <servlet-class>sample.oracle.otn.soascheduler.SOASchedulerServlet</servlet-class>
         <init-param>
          <param-name>cronExpr</param-name>
          <param-value>0 0,5,10,15,20,25,30,35,40,45,50,55 * * * ?</param-value>
        </init-param>
      </servlet>
      <servlet-mapping>
        <servlet-name>SOASchedulerServlet</servlet-name>
        <url-pattern>/soaschedulerservlet</url-pattern>
      </servlet-mapping>
      <welcome-file-list>
        <welcome-file>/soaschedulerservlet</welcome-file>
      </welcome-file-list>
    </web-app>My deployment plan is
    <?xml version='1.0' encoding='UTF-8'?>
    <deployment-plan xmlns="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd" global-variables="false">
      <application-name>TSSScheduler.war</application-name>
      <variable-definition>
      <!--  add the wsdl var   -->
        <variable>
            <name>wsdlUrl</name>
            <value>http://sasoah81.corp.gdglobal.ca:8001/soa-infra/services/TSStoRMS/TSStoRMSScheduler/tsstormsschedulerproject_client_ep?WSDL/</value>
         </variable>
        </variable-definition>
      <module-override>
        <module-name>TSSScheduler.war</module-name>
        <module-type>war</module-type>
        <module-descriptor external="false">
          <root-element>weblogic-web-app</root-element>
          <uri>WEB-INF/web.xml</uri>
              <variable-assignment>
             <name>wsdlUrl</name>
             <xpath>/web-app/context-param/[param-name="wsdlUrl"]/param-value</xpath>
             <operation>replace</operation>
           </variable-assignment>
          </module-descriptor>
      </module-override>
      <!--<config-root>/u01/textdata/SOATST/Tarak/TsstoRmsSchedulerProject/deploy</config-root>-->
    <config-root>/u01/textdata/SOATST/Tarak/deploymentplan</config-root>
    </deployment-plan>I ran below code
    export ORACLE_HOME="/u01/app/soadev/product/fmw11/middleware"
    echo "ORACLE_HOME=$ORACLE_HOME"
    ls -l $MW_HOME/wlserver_10.3/server/bin/setWLSEnv.sh
    . $MW_HOME/wlserver_10.3/server/bin/setWLSEnv.sh
    export JAVA_HOME="/usr/java/jdk1.6.0_24"
    export planname="TSSScheduler.xml"
    export warfile="/u01/textdata/SOATST/Tarak/TsstoRmsSchedulerProject/deploy/TSSScheduler.war"
    echo "---------------------------------------"
    echo "THE CLASSPATH=$CLASSPATH"
    echo "---------------------------------------"
    java weblogic.Deployer -adminurl t3://sasoah81.corp.gdglobal.ca:7001 -username weblogic -password Soatst_s132 -deploy -name TsstoRmsSchedulerProject -source $warfile -targets AdminServer -stage -plan $plannameCan some one please let me know where i am going...
    Also can some one tell me any other way to change the endpoint in war file. this is very urgent so kindly request all to let me know how to go with it.
    Regards,
    Tarak.

    Hi,
    Here is what the parameter says
    <servlet>
    <servlet-name>SOASchedulerServlet</servlet-name>===================My Serverlet name
    <servlet-class>sample.oracle.otn.soascheduler.SOASchedulerServlet</servlet-class>======Server class
    <init-param>
    <param-name>cronExpr</param-name>=======this is cron job
    <param-value>0 0,5,10,15,20,25,30,35,40,45,50,55 * * * ?</param-value>===this invoke my bpel process in every 5 mins.
    </init-param>
    </servlet>
    Please see the side line comments
    Sure i will open the ticket,
    Regards,
    Tarak.

Maybe you are looking for

  • Totally ridiculous.... Lumia 800 won't sync my con...

    I've been having this problem for a while now (~1month) with my company phone I use for business and would need this basic functionality to work to be able to change my broken Lumia800 (speaker is kaputt) to a new one (which I already have sitting on

  • Can a labview VI can be converted into Hex file for dumping into Microcontroller

    I want to know whether we can convert a LabVIEW VI into HEX file so that we can dump into  microcontroller like 8051 or AVR or not. If not is there any possibility that we can make a VI which can convert a LabVIEW VI into HEX file.

  • What is the program in SRM to convert a shopping cart to be a purchase req?

    SRM gurus, What is the program in SRM to convert a shopping cart to be a purchase requisition? I intented to put some break points in some related programs/BADIs and to see if those program will be called when a shopping cart is converted to a purcha

  • Can't get iCal to start mimized on logon

    I've had this problem for a while - and tested it out with my wife's new iMac as well. Checking the start up minimized box in User preferences does not make iCal start up minimized when I have it start up when I open it at logon. It starts up in full

  • Upgraded, now can't play

    I upgraded my java browser to the latest version jre1.5.0_4 and now I can't seem to get any of the games at pogo to work. Anyone able to help?