MDX USERNAME, differences in CAM and Mode 1?
Posted: Mon Oct 26, 2020 4:49 pm
Hi,
I've been banging my head against this one for a while now.
In my mode 1 dev environment I have the following MDX statement.
This behaves exactly as expected, returning the children of the element selected in my front end cube.
In the UAT environment which is set up under Mode 5 CAM the same MDX generates the error, STRTOMEMBER: Error in value expression: "" (There is a valid item selected in the front end cube)
If I substitute the value in the cube into the MDX just to check the general form of the MDX, then the MDX behaves as expected.
I'm assuming that there is a problem with the initial expression because the form of the CAM user name CAMID("Domain:blah") with the extra double quotes is causing an issue with the parsing of the username.
The odd thing is that this works correctly in the mode 5 environment.
I've tried to substitute the above expression for the user name into my longer piece of MDX in place of the username reference in a few different ways to no effect.
Any ideas what's going on here?
It feels like a defect given that the simpler expression compiles but the more complex one does not.
Cheers,
I've been banging my head against this one for a while now.
In my mode 1 dev environment I have the following MDX statement.
Code: Select all
{StrToMember("[WARF ID].[Total " + [Front End Selection].([}Clients].["+USERNAME+"] ,[Selector].[WARF ID]) +"]").Children}
In the UAT environment which is set up under Mode 5 CAM the same MDX generates the error, STRTOMEMBER: Error in value expression: "" (There is a valid item selected in the front end cube)
If I substitute the value in the cube into the MDX just to check the general form of the MDX, then the MDX behaves as expected.
Code: Select all
{StrToMember("[WARF ID].[Total LB000001L]").Children}
The odd thing is that this works correctly in the mode 5 environment.
Code: Select all
{StrToMember("[}Clients].["+USERNAME+"]") }
Any ideas what's going on here?
It feels like a defect given that the simpler expression compiles but the more complex one does not.
Cheers,