Hi All,
I have Oracle DB, trying to create a filter in IDT, on a Date field with Data as:
Exp Date
Jan 9, 2013
Jun 11, 2014
May 12, 2012
My Prompt filter will give me a start Date and a End Date for Date Range to select Exp Date.
I use the Exp Date field for the List Of Value and made 2 parameters, Start Date and End Date using this list of value.
However when I try to run this in webi, the Prompt shows me Date in the following format :
Jan 9, 2013 12:00:00 AM
In other words it is coming as Timestamp. If I select the Dates then I get an Oracle error:
ORA-01843 Not a valid Month
Need help to solve this. Can I use another way to select Date Range?
Hi All,
I have re started work on this issue, I tried the solutions offered but nothing worked so far.
The thing I have noticed is that my Exp Date object when I drag it to the filter panel and let’s say try to select a Date , e.g. 7/20/2014
When I view the SQL syntax in Query panel it shows me
EXPDATE IN ( '20-07-2014 00:00:00' )
So you can see the Date is shown first and that is why the error coming up “Not a valid Month” since 20 is not a valid month.
Here is my new syntax for Exp Date :
Webi is the culprit, because it gives the date as a string without a clean TO_CHAR.
The date format that you define in Designer has nothing to do with it, this is only an output formatting for tables.
So far I tried both your ideas but nothing is working. I have now resorted to making my Date field as a String and only then it works, otherwise it always changes the Date format.
This issue is mind boggling.
Are you using the calendar drop down select to get your dates? If you are then you can modify the code in that to give you the correct date format back
The PRM file is usually the one to change to solve this. You need to restrty the connection server once you have changed the prm file for the Oracle database.
If that still does not work, then there is this check list to go through. The PRM file change is also detailed there:-
As I said already, the prompt not matching, in the terms of format, is usually the Input date parameter in the PRM file. Also, he is using a numeric in his month mask, already.