CSV output is always blank

Im having trouble with one of the reports im working on. Im allowing the user to select from 3 output formats (PDF, CSV, and Data). If i select the PDF it works perfectly (using an RTF template), and if i select DATA it also works fine and returns XML output. But if i select CSV then it comes back empty. No errors... No messages... Nothing...
I have another report that seems to work fine, including the CSV output. This is why it seems baffling to me. The difference between those 2 reports is that the working one uses a SQL query for its data while the one that doesnt work is using a template. Since the template only contains a single query, i did take it out and tried it as a SQL Query but had the same results (blank page).
Im at a loss for things to try. Without any feedback from Publisher, i have no idea where to go. I know that there is data available because several rows are returned with the PDF and Data outputs.
Any suggestions and/or ideas are definitely welcome.
Thanks
--Brett
PS: in case anyone is interested, here's my data template:
<dataTemplate name="CurrCompany" description="Current Company List" dataSourceRef="iub_datasource">
<!-- CVS Version $Revision: 1.4 $ -->
<parameters>
     <parameter name="P_CODE" dataType="character"/>
     <parameter name="P_IND_TYPE" dataType="character"/>
     <parameter name="P_STATUS" dataType="character"/>
     <parameter name="P_ORDER_BY" dataType="character"/>
</parameters>
<dataQuery>
<sqlStatement name="Q_COMPANY">
<![CDATA[
select distinct TRIM(cinfo.fname || ' ' || cinfo.lname) contact_name,
co.companyname company_name,
co2.companyname dba_name,
ci.address1,
ci.address2,
ci.address3,
ci.city,
sc.name state_full_name,
sc.code state_abbreviated,
ci.zipcode,
ty.name company_type
from company co,
company co2,
company_relationshiptype crt,
relationshiptype rst,
company_IndustryType cit,
industryType it,
companyStatus cs,
companyInfo ci,
Company_Companycodetype cct,
Companycodetype ty,
company_contact cc,
Contacttype ct,
Contact con,
contactInfo cinfo,
statecode sc
where co.companystatusid = cs.companystatusid
and cs.name = NVL(:P_STATUS, cs.name)
and co.companyid = ci.companyid
and ci.statecodeid = sc.statecodeid (+)
and co.companyid = cit.companyid (+)
and cit.industrytypeid = it.industrytypeid (+)
and instr( NVL(:P_IND_TYPE, it.description ), it.description ) > 0
and co.companyid = cct.companyid
and cct.companycodetypeid = ty.companycodetypeid
and instr( NVL(:P_CODE,ty.name), ty.name ) > 0
and co.Companyid = cc.companyid
and cc.contacttypeid = ct.contacttypeid
and UPPER(ct.name) = 'REGULATORY'
and cc.contactid = con.contactid
and con.contactid = cinfo.contactid
and co.companyid = crt.companyid (+)
and crt.relationshiptypeid = rst.relationshiptypeid (+)
and rst.name (+)= 'Doing Business As'
and crt.relatedcompanyid = co2.companyid (+)
order by UPPER(DECODE( :P_ORDER_BY, 'Name', company_name || zipcode, 'Type', company_type || company_name, 'Zipcode', zipcode || City || company_name ))
]]>
</sqlStatement>
</dataQuery>
     <dataStructure>
          <group name="G_COMPANY" source="Q_COMPANY">
          <element name="contact_name" value="contact_name"/>
          <element name="company_name" value="company_name"/>
          <element name="dba_name" value="dba_name"/>
          <element name="address1" value="address1"/>
          <element name="address2" value="address2"/>
          <element name="address3" value="address3"/>
          <element name="city" value="city"/>
          <element name="state_full_name" value="state_full_name"/>
          <element name="state_abbreviated" value="state_abbreviated"/>
          <element name="zipcode" value="zipcode"/>
          <element name="company_type" value="company_type"/>
          </group>
     </dataStructure>
</dataTemplate>

Yes, you wont get the csv,
CSV is supported only if the xml is having rowset/row tags.
Since you have your own tags G_COMPANY, as the groupings, you wont get the csv from BIP.
So, use the query directly in BIP , it will automatically add the rowset/row tag, and csv generated is supported for that.
even in data template it is supported if you put rowset and row tags as the group names.
or
you have to write the e-text template with each field separated by the comma , or desired separator.

