Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ORA - 01843 Error: Not a valid month

Status
Not open for further replies.

devnaren

Programmer
Aug 23, 2007
49
US
Hi All,

We are using Crystal Reports XI to create reports and executing those reports from the Business Objects XI R2 and using Oracle 9i database.
I created a report, in that i am using an object SubmittedDate which is coming from universe. In the database the field datatype is varchar2(255). So I created object in universe as to_date({field}, 'mm/dd/yyyy').

On the report side, i created two parameters as StartDate and EndDate which is set to Date format.

Now when i am trying to write a Record Selection formula as

{SubmittedDate} >= {StartDate} and
{SubmittedDate} <= {EndDate}.

its giving me an error as

ORA-01843: Not a Valid Month.

Still yesterday it was working fine. But I don't know why it is not working from 29th of Feb.

when i check it in search engine about this issue, its says like NLS_DATE_FORMAT.

I am confused in this issue.
 
Hi,

I had the same problem. If you want to change the date format in BO you can see theses files :
- oracle.prm in Program Files\Business Objects\BusinessObjects Enterprise 11.5\win32_x86\dataAccess\connectionServer\oracle for oracle DB.
- sqlsrv.prm in Program Files\Business Objects\BusinessObjects Enterprise 11.5\win32_x86\dataAccess\connectionServer\odbc for SQL server DB.

See also the generated sql query of the report. If your SELECT statement contains @variable which is DATE type, you need customize your query by adding a TO_DATE(@variable,'your format').

regards,
Tarek
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top