Jump to content
Changes to the Jaspersoft community edition download ×

ORA-01843: not a valid month


premkumark

Recommended Posts

Hi, 
 
I am getting the following error when i try to run a report with date parameter. 
 
The report was created using jasper reports and the database is Oracle 10g. 
 
i am using the following query in the report.. 
 
SELECT ANALYSIS_NAME, ANALYSIS_RESULT FROM ANALYSIS WHERE RECEIVED_DATE =  
TO_DATE($P{START_DATE}, MM/DD/YYYY) 
 
I ran this query in TOAD its working fine but when i run the report its throwing an error saying "ORA-01843: not a valid month" 
 
Thanks, 
Kumar 
 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

HI,

 

Please check again your query is not correct. It soule be

 

SELECT ANALYSIS_NAME, ANALYSIS_RESULT FROM ANALYSIS WHERE RECEIVED_DATE =  
TO_DATE($P{START_DATE}, 'MM/DD/YYYY')

 

 

also verfy the parameter. May be problem with qouts which is required in the query.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...