locked
Analysis Services cube will not build due to MDX query incorrect syntax RRS feed

  • Question

  • I entered an MDX query for the Project Non Timephased cube that had incorrect syntax causing the cube to fail. I removed the query from the PWA Cube Configuration screen, but it keeps re-appearing in the build, triggering the same error. I used SQL Server Business Intelligence Development Studio to remove the MDX calculations and was able to successfully process the cube. But every time the scheduled cube is built, triggered from PWA, the MDX query appears again, causing an error and failing to build the cube.

     

    Where is the MDX query data being stored? I know I can just rename the cube and this error will probably go away, but that's not a good long term solution as I would have to repoint all the Data Analysis views to the cube.

     

    Failed to build the OLAP cubes. Error: Analysis Services session failed with the following error: Failed to process the Analysis Services database ITPrjPrt on the Idesql3.ead.external.lmco.com server. Error: MdxScript(Project Non Timephased) (1, 67) Parser: The syntax for '-' is incorrect. MdxScript(Project Non Timephased) (1, 81) Parser: The syntax for '-' is incorrect.

     

    Any help is greatly appreciated!

     

    Travis

    Monday, July 19, 2010 3:55 PM

Answers

  • Hi,

    I had the exact same issue.  You have to enter another MDX query which will cross out the inital query that you have entered.  Also, it is worth deleting the OLAP Cube from Analsysis Services and starting again with the fresh cube.

    For some reason Project Server retains this infromation and as you are experiencing can cause issues.

    Hope this helps to being with.....

    Regards,

    Dharmesh

    • Proposed as answer by Dharm Patel Tuesday, July 20, 2010 9:03 AM
    • Marked as answer by Fafafaalex Monday, July 26, 2010 5:32 AM
    Tuesday, July 20, 2010 9:03 AM

All replies

  • Hi,

    I had the exact same issue.  You have to enter another MDX query which will cross out the inital query that you have entered.  Also, it is worth deleting the OLAP Cube from Analsysis Services and starting again with the fresh cube.

    For some reason Project Server retains this infromation and as you are experiencing can cause issues.

    Hope this helps to being with.....

    Regards,

    Dharmesh

    • Proposed as answer by Dharm Patel Tuesday, July 20, 2010 9:03 AM
    • Marked as answer by Fafafaalex Monday, July 26, 2010 5:32 AM
    Tuesday, July 20, 2010 9:03 AM
  • Hi Dharm I having the similar Issues

    I am using a Calculated member to get an average. 

    Can you be more descriptive on "enter another MDX Query"  ? 

     

    Thanks 

    Tinku

     

    Friday, May 20, 2011 4:25 PM