Showing posts with label ampersand. Show all posts
Showing posts with label ampersand. Show all posts

Saturday, February 25, 2012

Ampersand in email subscription report parameter

Hello everyone,

I'm trying to set up e-mail delivery report subscriptions. When I enter report parameters, it accepts the standard MDX syntax (ex. [Time].[All Times].[2006]), but when I try to access a member by it's key:

[Time].&[2006]

It raises the following error:

Default value or value provided for the report parameter 'pTime' is not a valid value. (rsInvalidReportParameter)

They seem to have the same problem here (see last paragraphs of the article):

http://www.microsoft.com/technet/prodtechnol/sql/2005/smartreports.mspx

Any idea would be very welcome. Thanks!

TGA

I have the same problem, I've tried replacing the ampersand with & and %26 but the parameter is still not excepted.

Ampersand in email subscription report parameter

Hello everyone,

I'm trying to set up e-mail delivery report subscriptions. When I enter report parameters, it accepts the standard MDX syntax (ex. [Time].[All Times].[2006]), but when I try to access a member by it's key:

[Time].&[2006]

It raises the following error:

Default value or value provided for the report parameter 'pTime' is not a valid value. (rsInvalidReportParameter)

They seem to have the same problem here (see last paragraphs of the article):

http://www.microsoft.com/technet/prodtechnol/sql/2005/smartreports.mspx

Any idea would be very welcome. Thanks!

TGA

I have the same problem, I've tried replacing the ampersand with & and %26 but the parameter is still not excepted.

Ampersand in Analysis Services Report Alert

I have an alert in AS 2005 that will start a reporting services report. I want to pass the current member position in a hierarchy using a parameter:

settostr({[Dim].[MyHierarchy].currentmember}) .

That causes a URL like this:

http://hosting/reportserver/?%2fReport%20Project6/Report1&DimCurrentMember={[Dim].[MyHierarchy].[Lvl1].&[all].&[west].&[300]}&rs:Command=Render&rs:Renderer=PDF

How do I get AS to use %26 for the &'s .

In order to deal with this scenario, you can use MDX function UrlEscapeFragment. So your code will become:

UrlEscapeFragment(settostr({[Dim].[MyHierarchy].currentmember}) )

|||

Thank you!

I have been searching all over for this solution.

|||Yes - this is not very documented, except for the fact that the sample AdventureWorks cube uses this function in the "Sales Reason Comparisons" report action.

Ampersand in Analysis Services Report Alert

I have an alert in AS 2005 that will start a reporting services report. I want to pass the current member position in a hierarchy using a parameter:

settostr({[Dim].[MyHierarchy].currentmember}) .

That causes a URL like this:

http://hosting/reportserver/?%2fReport%20Project6/Report1&DimCurrentMember={[Dim].[MyHierarchy].[Lvl1].&[all].&[west].&[300]}&rs:Command=Render&rs:Renderer=PDF

How do I get AS to use %26 for the &'s .

In order to deal with this scenario, you can use MDX function UrlEscapeFragment. So your code will become:

UrlEscapeFragment(settostr({[Dim].[MyHierarchy].currentmember}) )

|||

Thank you!

I have been searching all over for this solution.

|||Yes - this is not very documented, except for the fact that the sample AdventureWorks cube uses this function in the "Sales Reason Comparisons" report action.