Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Cannot read the next data row for the dataset Expand / Collapse
Author
Message
Posted Tuesday, July 15, 2014 4:03 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Wednesday, July 16, 2014 2:35 AM
Points: 19, Visits: 200
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.

Post #1592479
Posted Tuesday, July 15, 2014 6:28 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Yesterday @ 6:28 AM
Points: 268, Visits: 598
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.
Post #1592521
Posted Wednesday, July 16, 2014 2:39 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Wednesday, July 16, 2014 2:35 AM
Points: 19, Visits: 200
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.
Post #1592957
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse