Cannot read the next data row for the dataset

  • HI,

    I have SSRS reports in production which were running fine till 11th July. But suddenly in the evening of 11th July (around 5:30 PM IST) , the report were giving the below error.

    processing!ReportServer_0-21!1758!07/11/2014-13:57:11:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot read the next data row for the dataset DataExtract_DS. ---> System.Data.SqlClient.SqlException: The conversion of a date data type to a datetime data type resulted in an out-of-range value.

    I have two Date\Time report parameters StartDate and EndDate which has default value as =Today() in one of the report and in the another report i have query parameters and used the below statements to assign the values to these query parameters

    SET @StartUTCDate = CONVERT(VARCHAR(10), DATEADD(d,-1,GETUTCDATE()), 120)+' 00:00:00.00'

    SET @EndUTCDate = CONVERT(VARCHAR(10), DATEADD(d,-1,GETUTCDATE()), 120)+' 23:59:59.00'

    From 14th July, without doing any changes to the reports or query, reports started to work as expected.

    Can any one please let me know why the reports were not working for only some time and after it is working fine without any modifications.

    Regards,

    Prasanna.

  • Note: The date datatype can hold dates from Jan 1 of year 1 thru Dec 31, 9999. The datetime datatype can only hold dates from Jan 1, 1753 thru Dec 31, 9999

    Check your date column for values out of range of the datetime type.

  • HI,

    The values for my datetime parameters was July 11th to July14th 2014. It is with in the range of date time parameter only.

    Regards,

    Prasanna.

  • What language setting are you using? For example:

    SELECT CAST('25/08/14' as datetime)

    SELECT CAST('08/25/14' as datetime)

    Can give you different results based on your language setting for the server.

    ----------------------------------------------------

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply