Unexpected syntax error executing MDX sentence with a "LIKE" predicate

Hello,
I am executing the next MDX sentence correctly on a SAPBW server
SELECT NON EMPTY
          FILTER (
               [0VENDOR].[LEVEL01].MEMBERS ,
               [0VENDOR].CURRENTMEMBER.PROPERTIES("MEMBER_CAPTION") LIKE "V01*"
     DIMENSION PROPERTIES [0VENDOR].[20ADDR_NUMBR], [0VENDOR].[20CITY_2] ON ROWS,
     {[Measures].[0NUMDAY], [Measures].[0RSPL_FCPER]}  ON COLUMNS
FROM [$MY_CUBE]
The MDX is working OK and returning all members that their caption start by "V01".
The problem appears when I execute the query in another SAP server. This new server is returning the next syntax error.
Syntax error: Syntax Error : ....CURRENTMEMBER.PROPERTIES("MEMBE, row 113, item: 113
I was searching about SAP and MDX, LIKE operator, the syntax error... but I did not find any interesting.
Why this query could fail in a certain SAP server but work OK in another?
I tried to change the FILTER condition with a "=" operator and it works OK, but I need the "LIKE" one.
Thanks in advanced.

Thanks for your response.
The MDX query works OK at SAP 7.0SP1, but it does not work at SAP 7.3.1SPS5.
Yes, all attributes are the same and exists, and query was tested also with MDXTEST transaction. At this transaction, the error was the same "Syntax error: Syntax Error : ....CURRENTMEMBER.PROPERTIES("MEMBE, row 11" ...
Note that is a parsing error and it happens parsing the left part of the "LIKE" predicate, so I do not think that attributes were important on this, no?

Similar Messages

  • Syntax error while activating BSP with OTR in htmlb element

    Hallo,
    I get a syntax error if I try to activate the BSP below with the lines commented out: "Statement concluding with "...%_O2_UTL_000" ended unexpectedly".
    I don't know what's going wrong. Have I to to any basis settings or to activate any more services etc? Or is it a bug? WAS620 SP53.
    Can anybody help?
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content>
      <htmlb:document>
        <%-- does not work
        <htmlb:documentHead title="<%=otr(SOTR_VOCABULARY_BASIC/ALL_ITEMS)%>" />
        --%>
        <htmlb:documentHead title="OK" />
        <htmlb:documentBody>
         <%=otr(SOTR_VOCABULARY_BASIC/ALL_ITEMS)%> <-- OK
         <%-- does not work
         <htmlb:textView id="t1" text = "<%=otr(SOTR_VOCABULARY_BASIC/ALL_ITEMS)%>" />
         --%>
         <htmlb:textView id="t1" text = "OK" />
         </htmlb:documentBody>
      </htmlb:document>
    </htmlb:content>
    Thank you
    Andreas

    Thank you for this note.
    I haven't found any one. The keywords 'OTR' or 'HTMLB' are not mentioned in the note...
    I have triggered the installation of SP54 and give feedback if the problem is solved.
    Andreas

  • ActionScript syntax errors are not detection with Flash Builder 4

    I encountered a serious bug with Flash Builder 4, it is not showing ActionScript syntax error within an ActionScript class. How shall I fix this.
    Best Regards,

    Hi Mayank,
    Please find the further details below:
    Steps to Reproduce the bug:
    1. Create a Flex Project (say Test for example)
    2. Created a new ActionScript Class ABC.as within the Flex Project.
    on typing the following code (and even after saving it)
    package123 {
      public1234 class ABC {
      }blahblah123...
    Expeteded Behavior:
    ActionScript Editor should report an syntax errors with the following code.
    Present Beharvior
    no syntax error is detected. This is a regression in Flash Builder 4 as Flex Builder 3 detects ActionScript syntax error instantly (while typing).
    Best Regards

  • Instr function syntax error in MDX quary

    Hi all
    Wen Iam excuting this MDX quary its giving error;syntax error line at 3 ','
    SELECT
    Filter( [PERIOD].Generations(5).Members,
    InStr( [PERIOD].currentmember.[2010], "Cola" ) >0 )
    ON COLUMNS
    FROM REP.Rep;
    but wen iam excuting this below example
    SELECT
    Filter( [PERIOD].Generations(4).Members,
    InStr( "cocaCola", "Cola" ) >0 )
    ON COLUMNS
    FROM REP.Rep;
    its fine
    Plz can any help would be appriciated
    Edited by: user8815661 on 13 avr. 2010 04:17

    Hi gary,
    plz help on this , i already posted in forum but iam confident on u ,
    Ihave one scenario like calculate the ytd values using cross join like
    IIF(is ([Flow].CurrentMember,[YTD]),
    (case
    when
    is ([PERIOD].CurrentMember,[2008.01])
    Then (Sum (crossjoin({[DI-3]},CrossJoin({[FLOW].[MtD]},{[PERIOD].[2008.01],[PERIOD].[2008.01] })))/2)
    when
    is ([PERIOD].CurrentMember,[2008.02])
    Then (Sum (crossjoin({[DI-3]},crossjoin({[FLOW].[MtD]},{[PERIOD].[2008.01],[PERIOD].[2008.02]}))))
    when
    is ([PERIOD].CurrentMember,[2008.03])
    Then (Sum (crossjoin({[DI-3]},CrossJoin({[FLOW].[MtD]},{[PERIOD].[2008.01],[PERIOD].[2008.02],[PERIOD].[2008.03]))))
    etc,othercase)
    but I am trying other oneto decrese the size of formula
    IIF(is ([Flow].CurrentMember,[YTD]),
    (Sum (crossjoin({[DI-3]},CrossJoin({[FLOW].[MtD]},
    {filter([PERIOD].Generations(5).members,StrToNum(Right([PERIOD].CurrentMember.MEMBER_NAME,2)) <= StrToNum(Right([PERIOD].CurrentMember.MEMBER_NAME,2)) AND StrToNum(Left([PERIOD].CurrentMember.MEMBER_NAME,4))=StrToNum(left([PERIOD].CurrentMember.MEMBER_NAME,4)) ) }))))
    , othercase )
    but its result is same value for all the YTDs for every month, something is going wrong some where
    plz any help would be appriociated

  • Error executing a query with large result set

    Dear all,
    after executing a query which uses key figures with exception aggregation the BIA-server log (TrexIndexServerAlert_....trc) displays the following messages:
    2009-09-29 10:59:00.433 e QMediator    QueryMediator.cpp(00324) : 6952; Error executing physical plan: AttributeEngine: not enough memory.;in executor::Executor in cube: bwp_v_tl_c02
    2009-09-29 10:59:00.434 e SERVER_TRACE TRexApiSearch.cpp(05162) : IndexID: bwp_v_tl_c02, QueryMediator failed executing query, reason: Error executing physical plan: AttributeEngine: not enough memory.;in executor::Executor in cube: bwp_v_tl_c02
    --> Does anyone know what this message exactly means? - I fear that the BIA-Installation is running out of physical memory, but I appreciate any other opinion.
    - Package Wise Read (SAP Note 1157582) does not solve the problem as the error message is not: "AggregateCalculator returning out of memory with hash table size..."
    - To get an impression of the data amount I had a look at table RSDDSTAT_OLAP of a query with less amount of data:
       Selected rows      : 50.000.000 (Event 9011)
       Transferred rows :   4.800.000 (Event 9010)
    It is possible to calculate the number of cells retreived from one index by multiplying the number of records from table RSDDSTAT_OLAP by the number of key figures from the query. In my example it is only one key figure so 4.800.000 are passed to the analytical engine.
    --> Is there a possibility to find this figure in some kind of statistic table? This would be helpful for complex queries.
    I am looking forward to your replies,
    Best regards
    Bjoern

    Hi Björn,
    I recommend you to upgrade to rev 52 or 53. Rev. 49 is really stable but there are some bugs in it and if you use BW SP >= 17 you can use some features.
    Please refer to this thread , you shouldn't´t use more than 50% (the other 50% are for reporting) of your memory, therefor I have stolen this quote from Vitaliy:
    The idea is that data all together for all of your BIA Indexes does not consume more then 50% of total RAM of active blades (page memory cannot be counted!).
    The simpliest test is during a period when no one is using the accelerator, remove all indexes (including temporary) from main memory of the BWA, and then load all indexes for all InfoCubes into ain memory. Then check your RAM utilization.
    Regards,
    -Vitaliy
    Regards,
    Jens

  • How to find invalid statements(not syntax error) executed using v$ views

    Hi
    I want find invalid statements(not syntax error statements) that executed, when some of the applications runs in the server,
    for eg: permissions denied, table/view doesn't exit .. etc
    I could not able to find it in v$sql views. is there any other view that gives this information?

    V$ views only contain parsed statements, not incorrect ones.
    Max

  • Syntax errors in update query with inner joins and sub query.

    Below is the query:
    UPDATE sp_CFQ_Coord_Corrections 
    INNER JOIN (CFQ_Coord_Corrections 
    INNER JOIN CFQ_Referrals ON CFQ_Coord_Corrections.CorrID = CFQ_Referrals.RecID) 
    ON sp_CFQ_Coord_Corrections.ID = CFQ_Referrals.RecID 
    SET CFQ_Coord_Corrections.MatchFound = 1, 
    CFQ_Coord_Corrections.RecTblID = [CFQ_Referrals].[RecTblID], 
    sp_CFQ_Coord_Corrections.MatchFound = 1
    WHERE (((CFQ_Coord_Corrections.MatchFound)=0) 
    AND ((sp_CFQ_Coord_Corrections.MatchFound)=0) 
    AND ((CFQ_Coord_Corrections.RecImported)=1) 
    AND ((CFQ_Referrals.RecFileName)='COORDCORR_SPOINT') 
    AND ((CFQ_Referrals.RecCombKey)='No.Match') 
    AND ((sp_CFQ_Coord_Corrections.RecImported)=1));
    Error messages seen when executed:
    Msg 156, Level 15, State 1, Line 3
    Incorrect syntax near the keyword 'INNER'.
    Msg 102, Level 15, State 1, Line 10
    Incorrect syntax near 'CFQ_Coord_Corrections'.
    Please help.....

    Below is the query:
    UPDATE sp_CFQ_Coord_Corrections 
    INNER JOIN (CFQ_Coord_Corrections 
    INNER JOIN CFQ_Referrals ON CFQ_Coord_Corrections.CorrID = CFQ_Referrals.RecID) 
    ON sp_CFQ_Coord_Corrections.ID = CFQ_Referrals.RecID 
    SET CFQ_Coord_Corrections.MatchFound = 1, 
    CFQ_Coord_Corrections.RecTblID = [CFQ_Referrals].[RecTblID], 
    sp_CFQ_Coord_Corrections.MatchFound = 1
    WHERE (((CFQ_Coord_Corrections.MatchFound)=0) 
    AND ((sp_CFQ_Coord_Corrections.MatchFound)=0) 
    AND ((CFQ_Coord_Corrections.RecImported)=1) 
    AND ((CFQ_Referrals.RecFileName)='COORDCORR_SPOINT') 
    AND ((CFQ_Referrals.RecCombKey)='No.Match') 
    AND ((sp_CFQ_Coord_Corrections.RecImported)=1));
    Error messages seen when executed:
    Msg 156, Level 15, State 1, Line 3
    Incorrect syntax near the keyword 'INNER'.
    Msg 102, Level 15, State 1, Line 10
    Incorrect syntax near 'CFQ_Coord_Corrections'.
    Please help.....
    sp_CFQ_Coord_Corrections is a table and not a stored procedure.
    are these both tables "sp_CFQ_Coord_Corrections" and "CFQ_Coord_Corrections" different ??

  • Smo.Server.ExecuteNonQuery throw an error executing a script with IF statement

    I am trying to executed this script (see below) using Smo libraries with powershell (this script works in SSMS)
    use master;
    GO
    use master;
    if (not exists(select * from sys.databases where name = 'dbname'))
        alter database [dbname] set offline with rollback immediate;
    GO
    however, I always got an
    Exception calling "ExecuteNonQuery" with "1" argument(s): "An exception occurred while executing a Transact-SQL statement or batch."
    if I delete the if statement, the script execute without erros... is there any problem to use if statements?  I would really appreciate any help
    regards.!

    Olaf
    Helper answer does make sense and you won't be able to modify database which doesn't exists. However, your syntax's are correct.
    However, if you are executing it via Powershell as mentioned by HoroChan then
    I recommend you to increase the statementTimeout to appropriate value. 
    There may be chances that alerting database got hanged and exceeded the timeout.  So instead of IMMEDIATE ROLLBACK you can use
    WITH NO WAIT
    From MSDN:
    Specifies that if the requested database state or option change cannot complete immediately without waiting for transactions to commit or roll back on their own, the request will fail.
    So your overall code will look like 
    USE MASTER;
    IF EXISTS(select * from sys.databases where name = 'dbname')
    ALTER DATABASE [dbname] SET OFFLINE WITH NO_WAIT
    GO
    Hope this will help.

  • Error executing connection method with WS- wsdl

    Good day.
    I need a little help.
    I have some problem running the access procedure to the web service mapped on my WDJ.
    I did all the procedure for use ro wsdl, did the mapping of the fields in my context.
    after it was run method to send the connection parameters.
    But when running:
    wdContext.currentConsultaSincronaElement().setChaveAcesso("XXXXXXXX-4487-4AE6-A41E-10F7808AYYYYYYY");
    Is the error below:
    java.lang.NullPointerException: while trying to invoke the methodnet.mdm.bp.wd.search.wd.comp.mastercompnew.wdp.IPrivateCreateFirstCompView$IConsultaSincronaElement.setChaveAcesso(java.lang.String) of a null object returned from
    net.mdm.bp.wd.search.wd.comp.mastercompnew.wdp.IPrivateCreateFirstCompView$IContextNode.currentConsultaSincronaElement()
    What can be happening? The mapping is correct with the fields of WS.
    Already checked one by one.

    hi carlos,
    have you checked the collection cardinality of your input context?
    the generated/Initial value is 0..1. so your currentNodeElement is probably null.
    if so - set the value to 1..1 and try it again.
    regards,
    christian

  • Syntax error in PO Creation with BAPI_PO_Create1.

    Hi All,
    I'm unable to appending below to internal table and giving the following error.
    LW_EXTENSIONIN-VALUEPART1" and "LW_POITEM" are not mutually convertible in a Unicode program. .
    here is the code Im using. Please advise,
    DATA : LT_EXTENSIONIN TYPE TABLE OF BAPIPAREX,
    LW_EXTENSIONIN TYPE BAPIPAREX,
    LW_POITEM TYPE BAPI_TE_MEPOITEM,
    LW_POITEMX TYPE BAPI_TE_MEPOITEMX.
    LW_POitem-PO_ITEM = '00010'.
    LW_POitem-ZZCOST = '10'.
    LW_POitem-ZZMISC = '11'.
    LW_POitemX-PO_ITEM = '00010'.
    LW_POitemX-ZZCOST = 'X'.
    LW_POitemX-ZZMISC = 'X'.
    LW_EXTENSIONIN-STRUCTURE = 'BAPI_TE_MEPOITEM'.
    LW_EXTENSIONIN-VALUEPART1 = LW_POitem.
    APPEND LW_EXTENSIONIN TO LT_EXTENSIONIN. CLEAR LW_EXTENSIONIN.
    LW_EXTENSIONIN-STRUCTURE = 'BAPI_TE_MEPOITEMX'.
    LW_EXTENSIONIN-VALUEPART1 = LW_POitemX.
    APPEND LW_EXTENSIONIN TO LT_EXTENSIONIN. CLEAR LW_EXTENSIONIN.
    Thank You,
    ANu.

    Hi,
    You need to populate the extension structure as below:
    data: i_save_ext type standard table of BAPIPAREX,
             I_SAVE_EXTX TYPE STANDARD TABLE OF BAPIPAREXX.
      REFRESH: i_save_ext[],
               i_save_extx[].
      wa_save_ext-structure  = 'BAPIPAREX'.
      wa_save_extx-structure = 'BAPIPAREXX'.
    Material Number
      wa_save_ext-valuepart1+0(18)  = wa_final-model.
      wa_save_extx-valuepart1+0(18) = wa_final-model.
    Series MARA-ZZSR
      wa_save_ext-valuepart1+64  = wa_final-series.
      wa_save_extx-valuepart1+25 = c_charx.
    Season MARA-ZZSE
      wa_save_ext-valuepart1+82  = wa_final-season.
      wa_save_extx-valuepart1+26 = c_charx.
      APPEND wa_save_ext TO i_save_ext.
      APPEND wa_save_extx TO i_save_extx.
      CLEAR: wa_save_ext,
             wa_save_extx.
    You need to use the offset ton populate the required fields.
    Edited by: priyanka jatla on Nov 3, 2009 8:31 AM

  • Syntax Error - Using "Group By" with "Union All"

    Dear SAP community, I am a newb in need of help.
    Just spent the past 2 days searching for answers on how to build this query.
    Basically, I just want to group the Item Names (U_ItemName) together and have their respective quantities (U_Cart) added together so the same items display as one total quantity, no duplicates.
    I have tried so many combinations of GroupBy and Sum/Count....etc.  Nothing is working.
    The query:
    SELECT T1.[U_ItemName] AS 'Item Name', T1.[U_Cart] AS 'Cartons Available', T0.[Country] AS 'Country', T1.[U_ShlfLife] AS 'Shelf Life' FROM [dbo].[OWHS] T0 inner join [dbo].[@SICAS_EXT_WHS] T1  on T0.WhsCode=T1.U_WhseCode WHERE T0.[Country] = (N'JP' ) and DateDiff(Month, GetDate(),T1.[U_ShlfLife]) <= 6 union all
    SELECT T0.[U_ItemName], Sum(T0.[U_Cart]) as Cartons, T1.[Country], null FROM [dbo].[@SICAS_EXT_WHS]  T0, OWHS T1 WHERE T1.[Country] = (N'JP' ) and DateDiff(Month, GetDate(),T0.[U_ShlfLife]) >= 6
    GROUP BY T0.[U_ItemName], T0.[U_Cart], T1.[Country]
    Can anybody advise how to get this working?
    Thank you,
    Justice Nerenberg

    hi justice,
    I checked your code and it seems correct. but I don't have same table in database so i can't check it correctly.
    but I tried your problem with same situation and I am getting actual result.
    Example :-
    select itemcode,dscription,quantity from inv1
    where docdate>'2011-02-18 00:00:00.000'
    union all
    select itemcode,dscription,Sum(quantity) from inv1
    where docdate<'2011-02-18 00:00:00.000'
    group by itemcode,dscription
    Please do one thing rum both select queries separately whether running properly. Using above example you can check your code
    Thanks
    Annu

  • Syntax error after 6.20 SP53

    Hello,
    we get a syntax error in previously error-free BSP pages after basis support package SP53 6.20.
    The line with error is
    <yhr_pd_pm:button onClick="return fSubmitNewWindow('<%=<l_mgr_detail>-act_ioper%>', '<%=l_selval%>')"
                      text="<%=<l_mgr_detail>-act_text%>"
                      enforce_width="X" />
    The error message is
    After "")", there must be a space or equivalent character (":", ",", ".").
    Adding a dot after the closing bracket
    '<%=l_selval%>')."
    resolves the error message but will obviously be a JavaScript syntax error. Adding a simple space (as the error message suggests) does not help. But adding a semicolon works:
    '<%=l_selval%>');"
    It seems like SAP is trying to check code inside of a parameter string to a BSP extension tag.
    This is similar to the problem described in note 868333 and in this forum threads
    Menu Bar
    Syntax error while activating BSP with OTR in htmlb element
    BSP error after SP53
    but is a new problem.
    We already implemented note note 851647 and got rid of the first bunch of problems but than this one came up.
    Hope this helps you when you get the same problem.
    Best regards,
    Christian.

    Well, I finally resolved the issue. The problem was actually against another method of the same class. The method had some comments/remarks in the header and therefore found it to be different to the new version. The code was identical thouugh. It's about time some logic was built in to ignore comments and just compare the code. Anwyay, problem solved, I compared the other method and the lock was released. Suddenly, the Method DO_PREPARE_OUTPUT did have code behind it, so I did not actually have to do anything after this.
    Regards
    Jason

  • Error executing J2EE server

    When I try to run the J2EE server, I get an error saying "ERROR executing J2EE server" with the following system.err file: Does anyone know what I need to do ? Thanks.
    Logging for J2EE Server Version: 1.3.1-b17 started at: Sat Nov 01 11:12:21 EST 2003..
    Using the Java HotSpot(TM) Client VM and the version number 1.4.2_01 from Sun Microsystems Inc..
    VM is using the classpath: C:\j2sdkee1.3.1\lib\system\cloudscape.jar;C:\j2sdkee1.3.1\lib\system\tools.jar;C:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc.jar;C:\j2sdkee1.3.1\lib\cloudscape\cloudclient.jar;C:\j2sdkee1.3.1\lib\classes;C:\j2sdkee1.3.1\classes;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\j2sdkee1.3.1\lib\toolclasses;C:\j2sdkee1.3.1\lib\j2eetools.jar;C:\j2sdkee1.3.1\lib\locale;;C:\j2sdk1.4.2_01\lib\tools.jar;C:\j2sdkee1.3.1\lib\jhall.jar .
    J2EE Home Directory has been set to: C:\j2sdkee1.3.1.
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:176)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:68)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:70)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:641)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:583)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1007)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:690)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1088)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:981)
         at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:2425)
         at com.sun.enterprise.naming.SerialContextProviderImpl.initSerialContextProvider(SerialContextProviderImpl.java:37)
         at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:233)
         at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.rmi.RemoteException
         at com.sun.enterprise.naming.SerialContextProviderImpl.initSerialContextProvider(SerialContextProviderImpl.java:46)
         at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:233)
         at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.rmi.RemoteException
         at com.sun.enterprise.naming.SerialContextProviderImpl.initSerialContextProvider(SerialContextProviderImpl.java:46)
         at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:233)
         at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException
         at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
         at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    Error executing J2EE server ...

    I found out that when I disable my anti-virus software that I was able to bringup the J2EE server. I am using J2sdk1.4.2_01 and J2sdkee1.3.1.

  • Executing an application with PersonalJava

    What is the exact command line syntax for executing an application with PersonalJava? My interpreter complains that it is: Unable to initialize threads: cannot find class java/lang/Thread.

    which version do you use, and how is it installed?
    On my device pjava 1.0 worked ok after installation, the 1.1 beta did not; it didn't even find the pjava.exe.
    Keep in mind that third parties have personal java versions with better jdk's. Maybe one of them is preinstalled on your device. I found out myself after a long search and lots of trying that my device had the CrEme VM installed, based on jdk 1.1.8.
    Luc

  • [Execute SQL Task] Error: Executing the query "DECLARE_@XMLA nvarchar(3000) ,__@DateSerial nvarch..." failed with the following error: "Incorrect syntax near '-'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly,

    Hi
    DECLARE @XMLA nvarchar(3000)
    , @DateSerial nvarchar(35);
    -- Change date to format YYYYMMDDHHMMSS
    SET @DateSerial = CAST(GETDATE() AS DATE);
    --SELECT @DateSerial
    Set @XMLA = 
    N' <Batch xmlns="http://schemas.microsoft.com/analysis services/2003/engine">
     <ErrorConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2"
    xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200"
    xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200">
    <KeyErrorLimit>-1</KeyErrorLimit>
    <KeyNotFound>IgnoreError</KeyNotFound>
    <NullKeyNotAllowed>IgnoreError</NullKeyNotAllowed>
     </ErrorConfiguration>
     <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2"
    xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200"
    xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300">
     <Object>
     <DatabaseID>MultidimensionalProject5</DatabaseID>
     <CubeID>giri</CubeID>
     <MeasureGroupID>Fact Internet Sales</MeasureGroupID>
     </Object>
     <Type>ProcessFull</Type>
     <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
     </Process>
      </Parallel>
    </Batch>';
    EXEC (@XMLA) At SHALL-PCAdventureWorksDw ;
     iam executive the    query when iam getting below error.
      [Execute SQL Task] Error: Executing the query "DECLARE
    @XMLA nvarchar(3000)
    , @DateSerial nvarch..." failed with the following error: "Incorrect syntax near '-'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set
    correctly, or connection not established correctly. 
     how to solve this error;
     please help me

    What are you trying to do? What sort of data source is  SHALL-PCAdventureWorksDw?
    When you use EXEC() AT, I would execpt to see an SQL string to be passed to EXEC(), but you are passing an XML string????
    If you explain why you think this would work in the first place, maybe we can help you.
    Erland Sommarskog, SQL Server MVP, [email protected]

