Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: MeasureExpression Problem

  1. #1

    Default MeasureExpression Problem


    Despite the fact that the embedded SQL works perfectly when tested on the database directly, the following measure definition causes Mondrian to throw an exception (trace at end of post):

    <Measure name="GoodDelay" aggregator="sum" formatString="#,###.00" visible="false">
    <SQL dialect="generic">
    (case when Facts.Delay < 20 then 1 else 0 end)

    It turns out that the use of the '<' operator is the cause of the problem - Mondrian seems to have trouble parsing cube definition when it is present; this problem doesn't occur if that operator is replaced with either '=' or '>'.

    Does anyone know why this happens or how I can fix my measure definition?


    Caused by: mondrian.olap.MondrianException: Mondrian Error:Internal error: while parsing catalog jndi:/localhost/mondrian/WEB-INF/queries/FoodMart.xml
    at mondrian.resource.MondrianResource$_Def0.ex(
    at mondrian.olap.Util.newInternal(
    at mondrian.olap.Util.newError(
    at mondrian.rolap.RolapSchema.load(
    at mondrian.rolap.RolapSchema.<init>(
    at mondrian.rolap.RolapSchema.<init>(
    at mondrian.rolap.RolapSchema$Pool.get(
    at mondrian.rolap.RolapSchema$Pool.get(
    at mondrian.rolap.RolapConnection.<init>(
    at mondrian.rolap.RolapConnection.<init>(
    at mondrian.olap.DriverManager.getConnection(
    at mondrian.olap.DriverManager.getConnection(
    at mondrian.xmla.XmlaHandler.getConnection(
    at mondrian.xmla.RowsetDefinition$MdschemaCubesRowset.populate(
    at mondrian.xmla.Rowset.unparse(
    ... 23 more
    Caused by: org.eigenbase.xom.XOMException: Document parse failed: [Fatal Error] :277:43: The content of elements must consist of well-formed character data or markup.

    at org.eigenbase.xom.wrappers.GenericDOMParser.handleErrors(Unknown Source)
    at org.eigenbase.xom.wrappers.JaxpDOMParser.parseInputSource(Unknown Source)
    at org.eigenbase.xom.wrappers.GenericDOMParser.parse(Unknown Source)
    at mondrian.rolap.RolapSchema.load(
    ... 35 more

  2. #2



    Try :
    < &lt;
    > &gt;
    <= &lt=;
    >= &gt;



  3. #3


    Thanks, Marc
    That fixes my problem.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.