<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">There are a couple issues with your query-&nbsp; Drillthrough should select a
<i>single cell</i> from a cube.&nbsp; You have sets of members on COLUMNS and PAGES, so the DRILLTHROUGH is incorrectly being applied to more than one cell.&nbsp;
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">I don’t think that’s the cause of your error, though--I just ran a quick test with Foodmart and was surprised to find that a Drillthrough on more than one cell
 doesn’t result in an error.&nbsp; It appears to just silently use one of the cells involved.&nbsp; Mondrian should probably give a nice error in such cases (consistent with SSAS).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Your query also uses a calculated measure, which is also not allowed for drillthrough.&nbsp;
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">I’d try changing your query to be a single cell with a base measure in context and see if that will run successfully.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> mondrian-bounces@pentaho.org [mailto:mondrian-bounces@pentaho.org]
<b>On Behalf Of </b>Manuel Aristaran<br>
<b>Sent:</b> Saturday, November 14, 2015 10:05 PM<br>
<b>To:</b> mondrian@pentaho.org<br>
<b>Subject:</b> [Mondrian] Drillthrough: org.olap4j.OlapException: Cannot do DrillThrough operation on the cell<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<br>
<br>
I'm trying to run a DRILLTHROUGH query on my cube but I'm getting an exception:<o:p></o:p></p>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<p class="MsoNormal">org.olap4j.OlapException: Cannot do DrillThrough operation on the cell&nbsp;mondrian.olap4j.MondrianOlap4jStatement.executeQuery2(mondrian/olap4j/MondrianOlap4jStatement.java:107)&nbsp;mondrian.olap4j.MondrianOlap4jStatement.executeQuery(mondrian/olap4j/MondrianOlap4jStatement.java:65)<o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">The query is rather simple:<o:p></o:p></p>
</div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<div>
<p class="MsoNormal">DRILLTHROUGH<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">select NON EMPTY [Jurisdicciones].[Jurisdiccion].Members ON COLUMNS,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">&nbsp; NON EMPTY [Measures].[Vigente] ON ROWS,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">&nbsp; NON EMPTY [Fecha].[Year].Members ON PAGES<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">from [dataset_ejecucion_gastos_bahia_user_bahia]<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</blockquote>
<div>
<p class="MsoNormal">The schema can be found here:&nbsp;<a href="https://gist.github.com/jazzido/62f1d20986360b9d7c42">https://gist.github.com/jazzido/62f1d20986360b9d7c42</a>&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Any help would be greatly appreciated, I’ve been scrathing by head about this for a couple days.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks!<br>
<br>
--<br>
Manuel Aristarán<br>
<a href="http://jazzido.com">jazzido.com</a><o:p></o:p></p>
</div>
</div>
</body>
</html>