Avatar of itsupport1199
itsupport1199
 asked on

Default Date Parameter "Error During Processing"

I'm having a problem with a DateAdd function in SQL Server Reporting Services as default value for a parameter.  I've entered the expression "=DateAdd("dd",-60,Today())" as the default value and it doesn't show any errors in the expression builder.  But, when I go to preview the report I get the error "An error occurred during local report processing.  Error during processing of 'ActivityFrom' report parameter."

Any thoughts?
DB Reporting ToolsSSRSMicrosoft SQL Server

Avatar of undefined
Last Comment
itsupport1199

8/22/2022 - Mon
ghayasurrehman

use getDate() instead of Today()
itsupport1199

ASKER
It doesn't recognize getDate.   I get the squiggly lines underneath it.  
8080_Diver

Be sure to include the open and close parentheses.  GETDATE()
Your help has saved me hundreds of hours of internet surfing.
fblack61
itsupport1199

ASKER
I did.  Still no luck.  
itsupport1199

ASKER
This is exactly how it appears in the default value box: =DateAdd("dd",-60, getDate())
8080_Diver

Drop the = and see if that doesn't help. ;-)
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
itsupport1199

ASKER
No luck there, either.  When I drop "=" the whole expression gets squigglied in the expression builder and I get the error "The definition of the report '/Member Activities by Chapter' is invalid.  The property 'DefaultValue' or report parameter 'ActivityFrom' doesn't have the expected type."
ASKER CERTIFIED SOLUTION
itcouple

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
itcouple

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
itsupport1199

ASKER
Changing "dd" to "d" worked like a charm.