CSV export bug in one report
Hey guys and Apex-friends!
I have a problem with the export of one of my reports.
The Column BF is always empty when exported to Excel. In fact, the header is created but the results are not shown.
If I drop the Page item P480_BIOTOPBAUMFLAECHE the data is exported as it should be but false of course. I just did that for testing purposes of course.
On my page the results are displayed correctly. I guess that the computation is not carried out. Is there a way to fix that bug?
Here is my report query!
select
:P480_BIOTOPBAUMFLAECHE as flaeche,
count(b.lng_baumart) * 10000 / :P480_BIOTOPBAUMFLAECHE AS bf,
LNG_BAUMART,
p.STR_LRT_MAIN
from
VT_TBL_BIOTOPBAUM b,
VT_PUNKTDATEN_JOIN p
where
(p.CNT_GEBIET = :P480_CNT_GEBIET)
and (b.LNG_INV_PT_ID = p.INV_PT_ID_SUB)
and (p.str_lrt_main = :P480_STR_LRT)
and (b.int_bezug = -1)
and (p.int_status_sub = 3)
group by
p.STR_LRT_MAIN,
lng_baumartIf you have an idea or hint, please let me know!
Thanks a lot!
Sebastian
Hi,
I do not know does this help, but try
select
:P480_BIOTOPBAUMFLAECHE as flaeche,
count(b.lng_baumart) * 10000 / TO_NUMBER(:P480_BIOTOPBAUMFLAECHE) AS bf,
LNG_BAUMART,
p.STR_LRT_MAIN
from
VT_TBL_BIOTOPBAUM b,
VT_PUNKTDATEN_JOIN p
where
(p.CNT_GEBIET = :P480_CNT_GEBIET)
and (b.LNG_INV_PT_ID = p.INV_PT_ID_SUB)
and (p.str_lrt_main = :P480_STR_LRT)
and (b.int_bezug = -1)
and (p.int_status_sub = 3)
group by
p.STR_LRT_MAIN,
lng_baumart
Similar Messages
-
Multiple CSV exports from the one button or pl/sql procedure?
I need to have multiple csv exports from the one press of a button. The easiest way I found to do this is it to use javascript to popup three windows, each as a CSV link. This is a bit ugly though, and leaves the browser popup windows open when the file has been downloaded.
I guess I could also make a solution based on branching, but I think that would be difficult to maintain and reeks of bad design (im not a fan of this spagetti GOTO style code!).
I implemented Scott's custom CSV as found here: http://spendolini.blogspot.com/2006/04/custom-export-to-csv.html
However I would like to know if its possible to download more than one file using this method. I could not work out how to do this .
Has anyone got any ideas? Simply repeating the code puts the second table into the original csv file. Is there a way to 'reset' the htp writer or smoething?
Any help greatly appreciated,
AlexSorry for the confusion - I guess I mean its easy in .NET because you can simply compress files together and then send 1 zip file down as the response. See http://www.developer.com/net/net/article.php/11087_3510026_2 for details.
I guess I could ask how to do this in APEX - but it seems to me that my original wording addresses the concept at a much more abstract level. I may not find the best solution for my problem if I just asked 'how can I dynamically zip together three tables as seperate files and send them to the client?'. I also suspect that this method is not possible in APEX without custom packages. Please prove me wrong!
I guess even if I could find some kind of javascript that didnt open a new window, but was a direct download to the CSV, that would be a good compromise. At the moment when you click on the link, three windows come up and stay blank until the files are ready for downloading. Then after the files have been downloaded the windows must be shut manually. Yes, I could use javascript to make the windows 1x1 pixel perhaps, and then shut them after a predetermined timeframe - but this is hardly an elegant solution!
Thanks for your responses. -
Calling the CSV Export link in a Report Template
I'm trying to have our "download" link appear on the bottom left rather then the default which is to the far right in Look 4.
When I look at the source code, I can see how look 3 and 4 differ - different HTML table set-up and "align=right" for the link.
Unfortunately, looking at the source gives me the direct source for that specific report file not the command to include the csv export file, so I can't include it in a new report template design.
Is there code I can use to include a CSV link in my report template?
If not, how can I place the report download/csv export into my Nav bar region, or some other region?Michelle,
Typically you'll find the substitution strings documented in the popup help when clicking on the item label. But this one doesn't seem to be listed there. It's documented in the online help though. Click in the help icon in the upper right corner of your page and search for CSV.
Marc -
In an existing ssrs 2008 r2 report, I have a question about the csv export.
When the report was originally written, I only expected the users to export the data to excel.
Basically the issue is, based on the states where the customers exist. If the customers exists on the east coast, I version of the report is displayed. If the users exist in the Midwest, another version of the report is displayed. if the users exist on the
west coast a third version of the report is displayed.
However now if the users want to export the data to csv (comma delimited), all 3 versions are appearing in the csv file.
I do know that when I hide a tablix, that does not export the data to a csv file. However when I pick the option to show or hide a tablix based upon the expression, the tablix is exported to a csv file.
Is there a way to export the columns and data that actually apply to the particular customer. I do not want all the data columns for east coast, Midwest, and west coast to appear on the csv export?
If there is a way to not display the extra data columns and rows, can you tell me how to accomplish this goal? Showing me code and/or a url would also be helpful.Hi Wendy,
When exporting a report to CSV format in Reporting Services, the visibility of a report item/object is only controlled by the Property DataElementOutput. If the DataElementOutput property of a report item is set to Auto or Output, it will be exported to
the CSV file, otherwise, the report item won’t be exported to CSV. Currently, the DataElementOutput property is hard-coded which doesn’t allow us to set the property based on an expression. In this way, it is impossible for different users to have different
exported CSV files in your scenario.
Here, I would suggest you submitting a wish at
https://connect.microsoft.com/sql.
Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software and services the best that they can be, and you can learn about and contribute to exciting projects.
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support -
ORA-20876 in csv export from interactive report = Possibly a bug?
Hi Apex team,
yesterday i tried to download data to csv from an interactive report. The resulting csv file contained a "ORA-20876: Stop APEX Engine" only and no other data. I played around with other reports in my application and had no problems with exports.
After some investigation i found out that the buggy report contains a column of display type "Display as text (based on a LOV, escape special characters)". When I changed this column type to "Standard Report Column" for example, the error didn't appear anymore and the csv export contained complete data.
Maybe this is a bug? The environment is Apex 4.1.1.00.23 on 11g (UTF-8). Is there a workaround available?
Regards,
Jens
Edited by: j.gauger on 06.02.2013 14:10
Additional Information
The problem seems to occur only if a Shared Components LOV of type "Static" is referenced in the IR column.Hi,
what happens if you take the query from IR report and create a new classic report?
On this report enable csv export and then try the export.
Maybe that (format) data are causing export to fail.
Try to export just one row in your IR report (and classic report), so that you add where rownum < 2.
Regards,
Aljaz
Edited by: Aljaz on 6.3.2012 23:11
Edited by: Aljaz on 6.3.2012 23:29 -
BUG: SQL Developer 1.5.3 CSV export column order broken
There's a bug in the 1.5.3 release of SQL Developer regarding data export. This bug re-orders the column order in the data export to be alphabetically sorted. This produces mangled CSV files if used on a table or a view.
This is a critical bug to me since I need to produce lots of ad-hoc data CSV export files. I'm staying with SQL Developer 1.5.0.53 (53.38) for now as it doesn't have this problem.
This is the same bug as present in Jdeveloper 11.1 as described in my post here: BUG: Jdev 11.1.1.0.0 -- DB table data export column order is not preserved
Quoted from that post:
When I connect to Oracle database, get the table list, right click on the table and select 'Export Data'->csv. The dialog box opens with three tabs: Format, Columns, Where. The column order displayed in both tabs Columns and Where is alphabetic. Because alphabetic ordering re-arranges columns from their initial ordering in the table, this screws up CSV export because columns are not in their intended order. This same problem occurs when I try to export data from views to generate a CSV file with a particular column order.
Please open/check bug report if it's already open.
Thanks!This happens with all of the export options for tables or views if you right click from the connections tab table list. If I pull it up in the main window and go to the data tab, I can then right click and it will keep the column id order for some of the views and tables. But not all.
I am running 1.5.3 Build Main 5783 on a Windows XP Professional Service Pack 3 platform -
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
------------------------------------------------------------------- -
Report + Jquery + CSV export = jquery result lost
We have some IR reports with breaks. We put these next to eachother on specific headers with jquery code in the report. But when we do an export i want the same results as shown in the report. The changes made in Jquery get lost when i do a CSV export. Is there some way to get the same columns next to each other like in the report on the screen? or is there some other way to get the same result using something other than jquery? We are now want to making a function in DB using dynamic sql that returns a query to apex report but there should be some easier way in Apex than this no?
Thanks in advance@ TexasApexDeveloper i asked this question on linkedin Apex group before. But not here. So there no way to show the breaks next to eachother in the CSV file? with or without use of Jquery?
@ Tyson: no sample app.
Standard behavier of IR report:
department :1
col1 col2 col3 col4
BREAK
col1 col2 col3 col4
BREAK
col1 col2 col3 col4
BREAK
col1 col2 col3 col4
BREAK
department :2
col1 col2 col3 col4
BREAK
col1 col2 col3 col4
BREAK
With Jquery made it look like this
department 1
col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK
department 2
col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK
i want the data like this in CSV, so that then user opens this in excel the data is presented horizontaly per department:
department 1
col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK
department 2
col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK -
Strange characters in report .csv export
Hello,
When I enable .csv export in my report, a name like Chiràc Jaqués apears as Chirèc Jaqués in the csv.
I understand it has to do with charactersets but I don't know how to solve it.
Cheers
JacobJacob,
go to:
Shared Components>Edit Globalization Attributes
and set the
Automatic CSV Encoding
to "YES".
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://htmldb.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Exporting to multiple PDF's from one report
I have a requirement to create multiple PDF's from one report.
My thought is that I can I can create a foreach loop that cycles through one of my groups. I would then like to have each file have the name of that group.
If anyone could help me on how to code this in C# that would be great. I need to know where I should be putting this code (program.cs or crystalreport.cs) and how I run it. I am assuming I don't need the viewer for this function, since this is all on my end and no users need to have access to it.
My other requirement is to have each of these reports be put into their own folders at C:\. Thanks for the help in advance!OK. Yup, you should be able to do this. When I was reading the initial post it looked like you might have ben wanting to export only a certain section of a report (which is a no go).
Anyhow, first thing you want to do is apply Service pack 3:
https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe
Next, you want to look at a few sample apps and go over some docs. What you want to achieve can be done by using parameters or selection formulas.
A good coding resources is the [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23]. Don't worry about the title, it will apply to CR 2008 also.
Next, sample apps can be downloaded from here:
https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
[CR 2008 developer library|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm]
[API reference|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm]
Not sure if you are thinking of this being a web app, but here are some resources for that:
[Interactivity and Reports in Web Applications|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/208edbbf-671e-2b10-d7b5-9b57a832e427&overridelayout=true]
Before starting your project, you should have a look at [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40bccdfd-88a6-2b10-1da1-c47a54b625a7] to make sure you are using the right SDK for your purposes.
Finally, the following are links to 3rd party resources and I'm adding htese just as an FYI:
http://www.emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx
http://msdn.microsoft.com/en-us/magazine/cc301570.aspx
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup -
Hi All,
Even though we ve 3 rows of header it is coming in only 1 row while exporting to csv.
Original Header in report
ASSETS ASSETS BSC2500000 BSC2500000
MAY_2009 FEB_2009 NOV_2008
AUG_2009
Header in exported csv
ASSETS ASSETS BSC2500000 BSC2500000 MAY_2009 FEB_2009 NOV_2008 AUG_2009
Is there any other options we may need to include in code to avoid this?
exptOpts.setExportFormatType(ReportExportFormat.characterSeparatedValues);
ICharacterSeparatedValuesExportFormatOptions c = new CharacterSeparatedValuesExportFormatOptions();
c.setGroupSectionsOption(ExportSectionsOption.exportIsolated);
c.setReportSectionsOption(ExportSectionsOption.exportIsolated);
c.setExportMode(ExportMode.standardMode);
exptOpts.setFormatOptions(c);
Thanks & Regards
AmitavHi Monika,
No more fixes done to CR 9 since it's so old. Go to this link and download any patches you can find for CR 9:
http://service.sap.com/sap/bc/bsp/spn/bobj_download/main.htm
If that doesn't work try increasing the field width or using the Can Grow option. If that doesn't work then try downloading a trial version of CR XI R2 or Cr 2008 and test again. I suggest you try this on a PC other than your main PC just in case. We support side by side installs but you never know what it may do depending on what else you have installed.
Thank you
Don -
From Regions > Report Attributes I set the Enable CSV option to yes - Link Label (i.e export), but the link does not appear. Any hints/appreciated.
thanks for youe help.Hi,
See if this Denes blog post help
http://deneskubicek.blogspot.com/2007/03/csv-export-problem.html
Regards,
Jari -
Cross-tab report functionality does not support .csv export.
I want to export the cross tab report in .csv format , but when I export the cross tab report to .csv format only header and footer gets printed multiple times and data is not getting exported.
No , cross tab report does not getting properly exported in .csv format. Only header and footer gets printed multiple times and data is not getting exported.
does cross tab report support .csv export based on WYSIWYG? -
APEX 4 Bug: IR's csv export includes extra div
Hi
In IR export, csv files includes a pair of extras /div at final end.
Clasic Reports has no problems with csv export
Tested in apex.oracle.com
OscarTo provide a bit more information it's not just some extra div tags. Any extra HTML that appears after the #BODY# variable in a Region Template is included in the csv export.
Martin
Martin
http://www.talkapex.com -
Arguable, Excel Export Bug
When using a substitution string to define a region’s no data found message, if one attempts to use a substitution string as no data found message, it will work fine during normal display. However, when taking the CSV output of an empty report (enter the questionable nature of this being a bug) the substitution string is not evaluated.
Is this working as intended or can this be fixed by the APEX team?
I know it is a nit-picky type thing as what usefulness would an empty report provide and why would anyone attempt to export it, but as the corporate wheel turns I am asked investigate every little thing.It took me a second to figure out what exactly the we did in our application, but here is a test page for you to work with:
http://apex.oracle.com/pls/otn/f?p=33318:1:
It would seem that in our application (which is pretty huge and spans multiple applications) we have an idea of a master list page. On this list page there is only one report and there is an export to CSV icon on a tool bar that we output above the page's content. This icon is only active on master list pages since they by definition and requirement only have 1 large report on the page. The icon has a link that is forged based on inspecting how the #CSV_LINK# replacement works in region templates.
The test page posted above uses such knowledge to make a #CSV_LINK# in the report template. And I am sure at this point you are saying to yourself "this is obviously in this guys hands and not our problem."
I am not guessing the reason it could not be reproduced is that the CSV_LINK is not output when the report query returns no data found.
Example of the HTML in the region template being used:
<a href="f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:FLOW_EXCEL_OUTPUT_#REGION_ID#_en-us">Custom Export Link</a>
Maybe you are looking for
-
Dear All I want to clear open items of a particular GL by Document Header Text. In customizing of automatic clearing I need to insert criterion BKPF-BKTXT(Document Header Text). But system is giving following message. How can I clear the open items
-
Errors when using tomcat and netbeans combo.[Solved]
Hi I'm trying to set up a netbeans/tomcat7 development environment for servlet development. I have tried this on 2 machines without any success. The steps I have followed are as follows. First I installed tomcat7 and netbeans from using pacman, then
-
Strange error to be solved - for he who knows
Hi, Below are the part are the codes presented that cause the problem. What happens is very strange to me and i would really appreciate it if someone could help me understand and solve the problem. If the excel file only contains numbers only or stri
-
Home Office Network Software Challenges - Post HP Support Assistant Update
Hi I have an existing home office network setup on an HP Officejet 7410 with assistance from 'Dean' at the end of 2009 / early 2010. Essentially I have a relatively new HP Compaq 6000 Pro MT Windows 7 32 bit main desktop connected by ethernet to a N
-
Why don't some of my iPhoto events import to Aperture projects?
In importing my iPhoto 9.1.3 events to Aperture 3.1.2 projects many are missing or garbled or plain do not transfer. Am I doing something wrong? Any advice as to how to correct the problem? I'd appreciate your help. Sincerely, Gregory T.P.