Hi,
I have a SSRS report on CRM 2011 with a date/Time parameter. When I enter invalid input for the date parameter it gives me below error and the only option is to cancel the report.
I want to handle this error on report and give user a error message and allow re-enter parameter values.

I added a seperate parameter as isValid and under default value wrote an expression to check date format using Regular expressions.
=System.Text.RegularExpressions.Regex.IsMatch(
IIf(IsNothing(Parameters!SessionDateStart.Value), "01/01/1999", Parameters!SessionDateStart.Value),
"(\d{2})\/(\d{2})\/(\d{4})"
)
And also I tried with custom code called on this separate parameter as bellow
=Code.ValidParams(Parameters!PaidDateValue)
function ValidParams(byval date as datetime) as boolean
if isDate(date) then
return FALSE
else
return TRUE
end if
end function
But each time the parameter itself throw above report before running the report.
Please suggest a solution
Thanks
Matheesha