Skip to Content
author's profile photo Former Member
Former Member

Invalid char error when attempting to run command

Hello, We are working on a register polling issue and are trying to complete a report to allow us to identify unpolled registers.

The query below was developed and runs fine against our oracle db, however it is not running due to an unknown invalid character in crystal reports.

Can anyone tell me what character here is not supported by crystal reports, or how to best work around that?

SELECT store,org_name_full, register_num,grp_dt,MIN(dates) , MAX(dates)

FROM (SELECT DISTINCT,rpt.org_name_full, rpt.register_num, dates,

dates- ROW_NUMBER() OVER(ORDER BY store,org_name_full, rpt.register_num, dates) grp_dt

FROM (SELECT DISTINCT org.org_lvl_number store,





FROM cshregee r,

orgmstee org,

hud_stores str,

(SELECT trunc(sysdate,'MM') + level - 1 dates

FROM dual

CONNECT BY LEVEL <= SYSDATE - trunc(sysdate,'MM')+ 1


WHERE org.org_lvl_child = r.org_lvl_child(+)

AND org.org_lvl_number = str.store_num) rpt,

cshdy1ee d

WHERE d.org_lvl_child(+) = rpt.org_lvl_child

AND d.register_num(+) = rpt.register_num

AND d.sales_date(+) = rpt.dates

AND d.sales_date is NULL )

GROUP BY store,org_name_full, register_num,grp_dt

HAVING MAX(dates) - MIN (DATES) > 3

ORDER BY STORE, register_num;

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Sep 16, 2016 at 03:52 PM

    Take the semi-colon off the end of the command.

    Also, you might want to look at my blog post for more information about how to use commands correctly. It's here: Best Practices When Using Commands with Crystal Reports


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.