BI Publisher Date Format
Hi,
I am building a data model using a SQL query in BI Publisher, the date format of the column in the database is DD-MON-YYYY. When I use this format in BI Publisher the query returns no results:
where trim(w.date_added) = '19-MAY-2010'
I have tried using trim(to_date(w.date_added, 'YYYY-MM-DD')) = '19-MAY-2010'
This also returns no results, however when running against the database I do see resullts.
Can anyone help?
Thanks
Edited by: sliderrules on 16-Sep-2010 02:22
Hi,
If I run the query in the database using date format 'DD-MON-YYYY', I do get results. The problem lies within BI Publisher query, I have tried using java date format:
trim(to_date(w.date_added, 'MM-dd-yyyy')) = '05-19-2010'
This also returns no results, the actual date format in the table appears as '19-MAY-2010'
Similar Messages
-
Hi,
I am trying to convert a date format 20100910 to DD-MM-YYYY, is it possible to change this format in the template. I have attempted to change the data model query using:
to_date(date_field, 'YYYY-MM-DD') but this results with no data returned from the query.
Can anyone help with date formats?
ThanksHi KaviPriya,
Can u please post the syntax how to convert a date in the Format MM/DD/YYYY into Canonical Format? I have a requirement to sort the data according to the latest dates. But my date coming from the XML is in the format MM/DD/YYYY. It would be helpful if u can send me the right syntax how to convert a date into Canonical Format?
Edited by: Pradeep Reddy Kypa on May 23, 2011 11:45 AM -
XML Publisher to Excel Report : Date format problem
Hi,
I am trying to create an Excel report with XML Publisher. I have an issue with the Date Fomatting.
In the XML template, I have set the "Date" column in date format. But the excel output report "Date" column returns as "General text" (string) and it is sorted as text, not as date.
Can anyone please help me out?
Thanks!!!Hi,
Did this post solve your problem? I have the same issue that I need to solve.
I have an xsl-fo template with dates in it.
The dates are in english.
My excel is setup to use danish.
When I export to excel it knows the month jan, feb, mar, apr, ... which are the same in danish and english.
But months where it differs like may (danish maj) the cell is a general text instead of date.
Is there anyway you can set/transform the date in the xsl-fo template so it does not care about the language in excel?
Thank you in advance.
BR Kenneth -
Date Format issue in xml publisher
Hi,
I have a date column with the format of 'DD-MON-YY' in database. When i try to fetch this column value thro' sql query in xml publisher with data template, its giving the column value as '2007-01-01T00:00:00.000-08:00'.
Now i want to convert '2007-01-01T00:00:00.000-08:00' format value to 'DD-MON-YY'.
Can anyone please help me out to solve this problem to convert given date format to required date format.
Regards,
SadanandHi,
when you have a date column in the database, than the format is not 'DD-MON-YY' .
'DD-MON-YY' is the default representation as string of a date column in your database and could be different in others (defaults are set depending the NLS-Settings).
If you use rtf-templaes you had to say the form-field, that the type is date and then you can set your format mask. Per default even date fields are represented in rtf-templates as type regular text, and so the default for date columns contains every informationn of a date column.
Regards
Rainer -
Convert date julian to regular date format in BI Publisher
Hello,
How to convert Julian format date 'SAAJJJ' to regular date format in BI Publisher 'YYYY/MM/DD'
help mi please.Hello,
help mi please,
How to convert Julian format date 'SAAJJJ' to regular date format in BI Publisher 'YYYY/MM/DD'
Thanks. -
Date format not working in XML Publisher
Hi,
We have applied a date format while formatting the report layout using the Template.
The same is not getting reflected.
The output is as follows : 5/1/2006 0:0:0
i.e date with time stamp.
We require DD-Mon-RRRR format.
The same has been tried using the Text Form Field Options.
When applying the same for Number it works . But in case of Date it does not.
Can anybody who has worked on the same, let us know the appropriate way to do the same.
Thanks,
Angelica.XMLP does not recognized the field as date. The only format recognized as date is
YYYY-MM-DDThh:mm:ss+HH:MM
So, either make the data model to return dates in the above format, and then apply date formatting in XMLP, or do the job on the data model side and return the string in the desired final format (which, again, then will be string, not date for the XMLP) -
Date format issue in Web Analysis...
Hi,
I am creating a report by connecting to a couple of relational tables. I'm using SQL Spreadsheet and SQL Subscription objects. I'm creating a Date filter using SQL Subscription object (list box) using the data source created by the SQL Spreadsheet. My database default date format is 'DD-MON-YYYY'. But in the list box it shows as 'YYYY-MM-DD HH24:MI:SI". When this value is selected, I get a "Literal mismatch error" since it doesn't match with the value stored in the database.
Why the format in WA is showing in this format even though it is fetchting it from my database in which the format is 'DD-MON-YYYY'. Is this related to WA date format settings? I cannot find anywhere in WA studio where I can set date formats. Is this something to be set in the server or webanalysis.properties file?
PS: I tried to work around this by storing the date value as character in the database but then I am not able to sort them ascending or descending order.I also tried creating the web analysis relational database connection which creates a virtual cube. But even there when I build the report using Data Source Navigator, it is showing date in 'YYYY-MM-DD HH24:MI:SI'.
HHi,
Let me provide you the details of the report.
A concurrent program has been created with executable as XDODTEXE (XML publisher report).
In the data definition, we have embed one query which fetches transaction date and due date from some tables based on some conditions.
Now, we have to show these date columns in report output which will be in EXCEL format.
We want these date outputs to be printed in dd/mm/yyyy format. That is the reason we had given-
TO_CHAR(TO_DATE (SUBSTR(transaction_date,1,10), 'DD/MON/RRRR'),'DD/MM/RRRR') in the SQL query.
Problem in output is- In date columns, data after 12th is fine i.e. in format dd/mm/yyyy, it is printing properly.
But before 12th, it is printing in format mm/dd/yyyy as mentioned below-
01/10/2012--wrong format, it should be 10/01/2012
01/11/2012--wrong format, it should be 11/01/2012
01/12/2012--wrong format, it should be 12/01/2012
13/01/2012--correct format (dd/mm/yyyy)
14/01/2012--correct format (dd/mm/yyyy)
How can i send you the attachment, is there any way/any email id?
Rgds-
Sumir -
Need help in converting date format
Hi,
Need help in converting date format from 'DD-MON-YYYY' to 'YYYY-MM-DD' in an .rtf template as I believe xml publisher supports the date format as 'YYYY-MM-DD' only.
Thanks,
Raj.I got the same problem, anyone know how to solve this problem? I allready found some date functions on http://blogs.oracle.com/xmlpublisher/2008/09/date_functions.html . I also tried <?xdoxslt:month_name(xdoxslt:get_month(xdofx:substr(NEED_BY_DATE, 4,3)), $_XDOLOCALE), 0, 'nl-NL')?>, but then it returns a namespace error (Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'xdofx' used but not declared.). Anyone know how to fix this?
Edited by: user11165753 on 7-dec-2009 23:50 -
Date Format is different in WebI Rich Client and Infoview
Hi All,
Iam facing problem with date format , but i need the date format as like dd-mm-yyyy.
WEBI Rich Client is displaying the format dd-mm-yyyy.
but in infoview it is displaying like mm/dd/yyyy
Can i have any solution for this ..
Thanks
MaheshHi
Did you sort this out?
I am new to BO reporting, and now encountering this issue as I start publishing WEBI reports via INFOVIEW on the portal.
Cheers,
Andrew -
Date Format Like D D M M Y Y Y Y in RTF. If possible any body please let me
Hi,
While developing RTF File. I want to display output date format like 'M M D D Y Y Y Y' by using XML Publisher.
If possible any body please let me know ASAP.
Regards,
RajeshThanks for replaying mail!.
I have tried previously the belows format on RTF File. It is not working.
<?xdoxslt:ora_format_date(INVOICE_DATE, 'D D M M Y Y Y Y')?>
<?format-date:INVOICE_DATE;'D D M M Y Y Y Y'?>
Please let me know any other possibility is there let me know ASAP step by step.
Regards,
Rajesh
Edited by: Rajesh on Oct 16, 2012 10:55 PM
Edited by: Rajesh on Oct 16, 2012 11:05 PM -
Change default date format of reports data source
Hi all,
I need to convert an ugly EBS standard charactermode report (Oracle Reports) into the Xml-Publisher format. I'd like to use the existing report as the xml data source as all data is available in the old report.
The problem is that the date format used by reports is determined by NLS_DATE_FORMAT (et al). This date format unfortunately is not xml compliant (dd.mm.yyyy in our case) and so Xml-Publisher date related features (e.g. sort by date) will not work .
The report/template is submitted via the submit concurrent request form.
Is there a way to make the underlying reports produce xml conformant dates without resorting to wild substring operations in the template or changing the EBS standard report?
Thanks
ChristophRajaramanV wrote:
Can i change the nls parameter of a particular column(date field) in a table?if i set that it is apllied to all the tables in the database..No. Please understand that all dates, in all tables are stored in the same, oracle-defined, format. NLS_date_format affects how that internal date is converted to a character string for presentation to humans, or how to interpret a character string (received ,ultimately, from a human) for conversion to that internal format. It (NLS_DATE_FORMAT) can be set at several levels, but table/column is not one of them.
Please read the link I posted in my earlier response. It will clear up your confusion.
Edited by: EdStevens on Feb 1, 2012 6:55 AM -
Deserializing error for the Data format
Hi,
We have created a RFC FM. Which will be call from other non-sap system.
Where other non-sap system was using dot net.
While they are calling our custom RFC there are getting a problem with date format. The error says as follows
- <n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates">
<MainName>/1BCDWB/WSS0070718161009712605</MainName>
<ProgName>/1BCDWB/WSS0070718161009712605</ProgName>
<Line>74</Line>
<Valid>X</Valid>
- <DeserialisationFault>
<DescriptionText>An error occurred when deserializing in the simple transformation program /1BCDWB/WSS0070718161009712605</DescriptionText>
<DescriptionDetailText>The date 20060728 is not a valid date according to the XML format for ABAP</DescriptionDetailText>
<TreePosition />
<ClassName>CX_SY_CONVERSION_NO_DATE_TIME</ClassName>
</DeserialisationFault>
- <Caller>
<Class>CL_SRG_RFC_PROXY_CONTEXT</Class>
<Method>IF_SXML_PART~DECODE</Method>
<Positions>1</Positions>
</Caller>
</n0:SimpleTransformationFault>
Could any one help me out regarding this deserialize error with date from?
Thanks in Advance
Regards,
Gopinath Addepalli.I believe you may still have issues with your migration. I would first verify that you can perform some basic functions with PWA:
1) Create, save and publish a new project from browser.
2) Edit, save and publish one of the migrated projects.
3) Before doing the migration, do you have all the approvals completed and projects published.
4) Clear out your cache and try a different project to open.
5) Open Server Settings, go to Delete Objects and see if your projects are listed for deletion.
Cheers!
Michael Wharton, MVP, MBA, PMP, MCT, MCTS, MCSD, MCSE+I, MCDBA
Website http://www.WhartonComputer.com
Blog http://MyProjectExpert.com contains my field notes and SQL queries -
Date Parameters and List of Values (error message date format cannot be nul
I'm new to BI Publisher. I began with a simple report that has 4 parameters. The parameters are center code, sales date, customer number, and job number. I am trying to create a list of values on my customer number based on the center code and sales date entered by the user. My query for my LOV is:
select customer_nbr
from ticket
where center_cd = :center
and trunc(trans_date) = :salesDate
salesDate is defined as a date parameter with a format of MM-dd-yy. It's default value is 04-10-07.
When I attempt to view my report after adding the LOV, I receive the error:
Date format can not be null.
What am I doing wrong? Also, I would like the salesDate to default to the current date. I have tried using sysdate as the default value. This isn't working. The salesDate defualts to null when it is set to sysdate."Date - allows the user to enter a date as a parameter. Note that the data type must also be "Date" and the format must be Java date format."
Page 4-9, Adding Parameters and Lists of Values
Oracle® Business Intelligence Publisher
Report Designer's Guide
Release 10.1.3.4
Part No. E12187-01 -
Date format in Excel report output
Goodmorning All.
Am using XML publisher for some reports. The current report is in Excel. Everything is fine on this. I want to print the date parameter in 'MON-YY' format.
In the 'Text Form Field' option, I have used the type as 'Regular Text'. In the 'Add Help Text' using the formatting as follows: <?format-Date:P_TO_DATE1;MM/YYYY?>. This seems to send the date parameter '1-Jun-12' as 'Jun-12'. But when it opens in excel, Excel assigns the cell 'Custom' format and type as 'd-mmm-yy' instead of 'mmm-yy'. So the final output still comes in DD-MON-YY format.
I have tried changing the type to 'DATE' and date format to 'MMM-yy' in the 'Text Form Field' option. But still the excel custom format is overriding the final output.
Any suggestions?
Thanks
ZHi Alex,
I used the following code in the 'Form field help Text': <?xdoxslt:format_date(P_FROM_DATE1,'MMM-yy','yyyy-MM-dd', 'en-us', $_XDOTIMEZONE)?>
Then I wrote some letters immediately after that and ran the report. When I opened it in excel, Excel assigned format category as 'General' to the output cell. So the output now comes as desired format as 'Jan-12XYZ'.
So it seems, if there will be some additional characters after the dates, then excel does not auto reformat the XML output to the custom date category.
Now the big question; How to do it without the trailing characters i.e. 'XYZ' in the above output. If I remove them, then Excel will again try to custom format the date. I read soemwhere that blank space can be used to append but am not sure how it will be in the code.
By the way in the 'text Form Field Options' I am using type as 'Regular Text'.
Appreciate any help.
Thanks
Z -
Home Page Date Format ERROR ...
I installed language support on my Portal 3.0.9.8 with 3 different languages: us, i=italian, f
but when i use the "i" language there are many problems with format date ...
in the Portal Home Page i have a message like "date format not valid"
and i have problems in the creation of the content area's items with the publish date.
Any one have an idea ???HI All,
I have check my own data date format.
But when i tried to activate the cycle count under
Menu path:
Materials Management > Inventory Management and Physical Inventory>Physical Inventory> Cycle Counting
I will not put any date on it, that's why its weird that i get an date format error.
Where this error came from?
Thanks..
Maybe you are looking for
-
Thanks for such a great update!!!
-
RH9 Snippets not saving, RH not closing have to force close
I'm a new RH user so please forgive me if this is answered somewhere else (I did search for awhile first). Windows XP Pro 2002 Service Pack 3 RoboHelp 9 HTML 9.0.1.232 (recent upgrade from RH7) Project has about a thousand topics Using Visual SourceS
-
How do you get corrupt ringtones back without purchasing them again
I purchased ringtones and transferred them to Itunes. When I did the sync it pulled them off the phone and when I transfered them back they show on the phone in Itunes but are not on the phone
-
Problems with spfile. How to change database parameters
Hello My Oracle database is 10.2.0 and SAP version is NW2004s. I am having errors in alert.log file Thread 1 cannot allocate new log, sequence 3959 Checkpoint not complete Sun Aug 27 01:38:12 2006
-
Stepper position control with myRIO
Hello, I am developing a position control system to move a linear stage back and forth using a stepper motor (file 1). The stage will ultimately need to follow the motion path set out in a function that I have defined (file 2). I have been able t