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 < 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
Similar Messages
-
No data found in report csv or pdf output on first page load
No data found in report csv output on first page load. Report shows up on page, but no data found in csv or pdf output. I always need to submit the page and then it shows data in downloads. The page contains a form (read-only) with a report that references 4 page items by using something like the following:
and b.employee_no = v('P5_EMPLOYEE_NO')
and c.fisc_year_pk = v('P5_FISC_YEAR_PK')
and b.job_class = v('P5_JOB_CLASS')
and b.organization = v('P5_ORGANIZATION')
Again, report in the page shows up except there is no data in downloads. Can anyone help me solve this problem? I'm running Oracle APEX 4.2.1 in Oracle database 11gR2.
Thanks.Sounds like a classic session state issue.
You need to populate you page items using page rendering computations to ensure they're set to session state.
Or if the download is triggered from a button press, you need to ensure those page items are submitted to session state, perhaps via a PL/SQL action.
Scott -
Display 'No Data Found' when there is inv data but still there is xml data
Hi,
I am converting an rdf to BI publisher. The issue is when there is no detail (inv) but still there is still xml data , due to which the report is getting printed with the skeleton template and blank details(inv).
I need to avoid printing the report out if there is not inv detail even though there is xml data. or atleast show 'NO DATA FOUND' msg. and print the report output only when there is inv data.
Any help is greatly appreciated.
sample XLM generated when there is inv data:
- <ARXCBI>
- <LIST_G_SETUP>
- <G_SETUP>
<COMPANY_NAME>GL SOB</COMPANY_NAME>
<FUNCTIONAL_CURRENCY>USD</FUNCTIONAL_CURRENCY>
<COA_ID>23456</COA_ID>
<SET_OF_BOOKS_ID>1</SET_OF_BOOKS_ID>
<LIST_G_SITES />
<REPORT_NAME>Billing Invoice</REPORT_NAME>
<SUB_TITLE />
</G_SETUP>
</LIST_G_SETUP>
<RP_COMPANY_NAME>GL SOB</RP_COMPANY_NAME>
<RP_REPORT_NAME>Billing Invoices</RP_REPORT_NAME>
<RP_DATA_FOUND />
<RP_SUB_TITLE />
<R_DEFAULT_COUNTRY>US</R_DEFAULT_COUNTRY>
<R_DEFAULT_COUNTRY_DESC>United States</R_DEFAULT_COUNTRY_DESC>
<T_REPORT_TOTAL />
<RP_COUNTER />
<INV>Invoice</INV>
<CM>Credit Memo</CM>
<ADJ>Adjustment</ADJ>
<XREV>Reverse Cross Site Credit Memo</XREV>
<XAPP>Apply Cross Site Credit Memo</XAPP>
</ARXCBI>
Thanks!Hi Srini,
Now I am running into another problem. When there is no detail data it displays 'No data found' as expected in the report output. But is there any way to restrict the print option (avoid wasting the paper) to just display 'No data found' in the output but not to print the output only in this case.
I really appreciate any help! -
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 -
Hello,
My HTMLDB report displays data, but when a CSV file is generated, 'No data found' displays. Any ideas??Yes the above mentioned Computation worked for me.
Here's what I did on the page in question.
Create a new Page Computation
Type: Static Assignment
Computation Point: Before Header
Computation: ALL
Condition Type: Value of Item in Expression 1 is NULL
Expression 1: P8_FILTER_BY_TEAM (the name of the page item that needs the default session state set.)
The conditional is important because if a person changes the value and submits the page we want to hold that new value in session state and filter the result set accordingly. However, if the page item is NULL then we're simply extending the display default value to also be the session state default for P8_FILTER_BY_TEAM. -
Report export to csv - no data found in report
Hi all,
I've followed the steps to export my report to a csv file. In the Report Attributes, Report Export section I have:
Enable CSV output: Yes Separator: , Enclosed By:
Link Label: Export
Filename: Changes.xls
But when I open it in excel, no data found is the only test showing in cell A1.
Is there something else I need to do? I don't understand why it's not exporting my report - there is data on my screen in the report.
Thanks,
DaveDave,
Have a look in my blog:
http://deneskubicek.blogspot.com/2007/03/csv-export-problem.html
There is an explanation on how to avoid that.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://htmldb.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
CSV spreadsheet returning "no data found"
Hi,
In one of the reports, I enabled CSV Output so the report can be downloaded.
When I download it, using Excel 2000, I have no problem, I can see all the right data.
However, one of my user, who uses Excel 2002, when saves the file and opens it, returns "no data found" on screen.
Is this an Excel issue? Is Apex not compatible with Excel 2002? Please advise.
Thanks!Do you have any items on your report page, which you use as a condition for the report? Eventually, you need to compute those items on load. If I remember correctly that was the problem I had before.
Denes Kubicek -
Csv no data found when using bind variables
Hi,
I have created a report, that uses 2 date variables to limit the query and rows display as they should. But clicking the csv link opens csv having one row stating 'No data found...'. If I set static values in place of variables, I get the right result. How could I use bind variables and get the right answer in csv (without coding my own function)?
KajaI am having the same problem.
The export link opens a new session without submitting the current page. The page item values are therefor not saved to cache before the export is undertaken.
Any report using page item bind variables in the where clause will not export correctly as the bind values are either null or those of the previous page submit.
Any ideas on how to get round this?? -
Pick Slip report gives 'No Data Found' output
Hi All,
Problem Statement:
Iam unable to generate Pick release report, the shipping
lines status is "ready to release" and we have a available quantity for the shipment.
Step1 : Create a Order.
Step2 : Save and Book the Order.
Step3 : Pick Release the Order.
Step4 : Go To " View My Requests".
Step5 : Select the Request Id " Pick Slip Report "
Step6 : Click on Output.
Result " No Data Found.
Thanks in Advance
SYRHi SYR,
Pick Slip report gives you out put as NO DATA FOUND, is basically, bcos there has not been any picking of the item, reason may be,
1. Qty avaialble wont be reservable and transactable
Check in Inventory> On handqty > click availibility tab
And see whether the item is available to transact & reserve.
If you have enought qty thn you shld be able to pick release tht item.
2. Check which sub inventory are you using while pick release, is it the same as where the item is kept.
Try this out.
This may help.
Thanks
Manoj -
Search report - error-no data found when printing to csv format
Hi all,
I have a search report,
I have 4 select list and two text field and two date field to search for the result.
I have even put the computation for the select list items in
on load - before header ie setting the items to default value.
Still when i try to print it in the csv format , and try to open the excel, it is saying "no data found" error
Please, Could any one give me a solution to solve this bug?
Note: Ordinary report is getting printted in the csv format.
Thanks in advance
bye
SrikaviHi Denes and Scott,
sorry, only when i select the values for all the 4 select list
csv is working. default values are not restored in the session.
How to restore the values in the session state after pressing the search button.
i have set the default values for the select list and the query is working fine
but when i see the session from the toolbar the default values are not present.
but when i see the debug from the toolbar the values are set properly.
@Denes
In your example the session is showing the values of the select list and check box
The same way i did, but in "session" values are not seen so again no data found is seen when printing csv .
Bye
Srikavi -
Getting no data found error while CSV download
Hi,
I have a report generated from the PL/SQL returning the query and I enabled the CSV Download option. But, when I try downloading the report contents using CSV download option, the excel sheet contains message "no data found". I enabled sorting and sum on few columns. Is it anywhere related to CSV download? Any solution would be really helpful..
Thanks,
PrabhakarThanks for the help!! yep, it is indeed the wrong session state value. In the report, I was modifying the value to display the report, hence when CSV download is given, it was taking wrong session state value. So, giving "no data found" error. Probably, this may help some people.
Regards,
Prabhakar -
I have an issue where myself and another user are unable to upload a csv file to my application using the "File Browse" page item in V4.1.1. I get the following error, "Error ORA-01403: no data found".
This function was working perfectly last week prior to the upgrade of our APEX to V4.1.1 from V3. Other users are still able to upload the csv file, so the PL/SQL behind it must be ok.
So here is where I am up to with testing.
Tested the upload using my login on my PC – Fail
Tested the upload using my login on another PC – Fail
Tested the upload using other user’s login on my PC – Success
Tested the upload using other user’s login on another PC - Success
Any help would be greatly appreciated.
Cheers,
GregThe offending piece of code was in a block of script that I used from an online sample when I was first setting up this upload script. A colleague had the same issue in another application and rewrote the script to resolve the issue, see below.
I'm still perplexed as to why the majority of users could run it ok, and there were only 2 of us that it errored on. But now it's working for all, and I can go back to building some cool stuff in V4.1.1.00.23.
-- Read data from wwv_flow_files
select blob_content into v_blob_data
from wwv_flow_files
where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USERID)
and id = (select max(id) from wwv_flow_files where updated_by = :APP_USERID);
-- Rewritten to the following, which works.
select blob_content into v_blob_data
from wwv_flow_files
where id = (select ID from wwv_flow_files
where UPDATED_BY = :APP_USERID
and LAST_UPDATED = (select max(LAST_UPDATED) from wwv_flow_files where UPDATED_BY = :APP_USERID)); -
Creating a CSV output of just the rows of data.
Dear All,
I am trying to create a CSV output from SQL*Plus using the following method... All I need is the pure data, and nothing else.
set verify off
set feedback off
set termout off
set heading off
set echo off
spool <filename>
<my sql statement>
spool <off>
The problem is that the SQL statement is displayed in the output file.
Does anyone know how to switch this off, before I spool the file, or can I spool the file immediately after execution. I.e. Build this into the SQL statement (somehow)???
Thanks
David.If you want to handle 100% the output file you can use the package UTL_FILE but the file is going to be store in the server.
UTL_FILE
With the UTL_FILE package, your PL/SQL programs can read and write operating system text files. UTL_FILE provides a restricted version of operating system stream file I/O.
http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/u_file.htm#ARPLS069
Joel Pérez
http://otn.oracle.com/experts -
CSV output/ issue if data contains comma
Hi,
I have a report which I enabled CSV output. Some of the columns in the report, I masked them with the format "FML999G999G999G999G990D00", which is one of the currency formats. I realized that if the numbers are 4 digits or larger, which means they contain a comma in the value ($2,203.02), when I download to a spreadsheet, it masks all values that contain a comma with #####
However, once in the spreadsheet, if I change the format cell, it displays the values correctly.
Is there any way I can get the right value once I open the spreadsheet without having to format the cells to display the right values?
Thanks,Hi User,
The "#####" that you see in Excel usually means that the column width is too small.
If you need to format the data automatically, try saving the CSV file to disk and then opening it with an Excel Template that reads the data into a formatted workbook automatically..
You will need some VBA code in the Excel auto open macro to pull this off.
Hope this helps.
Cheers,
Patrick Cimolini -
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.
Maybe you are looking for
-
I can't make Firefox my default browser. I have Windows XP and in the tools menu, options tab that selection is missing
-
Incoming Payment with Reference to Invoice
Hello All, I have created Customer Invoice via FB70. I have selected payment terms as 14 Day with 2% cash discount. I am now entering incoming payment via F-28 after 2 days, with reference to Original Invoice. Everything is going perfect. Now the pro
-
Messages getting stuck in Queue
Hi All, In my scenario data is coming from database into XI and creating a file in SAP. The messages are getting stuck in the Queue and in message monitoring the status is showing as 'waiting'. Earlier the messages were getting successfully processed
-
Removing Automatic Backing Bean Updates in Jdev 11.1.2.2.0
Hi, in the User Guide and in the book "Jdeveloper 11g Handbook" I'm reading: Remove Automatic Backing Bean Updates 1. Click page.jspx file tab. Click the Design tab 2. Select Design | Page Properties and click the Component Binding tab. Unselect Auto
-
I'm getting a wierd problem with dateformat, coldfusion version 6,1. I just installed the updater as well, but not sure if I now need to run it, or how to run it. There were mentions of this problem in the updater fixes, so it might well be down to t