Maybe you are looking for

  • Third Party Sales Accounting

    Dear All, We are facing a problem in third party scenario. PR is created through Sales order, with Account assignment category u201CZu201D and item category u201Csu201D We have created new Account assignment category  u201CZu201D w.r.t. u201CY:u201D

  • Link to free download of Photoshop CS2

    My version of Adobe Photoshop CS will not install as this copy is not supported by Adobe anymore and there is no phone or internet support available. Instead there is a free link for download of Adobe Photoshop CS2. I was given that link bu Adobe sup

  • Monitoring of failed Messages in XI.. Any one place to see them???

    Hi All, Is there any place where we can see all the failed messages for particular week or particular month in XI. Like in SAP, we can go and see in WE02 transaction where we can see all the failed idocs. In the same way is there anyway where we can

  • MDM: Search for images in the dialog window "Select Multiple Images"

    Hi, are there possibilities to search for images in the dialog window "Select Multiple Images" (if you want to add a image to a record)? I know the possibilities to sort the images and the possibilities with the data groups. But I don't know a possib

  • Load SWF with audio?

    Hello -- newbie problem/question (you can almost smell the newbie-ness) I am trying to load a SWF file (local file, in the same directory as the FLA file) into a new Flash CS3/AS3 file and, after a bit of searching, found information that led me to a