<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I think you need to do it like that:<div><br></div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><blockquote type="cite">m = cube.lookupMember(IdentifierNode.parseIdentifier( "[Time].[2013].[Jul2013]").getSegmentList());</blockquote></div></div></div></blockquote><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><blockquote type="cite">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;final CacheControl cacheControl = olapConnection.getCacheControl(null);<br></blockquote></div></div></div></blockquote><span class="Apple-tab-span" style="white-space:pre">                </span>mondrian.olap.Member mondrianMember = m.unwrap(mondrian.olap.Member.class);<br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><blockquote type="cite">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CacheControl.MemberSet regionTime = cacheControl.createMemberSet(mondrianMember, false);</blockquote></div></div></div></blockquote><div><br></div>-Paul</div><div><br><br><div><div>On Jul 31, 2013, at 8:39 PM, Julian Hyde wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">What version are you running?<div><br></div><div>Can you please post the full stack?</div><div><br><div apple-content-edited="true">
<div>Julian&nbsp;</div><br class="Apple-interchange-newline">

</div>
<br><div><div>On Jul 31, 2013, at 11:33 AM, Mayur Mohite &lt;<a href="mailto:mayur.mohite@vizury.com">mayur.mohite@vizury.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br><br>I am trying to flush the dimension cache by following code - <br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; org.olap4j.metadata.Schema OlapSchema = olapConnection.getOlapSchema();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NamedList&lt;org.olap4j.metadata.Cube&gt; cubeList =&nbsp; OlapSchema.getCubes();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; org.olap4j.metadata.Member m = null;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for(org.olap4j.metadata.Cube cube: cubeList) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m = cube.lookupMember(IdentifierNode.parseIdentifier( "[Time].[2013].[Jul2013]").getSegmentList());<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; final CacheControl cacheControl = olapConnection.getCacheControl(null);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CacheControl.MemberSet regionTime = cacheControl.createMemberSet(mondrian.olap.Member)m, false);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cacheControl.flush(regionTime);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>But this throws runtime error saying MondrianOlap4jMember cannot be casted to mondrian.olap.Member.<br><br>-Mayur<br><br><div class="gmail_quote">On Wed, Jul 31, 2013 at 7:39 PM,  <span dir="ltr">&lt;<a href="mailto:mondrian-request@pentaho.org" target="_blank">mondrian-request@pentaho.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Mondrian mailing list submissions to<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:mondrian@pentaho.org">mondrian@pentaho.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://lists.pentaho.org/mailman/listinfo/mondrian" target="_blank">http://lists.pentaho.org/mailman/listinfo/mondrian</a><br>
or, via email, send a message with subject or body 'help' to<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:mondrian-request@pentaho.org">mondrian-request@pentaho.org</a><br>
<br>
You can reach the person managing the list at<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:mondrian-owner@pentaho.org">mondrian-owner@pentaho.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Mondrian digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
&nbsp; &nbsp;1. Re: Error running tests against foodmart db<br>
&nbsp; &nbsp; &nbsp; (Chacko, Rachel (Truven Health))<br>
&nbsp; &nbsp;2. Re: Error running tests against foodmart db (Meral Ozkaya)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 31 Jul 2013 14:06:48 +0000<br>
From: "Chacko, Rachel (Truven Health)"<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:rachel.chacko@truvenhealth.com">rachel.chacko@truvenhealth.com</a>&gt;<br>
Subject: Re: [Mondrian] Error running tests against foodmart db<br>
To: Mondrian developer mailing list &lt;<a href="mailto:mondrian@pentaho.org">mondrian@pentaho.org</a>&gt;<br>
Message-ID:<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:0858eb0328ce43db8eaaf279b8494d85@BY2PR07MB073.namprd07.prod.outlook.com">0858eb0328ce43db8eaaf279b8494d85@BY2PR07MB073.namprd07.prod.outlook.com</a>&gt;<br>
<br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I?m using the derby database.<br>
<br>
From: <a href="mailto:mondrian-bounces@pentaho.org">mondrian-bounces@pentaho.org</a> [mailto:<a href="mailto:mondrian-bounces@pentaho.org">mondrian-bounces@pentaho.org</a>] On Behalf Of Luc Boudreau<br>
Sent: Wednesday, July 31, 2013 9:58 AM<br>
To: Mondrian developer mailing list<br>
Subject: Re: [Mondrian] Error running tests against foodmart db<br>
<br>
<br>
On Wed, Jul 31, 2013 at 9:54 AM, Chacko, Rachel (Truven Health) &lt;<a href="mailto:rachel.chacko@truvenhealth.com">rachel.chacko@truvenhealth.com</a>&lt;mailto:<a href="mailto:rachel.chacko@truvenhealth.com">rachel.chacko@truvenhealth.com</a>&gt;&gt; wrote:<br>

