I have a script that defines the querytext for a Dataset and when I debug I get no errors but when I try and preview the report it says there are errors in the script. I look at the errors and there is nothing wrong with the line it says there is an error at. I also tried to comment the line out and it still says there is an error with the same line.