Quantcast
Channel: SCN : Unanswered Discussions - BI Platform
Viewing all articles
Browse latest Browse all 5661

Error: Invalid MDX command with MEMBERSDIMENSION while running XMLA

$
0
0

Hi All,

 

I am encountering this error message while running an execute command based on a XMLA.

 

Please review the code below

 

 

 

                stText = "SELECT  NON EMPTY [0CRM_OBJ_ID].[LEVEL01].MEMBERS";

                stText = stText + "* [ZEMPLCUST].[LEVEL01].MEMBERS";

                stText = stText + "* [0MATERIAL].[LEVEL01].MEMBERS ";

                stText = stText + "* [0CRM_USSTAT].[LEVEL01].MEMBERS";

                stText = stText + "* [ZCRMUDATE].[LEVEL01].MEMBERS";

                stText = stText + "* [ZEMPCONT].[LEVEL01].MEMBERS";

                stText = stText + "* [ZSVCINIT].[LEVEL01].MEMBERS ";

                stText = stText + "* [ZDPTHOME].[LEVEL01].MEMBERS ";

                stText = stText + "* [ZDSTHOME].[LEVEL01].MEMBERS ";

                stText = stText + "* [0CUST_GRP2].[LEVEL01].MEMBERS" ;

                stText = stText + "DIMENSION PROPERTIES [0CRM_USSTAT].[40CRM_USSTAT],";

                stText = stText + "[ZDPTHOME].[10COUNTRY],[ZDPTHOME].[20CITY_1],";

                stText = stText + "[ZDSTHOME].[10COUNTRY],[ZDSTHOME].[20CITY_1]";

                stText = stText + "ON AXIS(1)";

                stText = stText + "FROM [ZCRMSTATM/Z_RELOWEB_001]";

 

                cmd.Statement = stText;               

 

                _bwPropertyList.DataSourceInfo = "default";

                _bwPropertyList.Format = "Multidimensional";

                _bwPropertyList.AxisFormat = "TupleFormat";

                _bwPropertyList.Content = "SchemaData";

                _bwParameters.PropertyList = _bwPropertyList;               

 

                //Execute BW Query

                System.Xml.XmlElement returnXML;

 

                returnXML = _sMxlA.Execute(cmd, _bwParameters);  // ERROR does come up here when i call the execute statement

 

-----------

 

I would appreciate if someone can please advise or give me a clue, i am stuck on this issue since last '3' days.

 

thank you

 

Saturn


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>