SYMPTOM:
When executing a report that contains a date attribute in the filter of the report definition in Strategy Developer 2021, the following error occurs:

QueryEngine encountered error: Fetch failed. Error type: Odbc error. Odbc operation attempted: SQLFetch. ORA-01843: not a valid month

CAUSE:
One of the possible causes for this problem is that the VLDB properties at the project level for the database instance generate the wrong SQL.
The SQL generated for the above report is:
select distinct a11.ID_DATE ID_DATE,
a11.ID_DATE_YEAR_LAST ID_DATE_YEAR_LAST
from DM_DATES a11
where a11.ID_DATE in (To_Date('06/27/2006', 'DD-MM-YY'))
Check that the Date Pattern and Date Format settings from the 'Select/Insert' group are set to use the defaults, as shown below:
