Solved

Business Objects Prompt Filter

Posted on 2010-11-29
6
1,474 Views
Last Modified: 2012-05-10


I have a task of creating a report where I have to get the list of employees who were born in a particular month based on the Month End Date Entered. I used both below prompt filters,

to_char(( HRMART.EMP_DIM.BIRTH_DT ),'MM') =to_char(to_date(@Prompt('Enter Month End Date:','D',,,),'MM/dd/yyyy'),'MM')

(or)

to_char(( HRMART.EMP_DIM.BIRTH_DT ),'MM') =to_char(to_date(@Prompt('Enter Month End Date:','A',,,),'MM/dd/yyyy'),'MM')


but I get this error "Database error: ORA-01843: not a valid month. Contact your Business Objects administrator or database supplier for more information. (Error: WIS 10901)"

Can someone suggest on how to do this?

Thanks in Advance
0
Comment
Question by:nani11
  • 3
6 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 34234658
Is the prompt working?

Try entering the date in the system format based on the regional settings.

mlmcc
0
 
LVL 1

Author Comment

by:nani11
ID: 34234985
What is 'system format based' date?
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 34235763
The regional settings under control panel

mlmcc
0
 
LVL 34

Accepted Solution

by:
James0628 earned 500 total points
ID: 34236839
I wonder if it might be because one or more records don't have valid dates in that field (as opposed to a problem with the prompt).  You could try something like the following instead and see if you get the same error:

to_char(( HRMART.EMP_DIM.BIRTH_DT ),'MM') ="11"


 If so, then you've apparently got one or more records where BIRTH_DT is not a valid date and you'll need to figure out what those invalid values are and how you want to handle them.

 James
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 34434257
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
A short film showing how OnPage and Connectwise integration works.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now