MDX Query Syntax error

I have a simple MDX query is shown in below:
SELECT [Accounts].[pv] ON ROWS,
[Reporting].Members ON COLUMNS
FROM RoggeBSO.Db
(please note that Accounts, pv and Reporting words are in square brackets)
When I execute this query on the MDX Script Editor (in EAS), I get the following syntax error:
Statement Executed with warnings.
Syntax error in input MDX Query on line 1 at token 'ON'
Unexpected Essbase error 1260052
I tried this on both ASO & BSO cubes but didn't work. Could anyone help please?
Regards
Chandra
Edited by: user2695091 on 22-Apr-2009 03:27

SELECT {[Accounts].[pv]} ON ROWS,
{[Reporting].Members} ON COLUMNS
FROM RoggeBSO.Db

Similar Messages

  • MDX query : Syntax error at token 'NONEMPTYMEMBER'

    Syntax error when executing this very simplified MDX query :
    WITH
    MEMBER [ANNEE].[YEAR1] AS
    NONEMPTYMEMBER FY10
    [FY10]
    MEMBER [ANNEE].[YEAR2] AS
    NONEMPTYMEMBER [FY10]
    [FY10]
    SELECT
    {[YEAR1],[YEAR2]} ON COLUMNS
    FROM [MICOPIGE.COM_MBU]
    Syntax error in input MDX query on line 9 at token 'NONEMPTYMEMBER'
    Note that line 9 "NONEMPTYMEMBER FY10" is a copy of line 4
    No error if I delete line 4
    Any help to understand and fix this error would be greatly appreciated.

    Precision : My goal is to reduce the 30mn duration of a complex MDX query with many calculated members, using the NONEMPTYMEMBER token.

  • MDX Concat Syntax Error

    We have an SAP BW7 BEX Query with 2 characteristics which we want to concatenate together in a new Universe Dimension.
    From searching around the syntax should be :
    <EXPRESSION>@Select(Financial Item\L03 Financial Item)||@Select(Financial Item\L00 Financial Item GFRM Item Long Text (Key))</EXPRESSION>
    Parses OK
    Also tried :
    <EXPRESSION>[ZS_ITEM                       02H2].[LEVEL03].[[2ZS_SBMITM]].[Value]||[ZS_ITEM                       02H2].[LEVEL03]</EXPRESSION>
    Again Parses OK
    When we add this dimension to a Webi report the following MDX error is presented.
    Query 1 - Demo Universe - BCS Subset - SubConsolidated BS Report 2
    A database error occured.
    The database error text is:
    The MDX query WITH MEMBER [Measures].[9DB8D426-17C4-4BDB-95,22,9C,9D,3,CF,25,53] AS ' [ZS_ITEM                       02H2].[LEVEL03][ZS_ITEM                       02H2].[LEVEL03] '  SELECT  { [Measures].[9DB8D426-17C4-4BDB-95,22,9C,9D,3,CF,25,53] }  ON COLUMNS , NON EMPTY {[ZCONSUNIT].DEFAULTMEMBER} ON ROWS FROM [ZMVBCS_1/BO_FMA_BCS_001_GR_SUBC_BS] SAP VARIABLES [!V000005] INCLUDING [0CS_PLEVEL].[00] : [0CS_PLEVEL].[30] [!V000001] INCLUDING [ZCONSUNIT].[4068] [!V000006] INCLUDING [ZLCGC].[LC] [!V000004] INCLUDING [0FISCPER3].[004] : [0FISCPER3].[004] [!V000003] INCLUDING [0FISCYEAR].[K42008] failed to execute with the error Unknown error. (WIS 10901)
    Anyone have any ideas?
    Thanks,
    Steve

    Despite the successful parse, I do not believe @Select works with anything beyond Key Figures.  And even with Key Figures you can only do very simple statements without MDX errors occurring on refresh...again despite the OK parsing.  The best bet is to do everything you can at the BEx Query level and don't expect too much on Universe customization.
    The forums and BOB message boards are loaded with WIS 10901 errors on refresh of reports using customized objects in the Universe.  Unfortunately, best practice guides and other documentation provide only limited guidance whether it be account authorizations or comlex MDX syntax or something else unknown.  A more comprehensive guide on MDX syntax modifications and complex scenarios from real world customer scenarios would be ideal.  Being that there is only so much you can do at the Universe level.
    So, for time being we really guide customers if an object is created at the UNV level off of BEx and it does not meet reporting requirements...make the change at the BEx level.  This is not always ideal, but you will have less headaches.

  • Select-options in SELECT query - syntax error

    Hi all,
      I get the error below when I try to use the select options in a SELECT query . Please help me.
    "The IN operator with "SO_AWART" is followed neither by an internal
    table nor by a value list."
    The code i have used(Logical database  PNP is used):
    TABLES: pernr,
            catsdb.
    INCLUDE ztime_cwtr_top.    " global Data
    INCLUDE ztime_cwtr_f01.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    SELECT-OPTIONS SO_AWART FOR CATSDB-AWART.
    PARAMETERS P_THRES TYPE I.
    SELECTION-SCREEN END OF BLOCK B1.
    Get data from CATSDB table. Workdates within the date interval are considered.
      SELECT pernr workdate awart catsquantity beguz enduz status
      FROM catsdb
      INTO TABLE it_catsdb
      WHERE pernr  = pernr-pernr    AND
           workdate GE pn-begda     AND
           workdate LE pn-endda     AND
           status   IN ('20', '30') AND
           awart    IN  so_awart .
          awart    IN ('1100', '1137', '1138', '1139', '1140',
                      '1147', '1148', '1149', '1157', '2003' ).
    when I give the values directly i do not get any syntax error, but when I use select options in the where condition I get the syntax error.
    I have tried different options like using only the select-options in the where condition.
    Thanks in advance.....
    Madhu

    Solved.
    Code with syntax error:
    include z...top .
    include z...fo1.
    select-options: xxxxxxx
    Code  with no syntax error:
    select-options: xxxxxxx
    include z...top .
    include z...fo1.
    Thanks for all your help,
    Madhu

  • Getting the MDX query select error when running a webi report on BI query

    Getting the following error when running a webi report on BI query :
    A database error occured. The database error text is: The MDX query SELECT  { [Measures].[D8JBFK099LLUVNLO7JY49FJKU] }  ON COLUMNS , NON EMPTY [ZCOMPCODE].[LEVEL01].MEMBERS ON ROWS FROM [ZTEST_CUB/REP_20100723200521]  failed to execute with the error Unknown error. (WIS 10901).
    I have gone through many threads related to this error. But not able find the steps to follow for resoultion.
    Please help in this regard.
    Thanks,
    Jeethender

    The Fix Pack is also for Client Tools--it is a separate download.  Please see the text below for ADAPT01255422
    ADAPT01255422
    Description:
    Web Intelligence generates an incorrect MDX statement when a characteristic and a prompt are used.
    The following database error happens: "The MDX query ... failed to execute with the error
    Unknown error (WIS 10901)."
    New Behavior:
    This problem is resolved.
    This information is also available in the Fixed Issues document for any Fix Pack greater than 2.2.

  • InfoSet Query: Syntax Error while generating the program.

    Dear All,
    I have a Query in CRM system which contains an Infoset based on LDB.
    The InfoSet Query throws up a Syntax error while generating the program.
    So, we are not able to change the Infoset using the Infoset Query through SQ01.
    The error is as follows:-
    Syntax error in program "AQZZ==/SAPQUERY/CRM_ACTMON1 ".
    Error in the ABAP Application Program
    The current ABAP program "CL_QUERY_OUTPUT_DEFINITION====CP" had to be
    terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "AQZZ==/SAPQUERY/CRM_ACTMON1 "
    in include "AQZZ==/SAPQUERY/CRM_ACTMON1 " in
    line 28:
    ""CRMT_REPORT_LOCATORLIST" must be a flat structure. You cannot use int"
    "ernal tables, strings, references, or structures as components. -"
    Please help me arrive at an solution, so that we are able to change the Infoset through the InfoSet Query.
    Awaiting your reply as soon as possible.
    Thanks and Regards,
    Pankaj.

    There is an error in your query, specifically in the definition of CRMT_REPORT_LOCATORLIST. In the short dump (transaction ST22) you will see more details and the exact location of an error if you just scroll down.
    I can't tell more because this problem is specific to your system, to which I have no access. Read the whole dump and look at all the objects mentioned there.

  • Query syntax error after multiprovider change

    Hi everyone,
    I removed key figures from a multicube, changed a query on top afterwards and saved it. The key figures are no longer in the key figure list of the query in the Query designer, and are no longer used in any place within the query.
    Now, I'm getting a syntax error on query execution, since the compiled query still contains a reference to the old key figures. Regeneration via RSRT or saving under a new name doesn't work, and to delete the generated report I need a developer key.
    Any ideas?
    Regards,
    Tilman

    Hi Shashank,
    thanks for your response.
    I did try the "check query" button, it didn't return an error. When executing the query via rsrt, I get a dump due to "Syntax error in program GP48VM7K0MSF08DRO2382A2PSTI ". The program still contains data type references to the removed infoobjects. When checking the program via SE38, you get just that syntax error.
    I'm looking for a way to clean these things up. Even when creating a new query on the aggregation level (I was talking about a multiprovider earlier, which is located underneath), the error pops up. I activated all the objects along the way, with no effect.
    Regards,
    Tilman

  • Query syntax error

    Hi,
    I've a query for a report as below. I want distinct donor code whereas i have 2 or more customers with same name and i want to retrieve data of customers between specific donor codes.I've a syntax error where i give 'between' for the following syntax in the code
    DONOR_TAB.DONOR_CODE BETWEEN DONOR_TAB.DONOR_CODE=:p_code AND DONOR_TAB.DONOR_CODE=:p_code
    The following is the query:
    SELECT ALL INITCAP(TITLE_TAB.TITLE_NAME||' '||DONOR_TAB.FIRST_NAME||' '||DONOR_TAB.MIDDLE_NAME||' '||DONOR_TAB.LAST_NAME) donor_name,
    RTRIM(INITCAP(RPAD(DONOR_TAB.ADDRESS1, 35, ' ')||RPAD(DONOR_TAB.ADDRESS2, 35, ' ')||RPAD(DONOR_TAB.STREET, 30, ' '))) DISPLAY_COL2,
    INITCAP(CITY_MASTER_TAB.CITY_NAME||' - '||DONOR_TAB.PIN) DISPLAY_COL3,
    INITCAP(CITY_MASTER_TAB.STATE_NAME||', '||CITY_MASTER_TAB.COUNTRY_NAME) DISPLAY_COL4,
    UPPER('DONOR CODE'||' - '||CITY_MASTER_TAB.CITY_NAME||'/'||DONOR_TAB.DONOR_CODE) DISPLAY_COL5
    FROM DONOR_TAB, CITY_MASTER_TAB, TITLE_TAB, DONOR_PROG_TAB
    WHERE donor_tab.donor_code = donor_prog_tab.donor_code AND DONOR_TAB.CITY_CODE = CITY_MASTER_TAB.CITY_CODE
    AND DONOR_TAB.TITLE_CODE = TITLE_TAB.TITLE_CODE
    OR DONOR_TAB.DONOR_CODE = :p_code
    OR DONOR_TAB.DONOR_CODE BETWEEN DONOR_TAB.DONOR_CODE=:p_code AND DONOR_TAB.DONOR_CODE=:p_code
    OR DONOR_TAB.LANG = :P_LANG
    OR DONOR_TAB.REMINDER = :P_REMINDER
    ORDER BY DONOR_TAB.DONOR_CODE
    Can you help me as to how i rectify this error
    Thanks

    Syntax is like this
    DONOR_TAB.DONOR_CODE BETWEEN :p_code AND :p_code
    Note:
    You hav given initial and final values as same(p_code)

  • MySQL InnerJoin query syntax error?

    I can't seem to locate the syntax error in this MySQL query.  Coldfusion says there an error in my sql syntax.  Here is the query.  Anyone have any clues on this?
    <cfquery name="queryItem" datasource="bonus">
    select
    p.productid,
    p.modelnumber,
    p.modeldescription,
    sp.sp_bonusamount as Amount
    from
    products i join bonusproducts sp on i productid = sp.sp_productid
    inner join program p on sp.sp_programid = p.programid
    where
    p.CompanyOrgLevelID in (#getParentCompanyOrgLevelIDList(session.CompanyOrgLevelID)#)
    and p.ProgramID = #programID#
    <cfif categoryID gt 0>
    and CategoryID in (#getSubcategoryIDList(categoryID)#)
    </cfif>
    order by
    #sortColumn# #sortDirection#
    </cfquery>

    To troubleshoot, run this:
    select
    p.productid,
    p.modelnumber,
    p.modeldescription,
    sp.sp_bonusamount as Amount
    from
    products i join bonusproducts sp on i productid = sp.sp_productid
    inner join program p on sp.sp_programid = p.programid
    where 1 = 2
    If it runs successfully, keep adding bits and pieces until it crashes.  Then you'll know what made it crash.
    Also enable debugging so you can see the sql that gets generated from your code.   That's often useful.

  • JDQL named query syntax error

    Hi,
    we have a syntax error in our JDOQL-namedQuery. We want to do a join over
    two tables "TestOrder" and "TestOrderPosition" and get this error:
    (we use Kodo 4.0)
    <?xml version="1.0"?>
    <jdoquery>
    <package name="salt.domain.orderservice.entity">
    <class name = "TestOrder">
         <query name="findByOrderId">select where
    testOrderPositions.contains(testOrderPosition) and
    testOrderPosition.description==:t variables
    salt.domain.orderservice.entity.TestOrderPosition testOrderPosition</query>
    </class>
    </package>
    </jdoquery>
    <4|false|4.0.0EA3> kodo.jdo.UserException: An error occurred while parsing the
    query filter "testOrderPositions.contains(testOrderPosition) and
    testOrderPosition.description==:t". Error message: The JDOQL string is not
    valid. Make sure all parentheses are matched and that you use proper Java
    syntax.
         kodo.query.AbstractExpressionBuilder.parseException(AbstractExpressionBuilder.java:92)
         kodo.query.jdoql.JDOQLExpressionBuilder.evalExpression(JDOQLExpressionBuilder.java:508)
         kodo.query.jdoql.JDOQLExpressionBuilder.eval(JDOQLExpressionBuilder.java:265)
         kodo.query.jdoql.JDOQLParser.eval(JDOQLParser.java:98)
         kodo.query.ExpressionStoreQuery$DataStoreExecutor.<init>(ExpressionStoreQuery.java:542)
         kodo.query.ExpressionStoreQuery.newDataStoreExecutor(ExpressionStoreQuery.java:154)
         kodo.query.QueryImpl.createExecutor(QueryImpl.java:807)
         kodo.query.QueryImpl.compileForDataStore(QueryImpl.java:741)
         kodo.query.QueryImpl.compileForExecutor(QueryImpl.java:721)
         kodo.query.QueryImpl.compile(QueryImpl.java:635)
         kodo.kernel.BrokerImpl.namedQuery(BrokerImpl.java:3681)
         kodo.kernel.DelegatingBroker.namedQuery(DelegatingBroker.java:1587)
         kodo.jdo.PersistenceManagerImpl.newNamedQuery(PersistenceManagerImpl.java:1028)
         salt.domain.orderservice.dao.jdo.JDOOrderRepositoryImpl.findOrderWithPositionById(JDOOrderRepositoryImpl.java:85)
         salt.domain.orderservice.OrderRepositoryImpl.findOrderWithPositions(OrderRepositoryImpl.java:91)
         salt.domain.orderservice.OrderServiceImpl.getOrderWithPosition(OrderServiceImpl.java:15)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         java.lang.reflect.Method.invoke(Unknown Source)
         org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
         org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
         org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
         org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
         org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
         org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
         $Proxy0.getOrderWithPosition(Unknown Source)
         salt.application.DddTestController.handleRequest(DddTestController.java:40)
         org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
         org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:717)
         org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658)
         org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
         org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Does anyone have an idea?
    Thanks,
    Ingo Schneider

    Thanks for your help! It works now!
    I have another problem with a very simple query:
    I always get a ClassCastException with the follwoing query. If I left the
    result parameter out the query works. Parameter "t" is an integer, but
    there shouldn't be any cast problems between integer and long.
    <?xml version="1.0"?>
    <jdoquery>
         <package name="salt.domain.orderservice.entity">
              <class name="TestOrder">
         <query name="findByOrderIdPosition">select idOrder where
    idOrder==:t</query>
    </class>
    </package>
    </jdoquery>
    public class TestOrder implements Serializable{
         private String description;
         private long idOrder;
         private Set testOrderPositions = new HashSet();
    getters & setters...
    java.lang.ClassCastException: java.lang.Long
         salt.domain.orderservice.dao.jdo.JDOOrderRepositoryImpl.findOrderWithPositionById(JDOOrderRepositoryImpl.java:99)
         salt.domain.orderservice.OrderRepositoryImpl.findOrderWithPositions(OrderRepositoryImpl.java:91)
         salt.domain.orderservice.OrderServiceImpl.getOrderWithPosition(OrderServiceImpl.java:15)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         java.lang.reflect.Method.invoke(Unknown Source)
         org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
         org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
         org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
         org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
         org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
         org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
         $Proxy0.getOrderWithPosition(Unknown Source)
         salt.application.DddTestController.handleRequest(DddTestController.java:40)
         org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
         org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:717)
         org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658)
         org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
         org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Thanks,
    Ingo Schneider

  • SQL query syntax error .......

    I am using following query
    SELECT PERNR VORNA NACHN GBDAT FROM PA0002
        INTO CORRESPONDING FIELDS OF TABLE ITAB
        WHERE UPPER( VORNA )  = UPPER( STRU_USERIP-VORNA )
        AND   ENDDA >= SY-DATUM
        AND   BEGDA <= SY-DATUM .
    and I am geting syntax error as --
    vorna is   not valid comparison operator .
    can anyone plz suggest me solution over this problem .

    Logic must be written,
    The below logic is incomplete
    Break your head and modify it
    TABLES:pa0002.
    DATA:itab TYPE TABLE OF pa0002.
    DATA:wa TYPE pa0002.
    DATA:lv_vorna TYPE pa0002-vorna.
    DATA:ra_vorna TYPE RANGE OF pa0002-vorna.
    DATA:wa_vorna LIKE LINE OF ra_vorna .
    DATA:lv_index TYPE i.
    DATA:offset TYPE i.
    DATA:pa_vorna TYPE pa0002-vorna VALUE 'Frank'.
    DATA:len TYPE i.
    len = STRLEN( pa_vorna ).
    MOVE pa_vorna TO lv_vorna.
    TRANSLATE lv_vorna TO LOWER CASE.
    wa_vorna-low = lv_vorna.
    APPEND wa_vorna TO ra_vorna.
    MOVE pa_vorna TO lv_vorna.
    TRANSLATE lv_vorna TO UPPER CASE.
    wa_vorna-low = lv_vorna.
    APPEND wa_vorna TO ra_vorna.
    wa_vorna-low = PA_VORNA.
    APPEND wa_vorna TO ra_vorna.
    TRANSLATE PA_VORNA TO LOWER CASE.
    DO len TIMES.
      lv_index = sy-index - 1.
      offset = lv_index + 1.
      DO len TIMES.
        MOVE pa_vorna TO lv_vorna.
        TRANSLATE lv_vorna+lv_index(offset) TO UPPER CASE.
        wa_vorna-low = lv_vorna.
        APPEND wa_vorna TO ra_vorna.
        ADD 1 TO lv_index.
      ENDDO.
    ENDDO.

  • MDX Query Returns Error while Executing this from SSMS through openquery

    Hi I'm getting this kind of Error while executing this ..
    Pls help to get it solve .

    Hi Ashish,
    According to your screenshot, it seems you can create a linked server from a SQL Server to the SSAS server, then use OpenQuery to get Analysis Services database structure, right? In this case, please ensure tha you setting is correctly, here is blog which
    describe how to do it step by step, please refer to the link below to see the details.
    http://dwbi1.wordpress.com/2010/01/01/ssas-dmv-dynamic-management-view/
    http://www.ssas-info.com/VidasMatelisBlog/144_using-ssrs-to-report-ssas-2008-database-structure-using-dmvs#more-144
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • XPATH Database Query Syntax in an Assign

    Trying to get an XPATH Database query to work by assigning the Input variable value in a simple BPEL Process to my query condition. I keep getting invalid XPATH errors. I cannot seem to figure out how get write it out.
    Here is what I have:
    <from expression="orcl:query-database( 'select ename from emp where ename = bpws:getVariableData('inputVariable','payload','/client:ReadDBProcessRequest/client:input')' ,false(),false(),'jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL')"/>
    Here is my error:
    Error(30): [Error ORABPEL-10039]: invalid xpath expression [Description]: in line 30 of "C:\OraBPELPM_1\integration\jdev\jdev\mywork\BPELws\ReadDB\ReadDB.bpel", xpath expression "orcl:query-database( 'select ename from emp where ename = bpws:getVariableData('inputVariable','payload','/client:ReadDBProcessRequest/client:input')' ,false(),false(),'jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL')" specified in <from> is not valid, because XPath query syntax error. Syntax error while parsing xpath expression "orcl:query-database( 'select ename from emp where ename = bpws:getVariableData('inputVariable','payload','/client:ReadDBProcessRequest/client:input')' ,false(),false(),'jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL')", at position "80" the exception is Expected: ). Please verify the xpath query "orcl:query-database( 'select ename from emp where ename = bpws:getVariableData('inputVariable','payload','/client:ReadDBProcessRequest/client:input')' ,false(),false(),'jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL')" which is defined in BPEL process. . [Potential fix]: Please make sure the expression is valid.
    Any help?
    Thanks!!!

    Ok. I have figured out how to place the condition (variable value) inside a concatentated string. So my final result is the actual XPATH Query-Database statement. But the problem is it is being returned as a String. How can I turn that final string into the XPATH expression I need? I suspect another <COPY> block could pull this off but I am not sure how to do it.
    Here is my code:
    <process name="QueryBuild" targetNamespace="http://xmlns.oracle.com/QueryBuild" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:ns1="http://www.w3.org/2001/XMLSchema" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:client="http://xmlns.oracle.com/QueryBuild" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <partnerLinks>
    <partnerLink name="client" partnerLinkType="client:QueryBuild" myRole="QueryBuildProvider"/>
    </partnerLinks>
    <variables>
    <variable name="inputVariable" messageType="client:QueryBuildRequestMessage"/>
    <variable name="outputVariable" messageType="client:QueryBuildResponseMessage"/>
    <variable name="QueryText" type="ns1:string"/>
    </variables>
    <sequence name="main">
    <receive name="receiveInput" partnerLink="client" portType="client:QueryBuild" operation="process" variable="inputVariable" createInstance="yes"/><!-- Generate reply to synchronous request -->
    <assign name="Assign_1">
    <copy>
    <from expression="concat(&quot;orcl:query-database('select ename from emp where empno = &quot;, bpws:getVariableData('inputVariable','payload','/client:QueryBuildProcessRequest/client:input'), &quot;,false(),false(),'jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL)'&quot;)"/>
    <to variable="QueryText"/>
    </copy>
    <copy>
    <from variable="QueryText"/>
    <to variable="outputVariable" part="payload" query="/client:QueryBuildProcessResponse/client:result"/>
    </copy>
    </assign>
    <reply name="replyOutput" partnerLink="client" portType="client:QueryBuild" operation="process" variable="outputVariable"/>
    </sequence>
    </process>

  • "Syntax error in the MDX statement " in Process chain failure??Urgent pls

    Hi Experts,
    could any one suggest me the procedure to rectify the below problems in process chain?
    1."Syntax error in the MDX statement "
    2."Error when getting data (Error when getting data (AXI))"
    Rgds,
    BH

    In which case it'll be that Access has a different date format to MySQL, and you're trying to push the string "'25-Apr-12 10:55 PM" into Access, which it's not understanding. To get around this, you need to treat your variable as a true date/time object, rather than a formatted string.
    CFQueryParams should be used on absolutely every database platform, they'll stop your website being vulnerable to SQL Injection attacks for one, which at the moment you're wide open to. Replace your query with something like this:
    <cfquery name="input_comments" datasource="#DSN#" username="#DSNUSER#" password="#DSNPASS#">
          INSERT INTO comments(
                             commenter,
                             comment,
                             datetime,
                             post_id
                   VALUES(
                             <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.commenter#" />,
                             <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.comment#" />,
                             now(),
                             <cfqueryparam cfsqltype="cf_sql_numeric" value="#form.post_id#" /> )
    </cfquery>
    The QueryParams will handle the data types for you, and should pass values around more safely and with fewer issues. Assuming you just want to store the current date and time you don't even need to get ColdFusion involved, as databases have their own functions for this. I believe Access' version is simply NOW(), so I've put that in your query.
    Give the above a go.

  • Query getting  /crystal/ Program SYNTAX ERROR.

    Hi All,
    I connected to SAP BEX Query using MDX driver. when i execute query getting  /crystal/ Program SYNTAX ERROR.
    I imported these  crystal transports R21900741,786,695,754,780 .
    but got error for R71K900087 .
    MY SAP BW system version is SAP BW701 SP10 , Please suggest.
    Thanks,
    Joseph

    Thanks Mohammed. But our application is trying to pass a parameter which contains user data like section numbers....
    So when we pass the value 123.1(a) , here what is happening behind the scene of CR viewer
    webSource0.AddParameter "promptex-NAMEOFPARAMETER", "123.1%28a%29"
    and it throws up the error
    "The syntax of the value for prompt 'NAMEOFPARAMETER' is incorrect. Please correct the syntax and try again"
    I have no idea why it is throwing up this errror....

Maybe you are looking for

  • What do I need?

    Post Author: pma CA Forum: Upgrading and Licensing Hello, I am hoping this is a basic question for someone.  We use Crystal Reports Professional II to report off a MS SQL server.  We would like to share report output amoung our small office of about

  • How to dispay the text values of the info objects in my transformations

    Hi Can any one say how to do a lookup for a text table. For example for a particular customer number i need to get the customer name from the text table.In the same way i need to display the text values of the info objects in my transformations. It w

  • Additional record time problem with series

    I cannot record a particular show appearing on a local PBS station beyond the time the show is on. The show is EastEnders & it comes on every Sunday night. There are 2 different episodes, one starts at 11pm & ends at 11:30, the 2nd show starts at 11:

  • X23 Bios and Embedded Controller Program Updating

    I am trying to update my bios on my x23.  I have relatively old versions of both the bios and the ECP, and both say that they won't work without more current version of the other.  Which one am I supposed to update first? thanks, David

  • How can I plug in an external mic with my headphones?

    I use my desktop to make phone calls alot using a headset, but with my MacBook I can connect my headphones ok but my mic doesnt wanna work when i plug it into the jack next to the headphone jack. Am i doin something wrong?