Issue while exporting to CSV Format
Hi,
Pls help me...
I have a report when i export that report to CSV format..
some duplicate rows are coming...
the two rows are exactly same and both the rows are displaying but i dont need this..
i need distinct rows..how can i achieve this..
Thanks in advance
Hi,
when i checked the distinct option...error is coming..
Error
View Display Error
Error generating view. Error getting cursor in GenerateHead
Error Details
Error Codes: OAMP2OPY:ACIOA5LN
Assertion failure: getFieldPosByKey(sKey) == n at line 67 of ./project/webquerymanager/customizedsql.cpp
Similar Messages
-
Hide column in SSRS is not working while exporting to CSV format.
Hi,
I have a report where some columns are hidden based on parameter value. When I export to Excel all the hidden columns are hiding which is fine, but the issue is when I exported to CSV all the hidden columns are exporting to csv.
I tried to using " =IIF(Globals!RenderFormat.Name = "CSV", True,False)" in Column visibility but It is not working. When I select Hide option it is working fine. But I want to hide based on expression.
Any help !!!!!!!!Hi sumancv,
In SQL Server Reporting Services (SSRS), we can control whether an item is visible in CSV separately from whether an item is visible in other renderers. As Shahfaisal Muhammed posted earlier, the CSV renderers use the DataElementOutput property to control
visibility. When an item has DataElementOutput=Output, it will appear in the CSV. When an item has DataElementOutput=NoOutput, it will not appear in CSV.
Based on my test, we cannot use expression to control column visibility in the report when it is export to CSV.
Reference:
http://connect.microsoft.com/SQLServer/feedback/details/742658/ssrs-csv-export-issue-for-hiding-certain-columns-using-expressions
Since the issue is by design, I recommend you that submit a wish to the Microsoft Connect at
https://connect.microsoft.com/SQLServer/Feedback. Your feedback is valuable for us to improve our products and increase the level of service provided.
Regards,
Alisa Tang
If you have any feedback on our support, please click
here.
Alisa Tang
TechNet Community Support -
Issue while exporting report in PDF using crystal report XI
Hello,
I am facing issue while exporting a report to PDF through crystal report XI. Reports are generating properly in the crystal report browser but when I am exporting the reports in PDF or trying to get print by clicking on print button, reports not generating properly.
Allignment in the exported PDF reports getting changed and reports margin is also changes. Due to this some part of report is chopped and printed on the next page.
I have deployed my application on IBM WebSphere 6.1 server and I am getting following error which might help to identify this issue.
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: The response has already been commited.---- Error code:0 Error code name:succeeded
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)
at com.crystaldecisions.report.web.component.o.a(Unknown Source)
at com.crystaldecisions.report.web.event.br.a(Unknown Source)
at com.crystaldecisions.report.web.event.w.a(Unknown Source)
at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)
at com.crystaldecisions.report.web.event.av.a(Unknown Source)
at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)
at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)
at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)
at com.ibm._jsp._CrystalReportViewer._jspService(_CrystalReportViewer.java:107)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:115)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:168)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1812)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)
Caused by: com.ibm.wsspi.webcontainer.ClosedConnectionException: OutputStream encountered error during write
at com.ibm.ws.webcontainer.channel.WCCByteBufferOutputStream.write(WCCByteBufferOutputStream.java:80)
at com.ibm.ws.webcontainer.srt.SRTOutputStream.write(SRTOutputStream.java:96)
at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.writeOut(BufferedServletOutputStream.java:438)
at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.flushBytes(BufferedServletOutputStream.java:344)
at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.flush(BufferedServletOutputStream.java:323)
at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.flushBuffer(BufferedServletOutputStream.java:478)
at com.ibm.ws.webcontainer.srt.SRTServletResponse.flushBuffer(SRTServletResponse.java:452)
at com.ibm.ws.webcontainer.srt.SRTServletResponse.flushBuffer(SRTServletResponse.java:436)
at com.crystaldecisions.report.web.viewer.JSPViewerResponse.flushBuffer(Unknown Source)
... 33 more
Caused by: java.io.IOException: Async IO operation failed, reason: RC: 64 The specified network name is no longer available.
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:203)
... 3 more
Thanks in advance
Alok P.The stack trace is caused by whitespace in your CrystalReportViewer.jsp file. Look up SAP Note 1199025 for the resolution.
It's not related to the PDF formatting issue. There's been changes to the formatting with the most recent version - Crystal Reports for Eclipse 2.0 - so if you haven't already, I recommend you upgrade.
Note that there's differences in font metric calculation when using Adobe PDF format such that there's no way to get exact agreement between output of the CR and PDF. But the latest version helps greatly.
Sincerely,
Ted Ueda -
ORA-06502 Error while exporting to xls format
While Exporting to xls format, the ORA-06502 crops up in the exported file.
The print server is BI Publisher.
The report has around 50 columns.
Any help would be greatly appreciated.Any suggestions?
-
Post Author: Vivek Sharma
CA Forum: Exporting
Hello All,
Version of Crystal Reports: 11.0.0.1282
Wanted to find out if it is possible to export data from a main report and subreport together in csv format? So far if I export in csv format it only exports data from main report and not from subreport.
Thanks,VivekDaniel and Atul highlight the two different kinds of data out processes that Essbase supports: targeted exports of selected parts of the database and full backup/migration-ready exports.
You didn't state what you were trying to do, but you will want to follow one or the other approach, depending on need. I wouldn't, for instance, use a targetted export to write out the entire db -- it would be very slow (to put it mildly). By the same token, writing out the entire db to a comma delimted columnar file to get 50 records would be a bit of a time waster, too.
Regards,
Cameron Lackpour -
Show user entered date when ssrs report exported to csv format
Hi All,
How can I show date range parameter entered by user when ssrs report is exported to csv format.
my csv output should look like this....
Date : 01/01/2015 TO 01/31/2015 (user selected dates)
ID,EmpFirstName,EmpLastName,Location
1,Tom,Garry,NY
2,John,Graham,NJ
3,Ron,Lorrie,CA
Thanks,
RH
sqlHi RH,
You can add two textbox at the top outside the tablix and using expression to get the parameter value use have selected to display in the textbox as blew:
TextBox1: =Parameters!Date.Value
TextBox2: =Parameters!To.Value
For Multiple value parameter you can use the expression like : =Join(Parameters!Date.Value,",")
You can rename the two textbox' name in the properties as "Date" and "To" then the two textboxs will display like belkow in the CSV report:
Date TO
01/01/2015 01/31/2015
ID EmpFirstName EmpLastName Location
1 Tom Garry NY
2 John Graham NJ
3 Ron Lorrie CA
If you still have any problem, please feel free to ask.
Regards
Vicky Liu
Vicky Liu
TechNet Community Support -
Apply conditional formatting when a report is exported to CSV format
Hello
OBIEE dasboard has the option to export the report data to CSV format.
But the problem is that on some columns of the report, it uses various different types of conditional formatting that tells, what to display when data is equal to one of those edge cases. So hence the report on the dashboard page shows accordingly which is fine.
But when the report is exported to CSV format, no conditional formatting is applied and all the raw data is shown without any formatting.
Is there any way to make sure that the conditional formatting is applied even in the data exported to CSV format.
thanksCSV is supposed to be a data dump .. i dont think you can have formatting saved when u download csv file.. try downloading it to excel and changing it to CSV
-
Issue while exporting report in Excel Format
Hello,
I am facing problem while exporting the report in Excel Format. After analysis, I think that it could be due to two reasons, either we are using wrong versions of Jars, or we are using wrong API. Here is the code, approaches and problems we are facing. Please help.
First approach we are using is:
// using basic API
import com.crystaldecisions.reports.sdk.ReportClientDocument;
// get client document from crystal report API and open the report by specifying the report name, with path
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open( reportPath, 0 );
// give chance to extending classes to configure the report document by POJO or by sql parameter etc, just adding the parameters infromation using ParameterFieldController
configureReportDocument( reportClientDoc, reportMetadata, reportData, reportContext );
// get data source of crystal report
Object reportSource = reportClientDoc.getReportSource();
// export the data - we have also tried with MSExcel format
ReportExportFormat exportFormat = ReportExportFormat.recordToMSExcel;
LOGGER.debug( "exportFormat[" + exportFormat + "]" );
ByteArrayInputStream byteArray = (ByteArrayInputStream) reportClientDoc.getPrintOutputController().export(
exportFormat );
Problem Faced: Specified Excel format is not supported.
Second Approach: We come to know that excel format is supported with new releases and with occa package.
Then we tried with import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument; It ask to set the ReportServer. When we are trying to set the server as
reportClientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
Application is unable to find 'ReportClientDocument.inprocConnectionString' property. It seems like we are using some old jars. However we have downloaded the latest released jars for eclipse 2.
Please help for it. Issue is to export the report in excel format, which is currently working fine for PDF. If this problem is related to Jars, please suggest the path to download the latest jars. We also looking for the latest jars like rasapp and rascore etc. But these are not available with Crystal Report for Eclipse 2 release.
Waiting for urgent help. Thanks you..
Regards,
MohitHi,
Send me Environment Details .
Here is the code snippet for exporting report to excel format:
<%@ page import="com.crystaldecisions.sdk.occa.report.application.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.definition.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.data.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
<%@ page import="com.crystaldecisions.sdk.framework.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.managedreports.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.infostore.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%
String username ="Administrator";
String password ="";
String cmsname ="localhost:6400";
String Authen ="secEnterprise";
//connecting to Enterprise
IEnterpriseSession es = CrystalEnterprise.getSessionMgr().logon(username,password,cmsname,Authen);
//get the report App Factory form the Crystal Enterprise
IReportAppFactory appFactory = (IReportAppFactory) es.getService("","RASReportService");
//get the infostore service form the Crystal Enterprise
IInfoStore istore = (IInfoStore) es.getService("","InfoStore");
//get the report by name from crystal Enterprise
IInfoObjects iobjects = istore.query("Select * From CI_INFOOBJECTS Where SI_NAME = 'sampleramz2.rpt' and SI_INSTANCE = 0 ");
//open the report in the report doc object.
ReportClientDocument Doc = appFactory.openDocument((IInfoObject)iobjects.get(0), 0, Locale.ENGLISH);
// WORKING WITH THE PRINT OUTPUT CONTROLLER
//Use the report documents PrintOutputController to export the report to a ByteArrayInputStream
ByteArrayInputStream byteIS = (ByteArrayInputStream)Doc.getPrintOutputController().export(ReportExportFormat.recordToMSExcel);
// EXPORTING THE REPORT
//Create a byte[] (same size as the exported ByteArrayInputStream)
byte[] buf = new byte[2000 * 1024];
int nRead = 0;
//Set response headers to indicate pdf MIME type and inline file
response.reset();
response.setHeader("Content-disposition", "inline;filename=ramz");
response.setContentType("application/xls");
//Send the Byte Array to the Client
while ((nRead = byteIS.read(buf)) != -1)
response.getOutputStream().write(buf, 0, nRead);
//Flush the output stream
response.getOutputStream().flush();
//Close the output stream
response.getOutputStream().close();
%>
Let me know any information is needed,
Regards,
Rameez -
Html tags added while exporting to csv
Hi,
I am facing issue of html tags got added to some columns while exporting report to the csv format.
Can anyone help me for this .
Thanks,
VivekThe TextArea is being included in the csv file probably because it is added to the select query. The main report query has
select apex_item.hidden(49,triagemd5_wptg||triagemd5_compare) || APEX_ITEM.CHECKBOX(34,triagemd5_wptg||triagemd5_compare) checksel, id,APEX_ITEM.SELECT_LIST(35, response, ''Will Fix;Will Fix,Will Not Fix;Will Not Fix,Not an Issue;Not an Issue'','''',''YES'','''','''') , APEX_ITEM.TEXTAREA(45,comments,0,0,''onMouseOver="title=this.value;" style="width:200px;font: 12px/16px Arial,sans-serif;height:50px; border:0 none; overflow:hidden"'')
This was implemented like this because the no. in the 1st column of the API (eg. 45 for apex_item.textarea) is needed to write the values to DB. If the textarea and formatting is added as part of report column attribute then writing comments and response to DB will fail. -
Issue while exporting report - OBIEE 11g - IIS 7.5
Hi,
We are currently on OBIEE 11.1.1.7.0 version of OBIEE and we have set up proxy through IIS 7.5 on Windows 2008 R2 server.
While exporting our reports, we need to ensure that both Export to excel options (2003 and 2007+) are working fine. However, for some reports, when we try to download the reports to Excel 2007+ format, we get a "Internet Explorer cannot display the webpage" error message. This issue does not appear if we change the URL to directly access Weblogic server (instead of routing through IIS). Wanted to know if anyone have faced similar issue and have found any solution/workaround for same.
Thanks
HyderHyder,
I have achieved this.We have deployed our OBIEE application on Weblogic server not on IIS.
Sasi Nagireddy: How to Export Analysis in Excel 2007 +
Thanks,
Sasi Nagireddy.. -
Issue with downloading in CSV Format
Hi SDN,
i used the FM's SAP_CONVERT_TO_CSV_FORMAT - to convert 2 CSV Format and
GUI_DOWNLOAD - to download the data 2 presentation server.
i'm able 2 open the file in CSV format,but the data is displayed in single column only.
how 2 display in different columns ?
for example the ITAB contains empno, empname and designation.
I want it 2 display as :
EMPNO EMPNAME DESIGNATION
1 xxxxx Developer
2 yyyy TL
with tab delimiter.
now the values are displaying as:
EMPNO;EMPNAME;DESIGNATION
1;xxxx;Developer
2;yyyy;TL
pls suggest.
awaiting ur early response.
Regards,
Suman.Hi Max,
the issue is when opening the CSV file.
all the contents are coming in a single column. for ex.,
Col 1 Col2 Col3
Row1 Heading1,Heading2,Heading3
Row2 a1,b1,c1
Row3 a2,b2,c2
Row4 a3,b3,c3
I'm not sure whether this format is correct ?
what I'm expecting is like the one below, with a tab delimiter.because after runing the ALV report when I export 2 Excel in CSV format it is displaying like this.
Col1 Col2 Col3
Row1 Heading1 Heading2 Heading3
Row2 a1 b1 c1
Row3 a2 b2 c2
Row4 a3 b3 c3
Regards,
Suman. -
C#/SharePoint -View State related issue while exporting data to excel
We have web application based on SharePoint. We have a list view to display data based on Search Criteria. We have total of around 16000 data. When we try to export all data to excel it gives an error. The cause of the issue is:
View State is used to save the state of page i.e. the previous state. When the export to excel link is clicked, the data present in the grid is actually saved in view state so that the overhead of again generating
the data(as per the selection criteria) can be avoided. Now, this View state has a limitation of storage of these records. When we put in some selection criteria, the no. of records is less hence no problem in actually storing the view state. But when there
is no selection criteria, 16306 records are too much to be stored in view state. Hence the error occurs.
We tried to solve this issue by creating a compressor class and overriding two methods:
LoadPageStateFromPersistenceMedium
SavePageStateToPersistenceMedium
This has resolved the issue with Export to Excel. However, there is now some issue in the paging of the list view. The list view has a column with hyperlink which opens related data in a form. While we click on the link in 2<sup>nd</sup>
page of the list view, it displays data for the link in the 1<sup>st</sup> page at same row.
Please suggest how to resolve this issue or any workaround for thisWe have web application based on SharePoint. We have a list view to display data based on Search Criteria. We have total of around 16000 data. When we try to export all data to excel it gives an error. The cause of the issue is:
View State is used to save the state of page i.e. the previous state. When the export to excel link is clicked, the data present in the grid is actually saved in view state so that the overhead of again generating
the data(as per the selection criteria) can be avoided. Now, this View state has a limitation of storage of these records. When we put in some selection criteria, the no. of records is less hence no problem in actually storing the view state. But when there
is no selection criteria, 16306 records are too much to be stored in view state. Hence the error occurs.
We tried to solve this issue by creating a compressor class and overriding two methods:
LoadPageStateFromPersistenceMedium
SavePageStateToPersistenceMedium
This has resolved the issue with Export to Excel. However, there is now some issue in the paging of the list view. The list view has a column with hyperlink which opens related data in a form. While we click on the link in 2<sup>nd</sup>
page of the list view, it displays data for the link in the 1<sup>st</sup> page at same row.
Please suggest how to resolve this issue or any workaround for this -
Issue while exporting an interactive PDF
While exporting an interactive PDF I am getting the below issue.
The Go to page button is not supported in PDF. The button appearance will be preserved, but its interactivity will dropped.
Please let me know the reason@Although the Go to Page action is not supported for PDF, you can simulate the same action by first creating New Hyperlink Destinations > Page(s). Then select the “Go to Destination” action, and select the Destination > Page #
-
Dropping zeros when exported to CSV format
I formated in Numbers using 5 digit place holder and setting "hide seperator" and "show zeros" This looks perfect in Numbers but when I export to CSV (I want to import the mailing list to AddressBook) it drops the front zero. I tried formating a new column as text and pasting the list into it, but it turned into numerical format and dropped the zero again when exported to CSV. Any suggestions would be appreciated. I can't help but feel I am being stupid. This shouldn't be so difficult.
I did the following test:
1) I formatted a column as text and entered several cells worth of 5-digit zip codes that had leading zeros.
2) I formatted a column with a custom format of five digits, leading zeros, and no separator. I typed in a few numbers with less than five digits and they displayed with leading zeros. No surprise there.
3) I formatted a column as text and copy/pasted from column in (2) to this text-formatted column. I was actually surprised it kept the leading zeros because the underlying data (a bunch of 3 and 4 digit numbers) does not actually have them.
4) I exported this file as CSV.
5) I opened the CSV in TextEdit and the leading zeros were there in all three of these columns.
This all seems to be working as you would want it to. Am I doing something different than you?
To complete the test, I opened the CSV with Numbers and it dropped all the leading zeros upon import. But you are not re-importing it into Numbers so this last step wasn't really a fair test. -
Post Author: mikesherwood
CA Forum: Crystal Reports
hi,
i am exporting my report in CSV format & trying to open it with excel, only to find that CR repeatedly dumps the Page Header, Report Footer & Page Footer in each row. Also, there are no breaks after header & before footer details. How do I control/modify export to CSV? i have to use Export button on CR toolbar & cannot write my own exporter due to business requirements. i am using CR XI in RAD 7.0.
Thanks for your help.Hi
In the report attributes, under Layout and Pagination, set the Enable Partial Page Refresh to No.
Regards
Paul
Maybe you are looking for
-
IDVD crashed, and can't restore it form iLife 06 Disc, Help!!
Dear all: My iDVD 6 crashed after I upgrade my Macintosh HD from 500GB to 750GB HD (I used apple's disc utility to clone all data from 500GB to 750GB HD, and it seems working just fine until today...) I try to launch iDVD but it did not response and
-
Text justification in text box
I have just built a website in iweb and have included a table that has a coloumn of words to the very right of the text box. These look justified in iweb but become ragged in appearance when published. Can anyone suggest how I can avoid/correct this
-
Clarification on the SHOW TOP command
Does anyone know much about the Show Top command? I am trying to get specs on the bandwidth utilization of a port. When I do the Top command it tells me a percent of utilization. However it looks to be too low. I verified the util using a traffic gen
-
Brushes are not working for lightnening
My brushes do not work, for lightening. I restet them and did control alt shift already.
-
Optical Dolby Digital from 46SL412U
I'm trying to get 5.1 audio passed through my 46SL412U. My Xbox 360 is hooked up to my TV with an HDMI cable. If I run an optical cable directly to my receiver from my Xbox, then I get 5.1 audio. I have the output set to "Dolby Digital" in the Audio