Following sql statement is working fine when i run on TOAD, but when i apply the same in Actuate report writer it gives me error
1) "Invalid string constant. "
2) Control character in string constant
3) "Actual: Else Expecting: '(', '+', '-', [currency constant],
[floating constant], [hexa constant], ID, [A-Z], [date constant],
[integer constant], Null, [octal constant], [string constant], ::, BNot,
ID@, ID#, ID%, ID&, ID!, ID$, New, Not, Nothing, Width "
I am using actuate professional 8.
"Select worksite, sum(REC_JA) from (select worksite,person.personid,
case when ( person.hiredate <= TO_DATE ( '15-JAN' || '-' || (TO_CHAR (CURRENT_DATE, 'YYYY')), 'DD-MON-YYYY') OR person.hiredate IS NULL) AND (person.status = 'ACTIVE' OR (person.status = 'INACTIVE') AND (person.terminationdate > TO_DATE('15-JAN' || '-' || TO_CHAR (CURRENT_DATE, 'YYYY')), 'DD-MON-YYYY') OR person.terminationdate IS NULL))
end as REC_JA from person, labor, laborcraftrate WHERE ( (person.personid NOT LIKE 'OF-%') AND (labor.laborcode = person.personid) AND (laborcraftrate.laborcode = labor.laborcode))) Group by worksite ORDER BY worksite ASC
Actually, the more I think about it, that just sounds like an Actuate Basic error. I would take your question over to http://forums.actuate.com/, which requires that you're paying support to Actuate (and you have to contact them to get a login, I think).
I could help you find you a sol'n here, and you can set the ball rolling on getting an account in the Actuate Forums.
Have you tried following up the error to see if it's occuring somewhere else in your report? When it asks if you want to Debug, say YES. It'll say "No User Source". Then, click on Call Stack under the debug menu, it'll have a method highlighted in yellow, and then double-click on that message.