Solved

Default Date Parameter "Error During Processing"

Posted on 2010-09-09
10
348 Views
Last Modified: 2012-05-10
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?
0
Comment
Question by:itsupport1199
  • 5
  • 2
  • 2
  • +1
10 Comments
 
LVL 3

Expert Comment

by:ghayasurrehman
ID: 33640990
use getDate() instead of Today()
0
 

Author Comment

by:itsupport1199
ID: 33641022
It doesn't recognize getDate.   I get the squiggly lines underneath it.  
0
 
LVL 22

Expert Comment

by:8080_Diver
ID: 33641116
Be sure to include the open and close parentheses.  GETDATE()
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:itsupport1199
ID: 33641181
I did.  Still no luck.  
0
 

Author Comment

by:itsupport1199
ID: 33641233
This is exactly how it appears in the default value box: =DateAdd("dd",-60, getDate())
0
 
LVL 22

Expert Comment

by:8080_Diver
ID: 33641514
Drop the = and see if that doesn't help. ;-)
0
 

Author Comment

by:itsupport1199
ID: 33641564
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."
0
 
LVL 10

Accepted Solution

by:
itcouple earned 125 total points
ID: 33641989
=DateAdd("d",-60, Today())
0
 
LVL 10

Assisted Solution

by:itcouple
itcouple earned 125 total points
ID: 33642011
GetDate works fine but in SQL Server ;) in SSRS you are right using Today()

The parameter you want to use is d, dd doesn't exist.

Regards
Emil
0
 

Author Comment

by:itsupport1199
ID: 33642075
Changing "dd" to "d" worked like a charm.  
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, In my previous Article  (http://www.experts-exchange.com/Database/Reporting/A_15199-Introduction-to-Microstrategy.html)I discussed some basic understanding of Microstrategy that how we can get in Intro of Microstrategy (MSTR). Now it's tim…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question