Has any one ever encountered these error msg's before?
01SO1-Error in Row
22007-Invalid date, time, or datetime stamp
HY000-Expression Evaluation Error
I recieve these error msgs when I run a crystal 11 rpt off of 2 views I've created in Psql - version 8.5 off of a Paragon data structure. One view is in a main report, the other in a subreport - they're unliked reports.
The date fields are stored as utinyint for century, year, month, day. So, I've converted them into a date datatype in a view:
convert(
concat(concat(concat(concat(right(convert(convert( a.PostingDateC, sql_integer) + 100, sql_char),2),
right(convert(convert(a.PostingDateY, sql_integer) + 100, sql_char),2)),'-'),
concat(right(convert(convert(a.PostingDateM, sql_integer) + 100, sql_char),2),'-')),
right(convert(convert(a.PostingDateD, sql_integer) + 100, sql_char),2)), sql_date)
for posting date, maturity date, effective date, and trade date.
I've also included something in the WHERE clause to eliminate 'perceived' nulls:
a.postingdateC <> 0 and a.effectivedateC <> 0 and a.maturitydateC <> 0 and a.tradedateC <> 0
The thing is, these error msg's do not occur on a regular basis - only intermittently and if I run the select portion of the view in control center, I do not get any error msgs.
Any help or direction would be greatly appreciated!
Thanks!
Michelle