Similar Messages

  • How to Generate CSV Output from JD Edwards BI Publisher

    Hi All,
    I have a report "Critical Date Report" - R15611 in JD Edwards 8.11. This report has to be generated as CSV output from BI Publisher which is embedded to JDE.
    The purpose we want use BI Publisher is to move some of the data displaying to different place in the page(ex: Move the company address from top left corner to Bottom right corner).
    In order to achieve this
    1.We created blank rtf template and upload to XML repository using P95600 application
    2.Create report definition using P95620 application
    3.Here I see the available output types as PDF,RTF,HTML,EXCEL,POWERPOINT and XML,ETEXT(GRAYED OUT)
    Which output type we can use for CSV ?
    4.Execute the report definition of the critical date report from P95620 to get the XML source
    5.This XML source will be loaded into the blank rtf template
    6.From this point no idea how to design the rtf template in order to get the CSV output.
    7.We did design and output type as excel - but the result data is not in good formatting and alignment*(Headers and footers are repeating).*
    If any one has worked on similar type of requirement,let us know how to do or send a sample XML source,rtf template and how the CSV output will be. Or any document link present in Oracle site will be helpful. Please let me know if you need more details.
    Thanks in Advance.
    Vijay

    Hi Vijay,
    For CSV output, you need an E-text template (not RTF) that's why its grayed out! You can use Excel as output type and have (No headers and footers) , then you can open the file in Excel and store it as CSV. Does not always display correctly though.
    Why are you compelled to use BI publisher? you can use the JDE standard csv output report, (as is used by most EDI systems) of course this may involve a bit of customization if you wants the fields arranged differently.
    -Domnic

  • Customize CSV output?

    Hi Experts,
    Is it possible to customize CSV output files via XSL?  When I specify ContentType=text/csv in a request, MII appears to ignore the StyleSheet parameter.  Is this expected behavior?
    Specifically, my issue is that I'm trying to customize the CSV output so that null string data appears as blanks, not "---".
    Thanks in advance.

    All,
    When you put that content type on the end, MII knows to look for IllumRowsetCSV.xsl and applies it. This is done behind the scenes, however you can access the system stylesheets and modify them to get the desired result. Then you can apply them as a transform to a query or a transaction.
    http://<server>:<port>/XMII/Stylesheets/IllumRowsetCSV.xsl
    Hint: Anytime you want to play with stylesheets, you can open a query > Transformation > Load,  and see what predefined XSL files that are out there. Just save (using above format) and modify and you save the time of creating one from scratch
    Regards,
    Kevin

  • Csv output feature results in a "page not found" error in IE (ver 8)

    Has anyone else had issues with the csv output feature returning a "404 page not found" error when using IE version 8.0?

    Hello. I'm getting an Http 404 The webpage cannot be found" error when trying to export any APEX application's query results into Excel (Application Express 3.2.1.00.10). This was working fine before. Nothing changed with our APEX application. I've been always using I.E. Version 7.0.5730.11 with no problems. I've reset the I.E. defaults and still the problem exists. I've downloaded Mozilla Firefox and the problem does not happen. However, I would like to know why my I.E. still gets this error? Any feedback or suggestions would greatly be appreciated. Thanks for your time.

  • CSV file:Incoming field blank, how put 2 commas in file

    Hi,
    In my IDOC to FILE scenario, I am creating a CSV file from the incoming IDOC. I have a few optional fields in the incoming IDOC so if these fields have no value, then there are no XML tags in the incming XML file in Adapter engine for these fields.
    In effect, when I create my CSV, these fields are missing. I want my CSV to have space/blank value between 2 commas for such fields.
    Example:
    So if idoc segment has 4 fields and field no 2 is optional(and blank in this case), I want my output file like
    field1-value , , field3-value, field4-value.
    I am sure this should be possible to do in FCC or field mapping, but I do not know the command. Appreciate your help.
    Thanks
    Shirin

    Hi Shirin,
    Yes u have to use that node function "EXISTS", ur absolutely right.
    Check this blogs for use of exists Function:
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    New functions in the Graphical Mapping Tool XI 3.0 SP13
    Message Mapping Simplified - Part I
    Regards,
    vinod.

  • Need help in CSV output.

    Hi all,
    We have a requirement to produce a csv output file. we have created RTF template since we have dynamic column requirement. Now when i export in CSV format a blank file is generated in text format. When i tried to view in excel the output looks fine.
    Instead of saving in xls format, when i tried to save in csv, junk values get saved.
    Any pointers regarding the issue will be helpful.
    Regards,
    Vinoth.

    You might have created RTF template.
    if you need a csv/Flat-file you have to create E-text template for this.
    On what is e-text and how to create, refer
    http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187/T421739T481436.htm

  • B1if B12FileScenario where .csv file generate with Blank sheet

    Dear Expert,
    I had gone through 3_B1ifB12FileScenario document, I fallow each step. Even my file created on C:\ drive show blank.
    When I see Below Syntax
    <xsl:template name="transform">
              <FileOut xmlns="" type="file">
                   <xsl:for-each select="$msg/BOM/BO/Document_Lines/*">
                        <row>
                             <col>
                                  <xsl:value-of select="$msg/BOM/BO/Documents/row/CardCode">
    </xsl:value-of>
                             </col>
                             <col>
                                  <xsl:value-of select="ItemCode">
    </xsl:value-of>
                             </col>
                             <col>
                                  <xsl:value-of select="Quantity">
    </xsl:value-of>
                             </col>
                             <col>
                                  <xsl:value-of select="LineNum">
    </xsl:value-of>
                             </col>
                             <col>
                                  <xsl:value-of select="Price">
    </xsl:value-of>
                             </col>
                        </row>
                   </xsl:for-each>
              </FileOut>
         </xsl:template>
    </xsl:stylesheet>
    And get output as below
    - <Payload Role="R" id="atom0">
    - <FileOut xmlns="" type="file">
    - <row>
      <col>M00001</col>
      <col>C00007</col>
      <col>1.000000</col>
      <col>0</col>
      <col>250.000000</col>
      </row>
      </FileOut>
      </Payload>
    - <Payload Role="R2">
      <bfa:io xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms">==== data-length: 0 ====</bfa:io>
      </Payload>
    Can any way say, why csv file is blank...
    Thanks
    Kevin

    hi,
    I think your find the solution, I have the csv file that is blank
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:b1e="urn:com.sap.b1i.sim:b1event" xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent" xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms" xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns:sim="urn:com.sap.b1i.sim:entity" xmlns:vpf="urn:com.sap.b1i.vplatform:entity" xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" bfa:force="" vpf:force="" jdbc:force="" rfc:force="" b1ie:force="" b1e:force="" xci:force="" sim:force="">
         <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
         <xsl:param name="atom"/>
         <xsl:param name="sessionid"/>
         <xsl:variable name="msg" select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role=&apos;S&apos;]"/>
         <xsl:variable name="vpSender" select="/vpf:Msg/vpf:Header/vpf:Sender/@Id"/>
         <xsl:variable name="vpObject" select="/vpf:Msg/vpf:Header/vpf:Sender/@ObjId"/>
         <xsl:variable name="vpReceiver" select="/vpf:Msg/vpf:Header/vpf:Receiver/@Id"/>
         <xsl:template match="/">
              <Msg xmlns="urn:com.sap.b1i.vplatform:entity">
                   <xsl:copy-of select="/vpf:Msg/@*"/>
                   <xsl:copy-of select="/vpf:Msg/vpf:Header"/>
                   <Body>
                        <xsl:copy-of select="/vpf:Msg/vpf:Body/*"/>
                        <Payload Role="R" id="{$atom}">
                             <xsl:call-template name="transform"/>
                        </Payload>
                   </Body>
              </Msg>
         </xsl:template>
         <xsl:template name="transform">
              <Fileout xmln="" type="file">
                   <xsl:for-each select="$msg/BOM/BO/Document_lines/*">
                        <row>
                             <col>
                                  <xsl:value-of select="$msg/BOM/BO/Documents/row/CardCode"/>
                             </col>
                             <col>
                                  <xsl:value-of select="ItemCode"/>
                             </col>
                             <col>
                                  <xsl:value-of select="LineNum"/>
                             </col>
                             <col>
                                  <xsl:value-of select="Quantity"/>
                             </col>
                             <col>
                                  <xsl:value-of select="Price"/>
                             </col>
                        </row>
                   </xsl:for-each>
              </Fileout>
         </xsl:template>
    </xsl:stylesheet>
    can you help me?

  • No data found in csv output

    I have a classic (non-interactive) report that shows some strange behaviour.
    It's a simple page with a report region.
    On the report attributes page under 'report export' the value for 'Enable CSV output' is set to 'Yes' and 'Link label' has a meaningful discription.
    In the development database it works as expected:
    When I run the page the data is displayed and when I click the link for csv output I can either save or open the file. In both cases I find the data I expect in the csv file.
    In production, however, when I run the page the data is displayed, but when I click the link for csv output the resulting csv file just shows "No Data Found"
    I can imagine the report not returning any data, but in that case I shouldn't see any data on screen either.
    And it's extra weird that in development it all works fine.
    Anybody that can offer any help?
    Thanks in advance.

    Hi Eric
    I would never dream of telling anyone not to argue with me :D I've been wrong before and will be again, no doubt!
    For the DIV problem, I was more concerned with &lt; appearing in the output rather than the SQL statement itself - generally problems such as this happen when something on the page is incorrectly formed. When you get a chance, in FireFox, install the Web Developer add-on. When this is installed, on the right-hand end of its toolbar, you will see three buttons - the last two tell you about css and javascript errors. For HTML errors, if you have a text editor that has syntax highlighting, do a View Source on the loaded page, take a copy of the source and paste it in to a new document in the text editor. Save this with an HTML file extension. This should colour-highlight everything. It should become obvious what is wrong as you tend to end up with way too much in the same colour. Finally, on the loaded page, right-click on the DIV text and select Inspect Element - this switches you to a heirarchical view of the HTML on the page in the FireBug pane. Follow the tree up from the DIV and have a look at the structue - at some point, something will look wrong.
    Andy

  • Apex 3.1.2 - missing column in CSV output

    Hi,
    We recently moved our application to apex 3.1.2. There is a report with a CSV output that worked fine in apex 3.0.
    With the same report in apex 3.1.2, one column is missing in the CSV file but is showing on the report. Show column is set to YES, include in export is set to YES and there is no condition in the column attributes.
    Any idea what my cause this problem ?
    Patrick

    I've found the problem. In the print attributes of the report, the column that was missing in the csv file had a column width set to null. When I put 10 in that field (same as the other columns), it suddenly appears in the csv file.
    If I set the column width back to null, the column dissapears again. This must come from the upgrade to apex 3.1.2.
    To find columns that could have this problem, I suggest you take a look at APEX_APPLICATION_PAGE_RPT_COLS.
    +select *+
    from apex_application_page_rpt_cols
    where include_in_export = 'Yes'
    and nvl(print_column_width,0) = 0

  • Csv output  filename &item.

    hello,
    i have a report and enabled csv output.the filename-help say:Specify a name for the export file. If no name is specified, the region name is used followed by the extension .csv.
    ok,filename is not specified,and my region-name is
    Kundenrechnung Nr. &P35_X_RECHNR.
    P35_X_RECHNR is an hidden item and works fine in regionsname,as example regionsname looks like Kundenrechnung Nr. 719
    but when i downlaod the file,the filename is Kundenrechnung Nr. &P35_X_RECHNR..CSV
    how can i use my hidden item in csv filename ?
    [email protected]

    Hi Christian,
    in your case there is a timing problem: The substitution for the region title is part of the region rendering process as is the filename. There is no double-substitution at that point. Imagine the current state to be filename:=NVL(substitute(filename), region_title) where region_title has the value that is handed to the rendering process.
    We reference a hidden page item as filename directly, e.g. "&PX_FILENAME..csv"
    The item value is calculated by a page process that is executed "On Submit - After Computations and Validations", and that works fine. You could try to set the filename to be "Kundenrechnung Nr. &P35_X_RECHNR..CSV" since P35_X_RECHNR should contain the appropriate value at that time.
    -Udo

  • Values for htmldb_item.text  field do not display in CSV output

    HTML DB experts,
    I have a report query with the following 2 items in the SELECT statement:
    wwv_flow_item.display_and_save(2, DOC_CD, 10) DOC_CD,
    htmldb_item.text(3, DOC_DESC, 50, 255) DOC_DESC
    I have enabled the CSV output for this report. The problem is, when I generate a csv file, only the DOC_CD (wwv_flow_item.display_and_save) displays. The values for the DOC_DESC (htmldb_item.text) do not display. What do I need to do to get the DOC_DESC to display?
    Thanks for your help.
    Message was edited by:
    [email protected]

    Items rendered using htmldb_item generate HTML tags on the form, not plain text. You are right, the CSV export excludes them.
    Your best best is to create another report region on some other page with the same query except replace all the htmldb_item() calls with regular columns i.e. make it a read-only report and use the "export: CSV" template and put up a link to this page at the bottom of your editable report (instead of the builtin CSV link). This way when you click on this link, it will generate your report and immediately offer to export it to CSV
    Hope this helps.

  • Problem in CSV Output

    when i am trying look at the csv outpt even if i am not giving the table header row in the template design it is taking some other header rows and displaying it in the output i need just the data in the csv output
    how to solve this issue
    Can you give me any idea how to proceed on this issue.
    Thank you
    Have a Nice Day.

    If some could specify solution for this, it will be great help for me.
    I ll give an example:
    if the data model contains 5 columns and if I design template with 2 columns with some aggregation function included .Then if I try to view the same report in csv format, it displays all the 5 columns from the data model without considering the template. But when I try to view the same report in different format (excel, html, pdf, etc) it is displaying as it is uploaded in the bi publisher. So I request someone to give solution for the same
    And i want add one more question to this post
    when the bi publisher report viewed in a csv format, it includes the column header as well. I want to remove these header from the csv output.
    Edited by: user12511280 on Sep 12, 2011 10:08 PM

  • Scheduled Excel/CSV output with 65k rows

    Hi Experts,
    I just wanted to confirm if in 3.1, can the scheduled excel/csv output handle >65 rows.  From what we've read, it is possible and we assumed that's thru manual run.  However, we aren't too sure if it is the same when scheduled.
    Kind Regards,
    Mark

    Hi,
    When the Webi excel output is > 65K rows, the 1st tab contains the 1st 65K rows and the rest goes to 2nd tab and forth and each tab has maximum 65K rows.
    However, there is a limitation on the total number of tabs can be created in a excel file during this conversion.  You will find out when you get there.
    Hope this helps,
    Jin-Chong

  • Restricting the CSV Output

    Hi
    we want to restrict some of the columns in the csv output is there any way to do it other than using extext templates.
    Thanks in Advance,
    Have a Nice day

    Thanks for your reply .
    But i am having some idea will it can be implemented.
    as you said it will depend on the datamodel .
    Consider i am having 2 datasets in my datamodel for my report to get the pdf,html,excel.
    so i want to add one more data set in the same data model with llimited number of columns in the select query and i want to use that dataset in the datamodel in the report generation when i choose the csv ouput.
    Is it possible i am using bi publisher 11g.
    So if it is possbile i can restrict my output in csv format too.
    This is my idea i dont know whether it is possible or not.

  • Classic Report CSV output failed to parse SQL query

    Hi,
    I'm trying to get a CSV output from a classic report. I'm generating the report based on a PL/SQL block that will return an SQL query. But when i download the CSV excel just gives me a:
    failed to parse SQL query:
    ORA-00936: Missing expression
    and shows me the query that the application is trying to parse. I'm also using bind variables (page items) in the PL/SQL block that is returning me the SQL query. I think that the reason that it fails to parse the query is that the query that is shown in excel has no bind variable values.
    Anyone got any ideas?

    Hi Arif,
    run your page in debug mode and check out the SQL statement which is actually executed for the report. That might help to diagnose what is going wrong.
    If you wish you can also post the report SQL statement which is getting executed.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

Maybe you are looking for

  • Why will iTunes not work on my computer?

    I cannot get iTunes to work on my desktop computer. I had a crash some time ago and think it may have to do with a missing driver. I hope someone can help me with this problem. I can access iTunes on my laptop but it is not convenient.

  • Multiple custom login pages

    I have two WebApps. In central admin i set one different custom login page for each. now the problem: the second WebApp redirects to the login page of the first one. Known problem?

  • Missing communication channel  parameters after upgrade to PI 7.0

    Hi, we have upgraded XI 3.0 to PI 7.0 following the steps guide without any problem. The SLD has been reconfigured. And XI Content with corresponding version and support package level was imported. But when we try open the communication channels in I

  • Ipod touch 2G: All App crash

    This just happened couple days ago when I noticed that all my apps crash. The only apps that doesn't crash are the App store, mail, music, safari...etc. But the other app such as games crash right away when I click on it. The only way I can solve the

  • Changeing the name

    Hi,         i want our address tobe changed  in following manner in purchase order printout which we take through tcode me9f c.c..s Industries  to       ccs Industries Whereever it is shown as c.c.s industires  , tobe changed to ccs industies . the t