SSAS 2016 and XMLA: retrieving “MDSCHEMA_ACTIONS” Rowsets under specific scenario -
i'm developing web client uses xmla on http calls communicate ssas 2016 cube.
when client's user clicks on cell in pivot grid based on cube, show him list of available ssas "actions" perform.
to so, code uses xmla "discover" command "mdschema_actions" request type, while restricting on specific cell path.
i manage results when restrict on one measure , 1 dimension attribute member (scenario a) - rowset 1 action ("the action")
but, if add dimension attribute member (scenario b), en empty rowset.
naturally, thought due way dba has configured actions cells, surprise, when used ms excel pivot table , queried actions exact same cell (scenario b), did got same action (as wished).
i use experience find clues might cause different results between 2 clients, given apparent difference adding second dimension attribute.
here coordinates both scenarios:
scenario (returned action):
( [businessdate].[currentweek].&[1], [measures].[total payment amount] )
scenario b (failed return action):
( [businessdate].[currentweek].&[1], [owners].[owner id].&[34876], [measures].[total payment amount] )
and here xmla wrapper both scenarios:
<?xml version="1.0" encoding="utf-8"?> <soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" soap-env:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/"> <soap-env:body> <discover xmlns="urn:schemas-microsoft-com:xml-analysis" soap-env:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/"> <requesttype>mdschema_actions</requesttype> <restrictions> <restrictionlist> <catalog_name>my_catalog</catalog_name> <cube_name>my_cube_name</cube_name> <coordinate_type>6</coordinate_type> <coordinate>coordinate-goes-here</coordinate> </restrictionlist> </restrictions> <properties> <propertylist> <format>tabular</format> </propertylist> </properties> </discover> </soap-env:body> </soap-env:envelope>
appreciate help!
ps i've tried sniff wireshark how excel request looks like, looks encoded ascii couldnt understand.
ps2: posted in dba.stackexchange: https://dba.stackexchange.com/questions/183515
Comments
Post a Comment