CFContent / Excel Output issue

I'm trying to do a simple query to output data to the browser
in Excel format but I keep running into the same problem... which
is similar to those I've seen in other posts here. I've been
browsing the forums for a while trying every suggestion I can find
to solve my problem but so far nothing works.
The process is triggered by the user choosing an "Excel"
radio button on a form and then clicking a submit button. The form
action then processes the user's selection criteria through a
series of queries and then attempts to open the output as Excel
data. Like others here, Excel tries to open as the CFM url I called
instead of the XLS filename I've added to the CFHeader tag. The
REALLY strange thing is that if I choose CANCEL and then submit the
form a second time, the file opens as it should... without fail.
If I comment the CFContent and CFHeader tags the browser
displays the report data as expected with no errors.
I believe Excel is tripping up on something but I just can't
figure out what. I have a similar process in another part of my
site that uses a link to trigger the report instead of a form
submit and that works just fine. Am I missing something here in the
difference between a link and a form submit?
Here is where things appear to be failing. The commented
lines are just to show you what I have tried. I'm currently using
the variables.strExcel_Out variable for output. This was created
using CFSaveContent and running the report code
dspSemaReportOutput2.cfm. I've also tried running that directly
without the variable. I get the same results no matter what I
change so I'm missing something.
Any thoughts or suggestions would be appreciated.

Success!!
I have to eat my words slightly in that Fusebox was PART of
the problem. Or rather my failure to see how FB was including code
that I was ignoring. This may border on off-topic but I'd like to
post the answer for anyone else struggling like I have for 2 days
with this.
In Fusebox you can include a "global prefusaction" which has
the effect of adding the exact same <CFInclude> at the top of
EVERY page. In our case we have one of those which includes a
template that draws the same page header for everything. This page
header has the line...
<cfheader name="cache-control" value="no-cache, no-store,
must-revalidate">
... which was the root of all my problems. No matter what I
tried I was unintentionally resetting the cache-control value in
the http header.
So in reality the problem was not Fusebox per se... but my
failure to recognize that every thing I tried still included this
one $#@*@!! line of code. This is such a long standing and integral
piece of our site that it was easy to overlook.
See this MS post for more detail:
http://support.microsoft.com/default.aspx?scid=kb;en-us;316431
I hope this helps someone else.

