Print Page | Close Window

"Failed to Retrieve Data"

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Data Connectivity
Forum Discription: How to connect to data sources and export reports
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=8486
Printed Date: 01 May 2024 at 10:26pm


Topic: "Failed to Retrieve Data"
Posted By: skailey
Subject: "Failed to Retrieve Data"
Date Posted: 25 Nov 2009 at 12:25pm

Hello,

I am receiving an error when trying to run a crystal report.  The error gives the "Failed To Retrieve Data" box, and then an error box "Conversion failed when trying to convert DateTime from character string".  I have tried several things that don't appear to work and this one has me stumped.
 
First of all, the field causing the issue is a datetime.  I have tried to convert it to a varchar.... didn't work.  I have tried to convert it to a datetime (have no idea why since it already is supposed to be) and that didn't work.  I thought it might be possible that the field had some data with invalid characters, so I wrote a case statement to only look for records where that field was a datetime.  That didn't work. 
 
I can get my report to run if I don't filter it with the criteria picker, but as soon as I enter a date in the criteria picker, I get this error.  Any ideas?
 
Thanks in advance!



Replies:
Posted By: skailey
Date Posted: 30 Nov 2009 at 4:21pm
No ideas on why this might be happening?



Print Page | Close Window