When I attempt to run it as XMLa, it throws the following error. Any tips to
get it to run? I'm new to XMLA.
Executing the query ...
The RestrictionList element at line 7, column 134 (namespace
urn:schemas-microsoft-com:xml-analysis) cannot appear under
Envelope/Body/Execute/Command.
Execution complete
<RestrictionList xmlns="urn:schemas-microsoft-com:xml-analysis"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<CATALOG_NAME>Sales Hourly</CATALOG_NAME>
<CUBE_NAME>Sales</CUBE_NAME>
<MEMBER_UNIQUE_NAME>[Sales].[Ad Category Drilldown].[All Ad Category].[
Subtotal]</MEMBER_UNIQUE_NAME>
<TREE_OP>8</TREE_OP>
</RestrictionList>
<PropertyList xmlns="urn:schemas-microsoft-com:xml-analysis"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<Catalog>Sales Hourly</Catalog>
<MdxMissingMemberMode>Error</MdxMissingMemberMode>
<LocaleIdentifier>1033</LocaleIdentifier>
<DbpropMsmdMDXCompatibility>2</DbpropMsmdMDXCompatibility>
</PropertyList>
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
<RequestType>DISCOVER_XML_METADATA</RequestType>
<Restrictions>
<RestrictionList>
<ObjectExpansion>ExpandObject</ObjectExpansion>
</RestrictionList>
</Restrictions>
<Properties>
<PropertyList>
<Timeout>0</Timeout>
<SspropInitAppName>Microsoft SQL Server Management
Studio</SspropInitAppName>
<LocaleIdentifier>1033</LocaleIdentifier>
<ClientProcessID>3184</ClientProcessID>
</PropertyList>
</Properties>
</Discover>
You also need to know the RequestType. You mentioned you got the
RestrictionsList and the PropertiesList from a trace event. Does that event
also provides the RequestType ?
Adrian
"Jesse O." <jesp...@hotmail.com> wrote in message
news:uh%23pCV6m...@TK2MSFTNGP04.phx.gbl...
I didn't see it caputued in the trace anywhere.
"Adrian Dumitrascu" <adumi...@hotmail.com> wrote in message
news:eu3JSm6m...@TK2MSFTNGP03.phx.gbl...
what MDSCHEMA do you descover? MDSCHEMA_MEMBERS? Then you request schould
have following form.
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
<RequestType>DISCOVER_XML_METADATA</RequestType>
<Restrictions>
<RestrictionList>
<CATALOG_NAME>Sales Hourly</CATALOG_NAME>
<CUBE_NAME>Sales</CUBE_NAME>
<MEMBER_UNIQUE_NAME>
[Sales].[Ad Category Drilldown].[All Ad Category].[Subtotal]
</MEMBER_UNIQUE_NAME>
<TREE_OP>8</TREE_OP>
</RestrictionList>
</Restrictions>
<Properties>
<PropertyList>
<Catalog>Sales Hourly</Catalog>
<MdxMissingMemberMode>Error</MdxMissingMemberMode>
<LocaleIdentifier>1033</LocaleIdentifier>
<DbpropMsmdMDXCompatibility>2</DbpropMsmdMDXCompatibility>
</PropertyList>
</Properties>
</Discover>
"Jesse O." <jesp...@hotmail.com> schrieb im Newsbeitrag
news:uh%23pCV6m...@TK2MSFTNGP04.phx.gbl...
When running the query, I receive the following error, any ideas?
And yes, It's 10 - MDSCHEMA_MEMBERS
Executing the query ...
XML for Analysis parser: The restriction, CATALOG_NAME, is not recognized by
the server.
Execution complete
"Vladimir Chtepa" <vc.n...@diacom-systemhaus.nospam.de> wrote in message
news:OoNaVzDn...@TK2MSFTNGP04.phx.gbl...
there was a write error in my query
Here is correceted one.
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
<RequestType>MDSCHEMA_MEMBERS</RequestType>
<Restrictions>
<RestrictionList>
<CUBE_NAME>Sales</CUBE_NAME>
<MEMBER_UNIQUE_NAME>
[Sales].[Ad Category Drilldown].[All Ad Category].[Subtotal]
</MEMBER_UNIQUE_NAME>
<TREE_OP>8</TREE_OP>
</RestrictionList>
</Restrictions>
<Properties>
<PropertyList>
<Catalog>Sales Hourly</Catalog>
</PropertyList>
</Properties>
</Discover>
"Jesse O." <jesp...@hotmail.com> wrote in message
news:eHzMjpIn...@TK2MSFTNGP02.phx.gbl...
Regards,
Igor
"Jesse O." <jesp...@hotmail.com> wrote in message
news:uh%23pCV6m...@TK2MSFTNGP04.phx.gbl...
thanks.
From http://www.developmentnow.com/g/112_2006_6_0_0_781376/Help-with-XMLA-query.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com