Similar Messages

  • Excel output issue from a semi colon separated sql file script

    Hi,
    I am executing a simple SQL script with back to back Select queries resulting in ; separated text output.
    I save this output as a text file and open in excel specifying delimited with ;.
    For example -
    SQL script is as follows-
    SET lines 5000
    SELECT 'Error Code'||';'||'Error Message'
    FROM dual
    SELECT lookup_code||';'||description
    FROM fnd_lookup_values
    WHERE lookup_type = 'NLUS_AR_INT_ERROR_MSG'
    ORDER BY TO_NUMBER(LTRIM(lookup_code,'E'))
    The output retrieved has the following 2 issues -
    1. A blank row is inserted after the "Error code Error message" row. I need to eliminate this blank row.
    2. The 2nd issue I am facing is an empty row is inserted after every 62 rows in the excel.
    Please let me know how I can eliminate these blank rows that are appearing after every 62 rows and in between each query's results.
    Thanks,
    Aditi

    For the first issue you can try the "prompt" command.
    For the second issue you can add a "set pagesize 0" command in your sqlplus-file.
    You can use "set trimspool on" to elimate blanks at the end of each line in your outputfile (if you want).
    set termout off
    set feedback off
    set heading off
    set echo off
    set linesize 5000
    set trimspool on
    set pagesize 0
    spool c:\temp\abc.txt
    Prompt Error Code;Error Message
    SELECT lookup_code||';'||description
    FROM fnd_lookup_values
    WHERE lookup_type = 'NLUS_AR_INT_ERROR_MSG'
    ORDER BY TO_NUMBER(LTRIM(lookup_code,'E'));
    spool offEdited by: hm on 31.03.2011 04:41

  • Excel output issue

    Hi Friends,
    I know that its not the right forum....but i need some pointers...
    I developed one XML report and its o/p is in excel.
    In one column i need to print 1-1,1-2,10-1.....the values are geting fine...in.xml
    But in Excel its dispalying as 1-jan,1-Oct...
    I think we need to some sort of setings in Excel...
    Plese Help me out...its very urgent.
    Regards
    Harry

    Harry,
    Right click on the column header and uner Number tab choose the Category as Date(I think it is already there),
    Change the format which you want to show.
    And then check the display.
    Thanks,
    With regards,
    Kali.
    OSSI.

  • When running an xml publisher report the xml output leads to 9 mb and the excel output file leads to 20 mb.But the output records is originally 4000 records. When copy to new excel it is showing 3.5 mb only. Does anyone knows the answer for this issue?

    When running an xml publisher report the xml output leads to 9 mb and the excel output file leads to 20 mb. The records contained in excel file is 4000 records. When taking the excel records and copy to new excel file the excel file size is 3.5 mb only.Why does the oracle software generates 20mb file?
    Does any one knows the answer please advice?

    Hello,
    This issue is because the Excel output from BI Publisher is MHTML (XML Publisher generates XHTML) not binary .xls.
    MHTML and XHTML are more verbose formats than binary .xls.
    It will be large because the current Excel output is just an HTML and not compressed like PDF. Please use the workaround (save it as .xls file).  This is a known limitation of RTF layout templates.
    BI Publisher Enterprise has a new feature True Excel Templates. The layouts generate binary Excel output.
    Excel Output File Size Generated By BI Publisher is Very Large (Doc ID 760437.1)
    Bogdan

  • Output in Excel Format Issue

    Hi all,
    I am not able to view the output in EXCEL format after registered the RTF file in the XML Publisher Administrator to run as a concurrent program.
    I am wokring in XMLP 5.6.2 and Microsoft Office 2003.
    When i preview the output as EXCEL in the options before run the conc. program, i have the following error msg and also when i view the output,it shows the output in some htm tags format not in EXCEL Format.
    java.sql.SQLException: No corresponding LOB data found : SELECT FILE_DATA, DBMS_LOB.GETLENGTH(FILE_DATA), FILE_NAME, LAST_UPDATE_DATE FROM XDO_LOBS WHERE LOB_TYPE = :1 AND APPLICATION_SHORT_NAME = :2 AND LOB_CODE = :3 AND LANGUAGE = :4 AND TERRITORY = :5 at oracle.apps.xdo.oa.schema.server.XdoLobsInputStream.<init>(XdoLobsInputStream.java:108) at oracle.apps.xdo.oa.schema.server.LobHelper.getLob(LobHelper.java:877) at oracle.apps.xdo.oa.schema.server.LobHelper.getBlobDomain(LobHelper.java:912) at oracle.apps.xdo.oa.template.server.TemplatesAMImpl.processTemplate(TemplatesAMImpl.java:2053) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:189) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:152) at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:721) at oracle.apps.xdo.oa.template.webui.TemplateGeneralCO.previewTemplate(TemplateGeneralCO.java:741) at oracle.apps.xdo.oa.template.webui.TemplateGeneralCO.processRequest(TemplateGeneralCO.java:158) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:581) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1095) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:932) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:899) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353) at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2298) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1711) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418) at oa_html._OA._jspService(_OA.java:88) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162) at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187) at oa_html._RF._jspService(_RF.java:102) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456) at org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:534).
    please post your comments to solve this issue.
    Regards
    Prabu

    Prabhu
    adding to above post
    first fix -- No corresponding LOB data found
    then follow the steps in below post for excel output
    Excel output in EBS?

  • EXCEL output logo issues in  XML Publisher

    Hi,
    We are using XML Publisher API to generate PDF,EXCEL outputs using Template. While adding image to the template its showing in the pdf output. But not showing in the Excel output. Then i added url:{/Image} in the alt text of the image in template and submitted the report again now able to see the image in excel output. Can you please tell me why its not showing the image in excel by default which is right happening in case of PDF. Iam getting the same issue for HTML outputs generation also. Please tell me what i can do to get the image by default same as the way i am getting in PDF.
    Thanks
    Satya

    Hi Alex,
    Thanks for your suggession.
    I have two OAF versions and i found the xml publisher version from the below java file
    $OA_JAVA/oracle/apps/xdo/common/MetaInfo.class
    in both 11.5.10 and 12.1.1 OAF versions i am seeing the below line of code
    public static final String VERSION = "Oracle XML Publisher 5.6.3";
    when i login to the application and went to the About this page option available there
    in 11.5.10 i got to see that the version
    is XML Oracle XDK Java 9.0.4.0.0 Production
    in 12.1.1 version
    XML Oracle XML Developers Kit 10.1.3.130 - Production
    But as per your seggession from the MOS document 736897.1, i came to know that it is an issue in 5.6.3
    Can you please tell me how to find out my xml publisher version in different EBS versions.
    I am using Office 2007.
    Finally,
    in the document i can see that
    Applies to:
    *BI Publisher (formerly XML Publisher) - Version 11.5 to 12.1 [Release 11.5 to 12.1]*
    Information in this document applies to any platform.
    Means this issue is not fixed even in 12.1.3.
    To resolve this issue,do we need to do the manual image setup like the way menioned in the document 736897.1?
    Thanks
    Satya

  • Unable to see EXCEL output for xml report--browser issues?

    hi i have created and registered an xml publisher report.
    i want to see the out put in Excel format.When i run the report i get junk data as output.
    is there any profile setting or viewer profiles that i need to change to view the output in excel.
    i can see excel output on standalone version when i load the data into template and look for the excel output.
    i cant see the same when i run the program through apps.
    Can any one help me regarding this.
    Thansk in advance

    I got the solution for this issue i am closing the thread..
    i had to change the system profiles to browser
    sysadmin>system>profile>query %Viewer%>set Viewer Text:browser
    and Text:browser
    Thanks.

  • Issue with Excel output in BI Publisher(OBIEE 11g)

    Hi All,
    I have designed my BIP report in RTF Layout, it contains pivot table( with one column and one row and a measure column).  when i export the report in Excel output format, i have 3 issues.
    i) I have fixed the pivot table row height as 13.75 pixels in RTF Layout but when i export it into Excel output it comes with 15 pixels as row height.
    ii) In layout i have Arial 8 as font formatting, in Excel output it comes with calibri 11 (when i double click on the cell it shows Arial 8).
    iii) Pivot table has month Column which grows horizontally when i run the report ie. Jan, Feb,..Dec.In Excel it has to show each month with a single column is my requirement like
    A
    B
    C
    D
    E
    Jan
    Feb
    Mar
    Apr
    Sales Quantity
    120
    110
    150
    120
    But it shows like below, each month occupied multiple columns; it affect the report structure.
    A
    B
    C
    D
    E
    Jan
    Feb
    Sales Quantity
    120
    110
    Can anyone help me on this.
    Thanks in Advance
    Arun.

    Try using substring instead of substr. You may want to try LOGO1 and LOGO2 as texts first just to ensure that the condition is working.
    <?xdofx: if substring(OU_NAME,1,3)='MAC' then LOGO1 else LOGO2 end if?>
    Hope this helps.

  • Excel output of report on client machine

    excel output report on client machine
    hello
    i am running report from app server, output is excel file...
    using following URL
    web.show_document(rpt_url ||'&report='||rpt_path||'batch_idcards_print_excel.rdf&desformat=spreadsheet&destype=file&desname=c:\batch.xls','_blank');
    ----this stores the excel file at app server under c:\
    now i want to save it on client machine... how can i do that ?
    from one forum, i got help , so i changed URL as below
    web.show_document(rpt_url ||'&report='||rpt_path||'batch_idcards_print_excel.rdf&desformat=spreadsheet&mimetype=application/msexcel&destype=FILE&title=batch.xls','_blank');
    when i open report, no window opens for saving file...a new window opens and gets closed itself immediately...
    wht is the problem?... client machine having MS office excel 2003...

    Dear
    Could you, please, tell us what you've done to solve this issue? We're facing the same problem, and until now we couldn't figure out what is exactly happening.
    Thanks in advance for any help.

  • Bypass Header and Footer in Excel output

    I have a Requirement like this
    I need to have the report output in the below three formats
    PDF,EXCEL,HTML
    But when we see the ouput in EXcel it should not have the Footer and Header Scetion ,
    remaining two output formats (PDF,HTML) must have the Footer and Header Section.
    Any one having any idea about this issue.
    Thanks in Advance.
    Have a Nice day.

    Hi @BIPuser.
    I said the same thing to them but they said no that is final option but we need only single template for all the outputs alos it should handle the bypassing of header and footer for excel output.
    Thanks for your reply, If i come across anything i will let u know.

  • Chart(graph) is not displaying in my Excel output

    Hi All,
    I was working with oracle EBZ R12, and bi publisher 10g,
    I have developed a RTF with graph, when i moved the RTF and run the report through application (the Excel output is not showing the Graph,but in pdf output the graph is coming fine).
    I have gone through this documents
    http://docs.oracle.com/cd/E10091_01/doc/bip.1013/e05000/toc.htm
    and the forum question already raised for the same.
    https://forums.oracle.com/thread/1018488
    But i dont know the exact path of the web.xml file to change as mentioned in the links. Can any one help on this to resolve this issue.
    Thanks & Regards
    Srikkanth.M

    Hi,
    Its looks like this might be the customization issue please have a look at the OSS Notes 457497 and refer to the questions 2, 3 &  4 may be you can get the idea (Specially 4).
    Why are some texts not printed at all?
    Answer:
    Which texts are printed depends on the Customizing settings of purchasing.
    Go to Customizing for purchasing.
    Choose "Messages -> Texts for Messages -> Define Texts for <Purchasing Document>". Choose "Print Document <Purchasing Document>". Select "Texts for Document Items" and add a new entry.
    You must specify a value for the print sequence in the detailed screen for your new entry.
    Let me know in case of any.
    Regards,
    SRinivas

  • Problem with Excel output format

    Hi Guys,
    I am creating a report in XML Publisher (not standalone). I am facing some problems could anyone please help me to figure out the issues.
    Is it possible to have all three output format (PDF, HTML & EXCEL) exact (same aligned) only by creating a single RTF Template? I am facing the problem with Excel output format the output format of excel is taking excels cell formatting.
    Example Numeric fields --> Right Aligned, text fields --> Left Aligned
    One more issue with excel is -ve(negative) values are getting displayed in red and in brackets like ($13) (with red color).
    Our client want excel output on priority.
    Is there any limitation for excel output format of reports?
    It is very urgent for us please help.
    Any help would be highly appreciated.
    Thanks,
    Pragati
    Edited by: user11237443 on Aug 27, 2009 1:22 AM

    Hi Mahi,
    Thanks for your response. But i could not understand how can we write wrapper program could you please give some light on this or provide some link it would be helpful for me:-)
    I have read that blog for excel limitations but i have more question?
    1) What about the negative values?
    if any field is displaying negative amount then excel not displaying right value for that:(
    2)How can we align header or data?
    Do XMLP with EBS provide any solution for formatting in excel?
    3) If for the alignment of numeric value we concatenate them with any special character then how can we perform calculation that field?
    Here are so many formatting issues do we need to write any code in xml for that?
    Please help.
    Many Thanks,
    Pragati

  • Image in Excel output of XML Publisher

    Hi,
    I have tried to generate output of an XML report in Excel format, its working fine.
    There is an image in the RTF, the image is not displayed in the Excel output (its showing like 'X').
    I have followed the following steps:
    1)Insert > picture > from file > FNDSSCORP.gif
    2) Right Click on picture > Format Picture
    3) Enter as follows in the Web tab of Format Picture url:’${OA_MEDIA}/FNDSSCORP.gif’}
    Can anyone please help me on this, this is very urgent.
    Thanks, Divya

    You should put this issue on the XML Pub forum.
    I remember some specific setting required for linking images off the instance top. Check the XML Pub dev guide.
    --Shiv                                                                                                                                                                                                                                                                                                                                                           

  • Excel output gets expanded when developing Xml publisher report !!

    I am developing a report using XML publisher which generates Excel output ....
    And my layout keeps repeating for every unique delivery...(i am passing 'x' deliveries as input)
    1) When i try to generate a pdf output, my report works fine but when i try to generate an excel output the table size expands..
    2) The jpg file inserted in the rtf(layout template) appears when i generate pdf report and does not appear in the excel output..
    What could be the reason ??

    Hi;
    Please see below thread which could be helpful for your issue:
    XML PUBLISHER report in Excel out put problem
    Regard
    Helios

  • Excel Output problem with XML Publisher Report

    Hi Experts,
    I am working on XML Publisher report with EBS 11i and database 9i. My XML Report output type is EXCEL, i have below issue with the output.
    I have column 'quantity' with xml tag <?QUANTITY?>.
    In the XML file it's showing the value '028' for quantity, but when i open the output in EXCEL, it's showing up '28', removing leading zero. I want to show the data in EXCEL also '028'. Could somebody help me how to print the XML Tag value as it is in EXCEL output.
    Thanks in advance.

    Hi, try using this in your template.
    <fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?QUANTITY?></fo:bidi-override>

Maybe you are looking for