Caused by: java.sql.SQLException: Table/View 'time_by_day' does not exist.<br>
<br>
This is probably why it is not working. What's the backend DB? Does it require tables to be prefixed by their schema name?<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.pentaho.org/pipermail/mondrian/attachments/20130731/0faa81a5/attachment-0001.html" target="_blank">http://lists.pentaho.org/pipermail/mondrian/attachments/20130731/0faa81a5/attachment-0001.html</a><br>

<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 31 Jul 2013 17:09:26 +0300<br>
From: Meral Ozkaya &lt;<a href="mailto:meral.ozkaya@gmail.com">meral.ozkaya@gmail.com</a>&gt;<br>
Subject: Re: [Mondrian] Error running tests against foodmart db<br>
To: Mondrian developer mailing list &lt;<a href="mailto:mondrian@pentaho.org">mondrian@pentaho.org</a>&gt;<br>
Message-ID:<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;CAO2Y5KbG-zO9=<a href="mailto:LhxZtKtPMk_OwqDNHbFMsydah7R%2BUAQPjZa7A@mail.gmail.com">LhxZtKtPMk_OwqDNHbFMsydah7R+UAQPjZa7A@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset="windows-1252"<br>
<br>
&nbsp;Caused by: java.sql.<br>
<br>
SQLSyntaxErrorException: Table/View 'time_by_day' does not exist. you must<br>
have time_by_day view/table in your database. if the table &nbsp;exists in the<br>
database, you probably do not have the right permission for this table or<br>
you might have mistyped the table name in your xml schema.<br>
<br>
<br>
2013/7/31 Matt Campbell &lt;<a href="mailto:mcampbell@pentaho.com">mcampbell@pentaho.com</a>&gt;<br>
<br>
&gt; &nbsp;Hi Rachel,<br>
&gt; Verify your foodmart database is up and running, and your test connection<br>
&gt; information is correct in mondrian.properties.<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp;java.sql.SQLSyntaxErrorException: Table/View 'time_by_day' does not<br>
&gt; exist.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On 07/31/2013 09:54 AM, Chacko, Rachel (Truven Health) wrote:<br>
&gt;<br>
&gt; &nbsp;I?m getting the error below trying to run the tests in mondrian 3.2<br>
&gt; against the foodmart database. I see the same error with all tests and seem<br>
&gt; to be happening on setup. Any help is appreciated.****<br>
&gt;<br>
&gt; ** **<br>
&gt;<br>
&gt; mondrian.olap.MondrianException: Mondrian Error:Named set in cube 'Sales'<br>
&gt; has bad formula****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.resource.MondrianResource$_Def0.ex(MondrianResource.java:821)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.RolapCube.resolveCalcMembers(RolapCube.java:876)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.RolapCube.createCalcMembersAndNamedSets(RolapCube.java:816)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.rolap.RolapCube.init(RolapCube.java:761)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.rolap.RolapCube.&lt;init&gt;(RolapCube.java:277)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.rolap.RolapSchema.load(RolapSchema.java:426)**<br>
&gt; **<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.rolap.RolapSchema.load(RolapSchema.java:310)**<br>
&gt; **<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.rolap.RolapSchema.&lt;init&gt;(RolapSchema.java:221)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.rolap.RolapSchema.&lt;init&gt;(RolapSchema.java:214)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.RolapSchema$Pool.get(RolapSchema.java:973)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.RolapSchema$Pool.get(RolapSchema.java:757)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.RolapConnection.&lt;init&gt;(RolapConnection.java:166)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.RolapConnection.&lt;init&gt;(RolapConnection.java:95)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.DriverManager.getConnection(DriverManager.java:110)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.DriverManager.getConnection(DriverManager.java:74)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.test.TestContext.getFoodMartConnection(TestContext.java:236)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.test.TestContext.getConnection(TestContext.java:209)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.test.TestContext.executeQuery(TestContext.java:515)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.test.TestContext.assertQueryReturns(TestContext.java:1053)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.test.FoodMartTestCase.assertQueryReturns(FoodMartTestCase.java:125)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.test.BasicQueryTest.testSample0(BasicQueryTest.java:445)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native<br>
&gt; Method)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown<br>
&gt; Source)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown<br>
&gt; Source)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(Unknown Source)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestCase.runTest(TestCase.java:164)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestCase.runBare(TestCase.java:130)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; junit.framework.TestResult$1.protect(TestResult.java:106)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; junit.framework.TestResult.runProtected(TestResult.java:124)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestResult.run(TestResult.java:109)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestCase.run(TestCase.java:120)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestSuite.runTest(TestSuite.java:230)**<br>
&gt; **<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestSuite.run(TestSuite.java:225)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)<br>
&gt; ****<br>
&gt;<br>
&gt; Caused by: mondrian.olap.MondrianException: Mondrian Error:Failed to parse<br>
&gt; query 'WITH****<br>
&gt;<br>
&gt; MEMBER [Measures].[Profit]****<br>
&gt;<br>
&gt; &nbsp; AS '[Measures].[Store Sales] - [Measures].[Store Cost]',****<br>
&gt;<br>
&gt; FORMAT_STRING = "$#,##0.00",****<br>
&gt;<br>
&gt; [$member_scope] = 'CUBE',****<br>
&gt;<br>
&gt; MEMBER_ORDINAL = 6****<br>
&gt;<br>
&gt; MEMBER [Measures].[Profit last Period]****<br>
&gt;<br>
&gt; &nbsp; AS 'COALESCEEMPTY((Measures.[Profit], [Time].[Time].PREVMEMBER),<br>
&gt; Measures.[Profit])',****<br>
&gt;<br>
&gt; FORMAT_STRING = "$#,##0.00",****<br>
&gt;<br>
&gt; MEMBER_ORDINAL = 18,****<br>
&gt;<br>
&gt; [$member_scope] = 'CUBE'****<br>
&gt;<br>
&gt; MEMBER [Measures].[Profit Growth]****<br>
&gt;<br>
&gt; &nbsp; AS '([Measures].[Profit] - [Measures].[Profit last Period]) /<br>
&gt; [Measures].[Profit last Period]',****<br>
&gt;<br>
&gt; FORMAT_STRING = "0.0%",****<br>
&gt;<br>
&gt; [$member_scope] = 'CUBE',****<br>
&gt;<br>
&gt; MEMBER_ORDINAL = 8****<br>
&gt;<br>
&gt; SELECT FROM [Sales]'****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.resource.MondrianResource$_Def0.ex(MondrianResource.java:821)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.ConnectionBase.parseQuery(ConnectionBase.java:137)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.ConnectionBase.parseQuery(ConnectionBase.java:63)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.RolapCube.resolveCalcMembers(RolapCube.java:874)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ... 37 more****<br>
&gt;<br>
&gt; Caused by: mondrian.olap.MondrianException: Mondrian Error:Error while<br>
&gt; parsing MDX statement 'WITH****<br>
&gt;<br>
&gt; MEMBER [Measures].[Profit]****<br>
&gt;<br>
&gt; &nbsp; AS '[Measures].[Store Sales] - [Measures].[Store Cost]',****<br>
&gt;<br>
&gt; FORMAT_STRING = "$#,##0.00",****<br>
&gt;<br>
&gt; [$member_scope] = 'CUBE',****<br>
&gt;<br>
&gt; MEMBER_ORDINAL = 6****<br>
&gt;<br>
&gt; MEMBER [Measures].[Profit last Period]****<br>
&gt;<br>
&gt; &nbsp; AS 'COALESCEEMPTY((Measures.[Profit], [Time].[Time].PREVMEMBER),<br>
&gt; Measures.[Profit])',****<br>
&gt;<br>
&gt; FORMAT_STRING = "$#,##0.00",****<br>
&gt;<br>
&gt; MEMBER_ORDINAL = 18,****<br>
&gt;<br>
&gt; [$member_scope] = 'CUBE'****<br>
&gt;<br>
&gt; MEMBER [Measures].[Profit Growth]****<br>
&gt;<br>
&gt; &nbsp; AS '([Measures].[Profit] - [Measures].[Profit last Period]) /<br>
&gt; [Measures].[Profit last Period]',****<br>
&gt;<br>
&gt; FORMAT_STRING = "0.0%",****<br>
&gt;<br>
&gt; [$member_scope] = 'CUBE',****<br>
&gt;<br>
&gt; MEMBER_ORDINAL = 8****<br>
&gt;<br>
&gt; SELECT FROM [Sales]'****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.resource.MondrianResource$_Def0.ex(MondrianResource.java:821)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.olap.Parser.parseInternal(Parser.java:784)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.ConnectionBase.parseQuery(ConnectionBase.java:134)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ... 39 more****<br>
&gt;<br>
&gt; Caused by: mondrian.olap.MondrianException: Mondrian Error:Internal error:<br>
&gt; Populating member cache with members for [[Time].[Year]]; sql=[select<br>
&gt; "time_by_day"."the_year" from "time_by_day" as "time_by_day" group by<br>
&gt; "time_by_day"."the_year" order by "time_by_day"."the_year" ASC]****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.resource.MondrianResource$_Def0.ex(MondrianResource.java:821)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.olap.Util.newInternal(Util.java:1514)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.olap.Util.newError(Util.java:1530)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.SqlStatement.handle(SqlStatement.java:249)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.SqlStatement.execute(SqlStatement.java:169)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.RolapUtil.executeQuery(RolapUtil.java:228)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.SqlTupleReader.prepareTuples(SqlTupleReader.java:373)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.SqlTupleReader.readTuples(SqlTupleReader.java:520)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.SqlMemberSource.getMembersInLevel(SqlMemberSource.java:480)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.SqlMemberSource.getMembersInLevel(SqlMemberSource.java:467)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.SmartMemberReader.getMembersInLevel(SmartMemberReader.java:147)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.RolapCubeHierarchy$CacheRolapCubeHierarchyMemberReader.getMembersInLevel(RolapCubeHierarchy.java:678)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.RolapSchemaReader.getLevelMembers(RolapSchemaReader.java:479)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.RolapSchemaReader.getLevelMembers(RolapSchemaReader.java:464)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.RolapCube$RolapCubeSchemaReader.getLevelMembers(RolapCube.java:2699)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.RolapSchemaReader.getHierarchyRootMembers(RolapSchemaReader.java:84)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.Util.lookupHierarchyRootMember(Util.java:910)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.HierarchyBase.lookupChild(HierarchyBase.java:163)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.DimensionBase.lookupChild(DimensionBase.java:109)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.RolapSchemaReader.getElementChild(RolapSchemaReader.java:356)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.olap.Util.lookupCompound(Util.java:595)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.RolapSchemaReader.lookupCompound(RolapSchemaReader.java:394)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.DelegatingSchemaReader.lookupCompound(DelegatingSchemaReader.java:112)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.Query$QuerySchemaReader.lookupCompound(Query.java:1575)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.Query$QuerySchemaReader.lookupCompound(Query.java:1546)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.DelegatingSchemaReader.lookupCompound(DelegatingSchemaReader.java:112)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.Query$ScopedSchemaReader.lookupCompound(Query.java:1743)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.DelegatingSchemaReader.lookupCompound(DelegatingSchemaReader.java:104)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.olap.Util.lookup(Util.java:775)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.olap.Id.accept(Id.java:108)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.ValidatorImpl.validate(ValidatorImpl.java:80)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.fun.FunUtil.resolveFunArgs(FunUtil.java:1945)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.mdx.UnresolvedFunCall.accept(UnresolvedFunCall.java:104)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.ValidatorImpl.validate(ValidatorImpl.java:80)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.fun.FunUtil.resolveFunArgs(FunUtil.java:1945)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.mdx.UnresolvedFunCall.accept(UnresolvedFunCall.java:104)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.ValidatorImpl.validate(ValidatorImpl.java:80)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.fun.FunUtil.resolveFunArgs(FunUtil.java:1945)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.mdx.UnresolvedFunCall.accept(UnresolvedFunCall.java:104)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.ValidatorImpl.validate(ValidatorImpl.java:80)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.olap.Formula.accept(Formula.java:110)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.ValidatorImpl.validate(ValidatorImpl.java:156)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.olap.Query.resolve(Query.java:609)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.olap.Query.resolve(Query.java:504)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.olap.Query.&lt;init&gt;(Query.java:252)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.olap.Query.&lt;init&gt;(Query.java:217)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.olap.Parser.makeQuery(Parser.java:877)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.olap.CUP$Parser$actions.CUP$Parser$do_action(Parser.java:1771)***<br>
&gt; *<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.olap.Parser.do_action(Parser.java:706)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at java_cup.runtime.lr_parser.parse(lr_parser.java:569)***<br>
&gt; *<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at mondrian.olap.Parser.parseInternal(Parser.java:779)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ... 40 more****<br>
&gt;<br>
&gt; Caused by: java.sql.SQLSyntaxErrorException: Table/View 'time_by_day' does<br>
&gt; not exist.****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown<br>
&gt; Source)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown<br>
&gt; Source)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown<br>
&gt; Source)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.apache.derby.impl.jdbc.EmbedStatement.executeQuery(Unknown Source)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:174)<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; mondrian.rolap.SqlStatement.execute(SqlStatement.java:150)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ... 86 more****<br>
&gt;<br>
&gt; Caused by: java.sql.SQLException: Table/View 'time_by_day' does not exist.<br>
&gt; ****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown<br>
&gt; Source)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; at<br>
&gt; org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown<br>
&gt; Source)****<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ... 96 more****<br>
&gt;<br>
&gt; ** **<br>
&gt;<br>
&gt; Thanks,****<br>
&gt;<br>
&gt; Rachel****<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Mondrian mailing list<br>
&gt; <a href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a><br>
&gt; <a href="http://lists.pentaho.org/mailman/listinfo/mondrian" target="_blank">http://lists.pentaho.org/mailman/listinfo/mondrian</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
--<br>
Meral ?zkaya<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.pentaho.org/pipermail/mondrian/attachments/20130731/8e21d7e4/attachment.html" target="_blank">http://lists.pentaho.org/pipermail/mondrian/attachments/20130731/8e21d7e4/attachment.html</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Mondrian mailing list<br>
<a href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a><br>
<a href="http://lists.pentaho.org/mailman/listinfo/mondrian" target="_blank">http://lists.pentaho.org/mailman/listinfo/mondrian</a><br>
<br>
<br>
End of Mondrian Digest, Vol 80, Issue 20<br>
****************************************<br>
</blockquote></div><br>
_______________________________________________<br>Mondrian mailing list<br><a href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a><br><a href="http://lists.pentaho.org/mailman/listinfo/mondrian">http://lists.pentaho.org/mailman/listinfo/mondrian</a><br></blockquote></div><br></div></div>_______________________________________________<br>Mondrian mailing list<br><a href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a><br>http://lists.pentaho.org/mailman/listinfo/mondrian<br></blockquote></div><br></div></body></html>