Hi,
Hope someone can help me figure out what I am doing wrong.
This report query works in Metadata Editor and also in Report Designer, but when I publish the report to the BI server, I get the following error:
ParentException:
org.pentaho.pms.core.exception.PentahoMetadataException: SqlOpenFormula.ERROR_0012 - Field Name BC_QUEUESUMMARY.BC_DIM_DATE_YEARWEEK not found in Business Model. Business Category BC_QUEUESUMMARY not found.
Basically I have a fact business table BT_QUEUERESULTSV2 and a dimension business table BT_DIM_DATE. They are linked though the following 1:N relationship
BT_DIM_DATE.BC_DIM_DATE_DATE_KEY - BT_QUEUERESULTSV2.BC_QUEUERESULTSV2_STARTTIMESTAMP_DATE_DIM.
My Business View BC_QUEUESUMMARY has a column BC_DIM_DATE_YEARWEEK taken from the table BT_DIM_DATE. My query filters the data using this column to show only results for one week.
Here is the metadata published to the server
<mql>
<domain_type>relational</domain_type>
<model_name>QSR</model_name>
<options>
<disable_distinct>false</disable_distinct>
<limit>-1</limit>
</options>
<selections>
<selection>
<view>BC_QUEUESUMMARY</view>
<column>BC_ACCOUNTS_ACCOUNT</column>
<aggregation>none</aggregation>
</selection>
<selection>
<view>BC_QUEUESUMMARY</view>
<column>BC_QUEUERESULTSV2_RIVANUMBER</column>
<aggregation>none</aggregation>
</selection>
<selection>
<view>BC_QUEUESUMMARY</view>
<column>BC_DIM_DATE_YEARWEEK</column>
<aggregation>none</aggregation>
</selection>
<selection>
<view>BC_QUEUESUMMARY</view>
<column>BC_QUEUERESULTSV2_OUTPUTSPASSED</column>
<aggregation>sum</aggregation>
</selection>
<selection>
<view>BC_QUEUESUMMARY</view>
<column>BC_QUEUERESULTSV2_OUTPUTSFAILED</column>
<aggregation>sum</aggregation>
</selection>
</selections>
<constraints>
<constraint>
<operator>AND</operator>
<condition>EQUALS([BC_QUEUESUMMARY.BC_DIM_DATE_YEARWEEK];"2013-43")</condition>
</constraint>
</constraints>
<orders/>
</mql>
Thanks
Mpho
Hope someone can help me figure out what I am doing wrong.
This report query works in Metadata Editor and also in Report Designer, but when I publish the report to the BI server, I get the following error:
ParentException:
org.pentaho.pms.core.exception.PentahoMetadataException: SqlOpenFormula.ERROR_0012 - Field Name BC_QUEUESUMMARY.BC_DIM_DATE_YEARWEEK not found in Business Model. Business Category BC_QUEUESUMMARY not found.
Basically I have a fact business table BT_QUEUERESULTSV2 and a dimension business table BT_DIM_DATE. They are linked though the following 1:N relationship
BT_DIM_DATE.BC_DIM_DATE_DATE_KEY - BT_QUEUERESULTSV2.BC_QUEUERESULTSV2_STARTTIMESTAMP_DATE_DIM.
My Business View BC_QUEUESUMMARY has a column BC_DIM_DATE_YEARWEEK taken from the table BT_DIM_DATE. My query filters the data using this column to show only results for one week.
Here is the metadata published to the server
<mql>
<domain_type>relational</domain_type>
<model_name>QSR</model_name>
<options>
<disable_distinct>false</disable_distinct>
<limit>-1</limit>
</options>
<selections>
<selection>
<view>BC_QUEUESUMMARY</view>
<column>BC_ACCOUNTS_ACCOUNT</column>
<aggregation>none</aggregation>
</selection>
<selection>
<view>BC_QUEUESUMMARY</view>
<column>BC_QUEUERESULTSV2_RIVANUMBER</column>
<aggregation>none</aggregation>
</selection>
<selection>
<view>BC_QUEUESUMMARY</view>
<column>BC_DIM_DATE_YEARWEEK</column>
<aggregation>none</aggregation>
</selection>
<selection>
<view>BC_QUEUESUMMARY</view>
<column>BC_QUEUERESULTSV2_OUTPUTSPASSED</column>
<aggregation>sum</aggregation>
</selection>
<selection>
<view>BC_QUEUESUMMARY</view>
<column>BC_QUEUERESULTSV2_OUTPUTSFAILED</column>
<aggregation>sum</aggregation>
</selection>
</selections>
<constraints>
<constraint>
<operator>AND</operator>
<condition>EQUALS([BC_QUEUESUMMARY.BC_DIM_DATE_YEARWEEK];"2013-43")</condition>
</constraint>
</constraints>
<orders/>
</mql>
Thanks
Mpho