Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Cannot read the next data row for the dataset


Cannot read the next data row for the dataset

Author
Message
prasanna-750812
prasanna-750812
Grasshopper
Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)

Group: General Forum Members
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.
gbritton1
gbritton1
Old Hand
Old Hand (369 reputation)Old Hand (369 reputation)Old Hand (369 reputation)Old Hand (369 reputation)Old Hand (369 reputation)Old Hand (369 reputation)Old Hand (369 reputation)Old Hand (369 reputation)

Group: General Forum Members
Points: 369 Visits: 840
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.
prasanna-750812
prasanna-750812
Grasshopper
Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)

Group: General Forum Members
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.
MMartin1
MMartin1
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1092 Visits: 2014
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.

----------------------------------------------------
How to post forum questions to get the best help
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search