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
Similar Messages
-
Excel issues with importing CSV or HTML table data from URL - Sharepoint? Office365?
Greetings,
We have a client who is having issues importing CSV or HTML table data as one would do using Excel's Web Query import from a reporting application. As the error message provided by Excel is unhelpful I'm reaching out to anyone who can help us begin to
troubleshoot problems affecting what is normal standard Excel functionality. I'd attach the error screenshot, but I can't because my account is not verified....needless to say it says "Microsoft Excel cannot access the file https://www.avantalytics.com/reporting_handler?func=wquery&format=csv&logid=XXXX&key=MD5
Where XXXX is a number and MD5 is an md5 code. The symptoms stated in the error message are:
- the file name or path does not exist
-The file is being used by another program
-The workbook you are trying to save has the same name as a currently open workbook.
None of these symptoms are the case, naturally. The user encountered this with Excel2010, she was then upgraded to Excel2013 and is still experiencing the same issue. The output of this URL in a browser (IE, Chrome, Firefox) is CSV data for the affected
user, so it is not a network connectivity issue. In our testing environment using both Excel2010 or 2013 this file is imported successfully, so we cannot replicate. The main difference I can determine between our test environment and the end-user
is they have a Sharepoint installation and appear to have Office365 as well.
So, my question might more appropriately be for Sharepoint or Office365 folks, but I can't be sure they're a culprit. Given this - does anyone have any knowledge of issues which might cause this with Sharepoint or Office365 integrated with
Excel and/or have suggestions for getting more information from Excel or Windows other than this error message? I've added the domain name as a trusted publisher in IE as I thought that might be the issue, but that hasn't solved anything. As you
can see its already https and there is no authentication or login - the md5 key is the authentication. The certificate for the application endpoint is valid and registered via GoDaddy CA.
I'm at a loss and would love some suggestions on things to check/try.
Thanks -RossHi Ross,
>> In our testing environment using both Excel 2010 and 2013 this file is imported successfully, so we cannot replicate.
I suspect it is caused by the difference of web server security settings.
KB: Error message when you use Web query to a secure Web page (HTTPS://) in Excel: "Unable to open"
Hope it will help.
By the way, this forum is mainly for discussing questions about Office Development (VSTO, VBA and Apps for Office .etc.). For Office products feature specific questions, you could consider posting them on
Office IT Pro forum or Microsoft Office Community.
Regards,
Jeffrey
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Date loading - Member containing comma in Point-of-View
Hi,
I tried loading date into essbase via planning. My point-of-View contains a member which has comma in it.
When loading it is considering that member as two different members.
Has anyone tried loading data into planning with members having comma.
Eg. Item No.,Start Date,Point-of-View,Data load Cube Name
30103,11-02-2011,"Actual,Version1,Dazzing Infotech, Inc,230"Capex
I have 6 dimensions say.
Dazzing Infotech, Inc is a member in dimension. It has comma which is seperating it as two members.
Error when loading is "Dazzing Infotech" doesn't exist or you do not have access to it.
Has anyone worked on this issue previously.
ThanksCross post :- Data loading - Member containing comma taken in point-of-view
Cheers
John
http://john-goodwin.blogspot.com/ -
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 -
Interactive Report Download CSV file Issue (output includes separator BR)
Hi,
I have a Interactive Report and displaying the column values (multiple values in same ROW) as mentioned below.
SQL Query
select deptno,
function1(empno) empno
from emp
IR Output
Dept Employee No
10 AAA,BBB,CCC, ... // - Row 1
20 XXX,YYY,ZZZ, ... // - Row 2 Now I want to display each employee in a new Line, so modified the SQL Query
Modified SQL Query
select deptno,
REPLACE(function1(empno),',','<br>') empno
from emp
New IR Output
Dept Employee No
10 AAA
BBB
CCC
... // - Row 1
20 XXX
YYY
ZZZ
... // - Row 2 SO, Interactive Report Out put looks fine and that's the way we want.
But the problem is when I download the Report in CSV or in PDF using the Action Menu -> Download..
I am getting break line B R in the output, and also I have two different output in CSV for two different column. [Logic is same for both the columns.]
CSV output1
Employee No
AAA<br>BBB<br>CCC
XXX<br>YYY<br>ZZZI have other columns also with multiple values...for that column, I am getting the following CSV output
CSV output2
City List
1111<br>
2222<br>
3333<br>So, in CSV for one column, I am getting all the values in same line with the seperator B R (Output1)
for other column, I am getting values in new line with the separator B R. (Output2)
Is there a way to FIX this CSV or PDF output for Interactive Report.
I DON'T WANT THE SEPARATOR BR in CSV and also the values should always be in New Line.
I want to have the following Output in CSV
Employee No
AAA
BBB
CCCThanks,
Deepak
Edited by: Deepak_J on Feb 24, 2010 11:45 AM
Edited by: Deepak_J on Feb 24, 2010 11:46 AM
Edited by: Deepak_J on Feb 24, 2010 11:48 AMThanks.. Jari.. for the quick response.
I updated my SQL query with Chr(10) and added the code in Page HTML header.
Now the CSV & PDF output are fine..getting each individual value in seperate line (no BR tag)
BUT in the Interactive Report Output, I am now getting first 2 values in 1 line, then next value in next line, and so on..
IR Output
Employee
AAA BBB
CCCCCCC
DDDDDI have few more issues with CSV & PDF output
1. In PDF is there a way to increase the column width, as for some of the columns, the values are getting truncated.
2. For some of the columns in IR Report, I have user BR tag in Column Heading and this also come in CSV output (column heading with BR tag), is there a way to fix this. In PDF Column headings are fine (no BR tag)
and by the way..what exactly this does.
<style type="text/css">
.apexir_WORKSHEET_DATA td{white-space:pre;word-wrap: break-word}
</style>Thanks,
Deepak
Edited by: Deepak_J on Feb 24, 2010 12:20 PM
Edited by: Deepak_J on Feb 24, 2010 12:21 PM -
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 -
Enable comma separated values (CSV) output
I am trying to figure out how to (Enable comma separated values (CSV) output ) for a report. Do you have an example or info on how to do that?
Can you provide an example on how you completed the setup? I am in the same boat but can't find an example to this subject
-
OK, 1st the background...
I have been provided a list of users of a particular group.
We needed to know what computers (or IP's) the users are connected to...
So, using Shared Folders, I have exported a list of all users connected to H drives (everyone on the domain) and I need to match their computernames (or IP) to the specific list of users I have...
That gives me 2 x CSV files. 1 x master list of users, I list of all users PC or IP names.
I need to be able to match the usernames on the master list (File1) with the usernames on File2 and append the computernames and connected times to File1 omitting the usernames that are not required...
This is to determine what PC's the user is logged into and what site their computers are at.
I also need to capture if they are logged into more than one computer (info is contained in File2)
File1 Example:
User
FirstName
LastName
ADSite
HDriveLocation
HDriveLocationTS
Office2010FAT
XY123456
BOB
BUILDER
LONDON
\\SERVER\%USERNAME%
\\SERVER\USERNAME
TRUE
ABC09876
JIM
INYCRICKET
CHICAGO
\\SERVER\USERNAME
\\SERVER\USERNAME
TRUE
ADD11223
SALLY
METLARRY
TOKYO
\\SERVER\USERNAME
\\SERVER\USERNAME
FALSE
File2 Example:
User
Computer
Connected
Idle
XY123456
192.168.1.216
3 days 06:13:18
0:00:03
XY123456
192.168.1.254
1 day 01:21:30
23:08:39
WXY46810
PCNAMEXYZ
6:44:19
0:00:05
I have found a PS script which "might" do what I need it to, but I haven't been able to "tweak" it right - it's omitting the details from File2 - http://powergui.org/thread.jspa?threadID=19522
Also I can't figure out how to collect multiple computernames (that users are logged into) from File 2 and add this to File1
Working with Powershell, but happy to consider any other options (EG: Excel, Macros, VBS, etc)
Here's what I have got so far: (PS)
$File1 = Import-Csv "C:\Users.csv"
$File2 = Import-Csv "C:\Shares.csv"
$Output = @()
ForEach ($Item in $File1)
{ $Result = $File2 | Where { $Item.User -eq $_.User }
$Output += New-Object PSObject -Property @{
USER = $Item.User
FirstName = $Item.FirstName
LastName = $Item.LastName
ADSite = $Item.ADSite
Computer = $_.Computer
Connected = $_.Connected
Idle = $_.Idle
Office2010FAT = $Item.Office2010FAT
HDriveLocation = $Item.Connected
HDriveLocationTS = $Item.Idle
$Output | Select User,FirstName,LastName,ADSite,Computer,Connected,Idle,Office2010FAT,HDriveLocation,HDriveLocationTS | Export-Csv C:\Users\a1033965\Desktop\result.csv -NoTypeInformation
However, the output I'm getting is missing the results from File2 and I NEED multiple computers listed if a user is logged into them:
Current Output:
USER
FirstName
LastName
ADSite
Computer
Connected
Idle
Office2010FAT
HDriveLocation
HDriveLocationTS
XY123456
BOB
BUILDER
LONDON
TRUE
ABC09876
JIM
INYCRICKET
CHICAGO
TRUE
ADD11223
SALLY
METLARRY
TOKYO
TRUE
(TRUE is actually in the right column, under Office2010FAT as it should be - just doesn't look like it as I post this)
Any help with this would be much appreciated. CheersPlease verify that your files look exactly like this:
#file1 format
User,FirstName,LastName,ADSite,HDriveLocation,HDriveLocationTS,Office2010FAT
XY123456,BOB,BUILDER,LONDON,\\SERVER\%USERNAME%,\\SERVER\USERNAME,TRUE
ABC09876,JIM,INYCRICKET,CHICAGO,\\SERVER\USERNAME,\\SERVER\USERNAME,TRUE
ADD11223,SALLY,METLARRY,TOKYO,\\SERVER\USERNAME,\\SERVER\USERNAME,FALSE
#file2 format
User,Computer,Connected,Idle
XY123456,192.168.1.216,3 days 06:13:18,0:00:03
XY123456,192.168.1.254,1 day 01:21:30,23:08:39
WXY46810,PCNAMEXYZ,6:44:19,0:00:05
¯\_(ツ)_/¯ -
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 -
Csv output has database column names instead of aliases as in template
Hi,
I'm trying to publish a csv report to an ftp server in a specific format and layout. The column names need to be customized. I've modified the alias name both in the data model and in the rtf layout template. But the csv still contains the data base names as in column0, column 1, etc. Does anyone know how to fix this? The html or rtf format displays the correct column names but not the csv.
output sent:
Column 0 Jane
Column 1 Doe
Column2 Female
desired output:
Name Jane
Last Name Doe
MF Female
Edited by: user556100 on Apr 30, 2013 2:25 AM
Edited by: user556100 on Apr 30, 2013 2:25 AMAs far as i know CSV output will not consider any template formatting. it will basically give output of all the columns used in select statement of SQL in comma separated format.
It is the default behavior of CSV output in bi publisher
Guru's Correct me if i am wrong -
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. -
I have seen a lot of good ideas regarding csv output (such as the trick to output more than 10000 rows), and I was hoping someone could steer me in the right direction with this question.
How would I go about generating csv ouput that does not contain quotes around the field data... just commas. Thanks
KevinKevin,
Essentially this is working as any other report, the only difference is that instead of using a template with HTML tags, the column values are enclosed in double quotes and separated by comma. This is hard-wired into the engine. So this can't be changed in the current version. You could write your own PL/SQL code to print out whatever you like, for this you might find the following posting helpful:
Re: Tab delimited export
Regards,
Marc -
CSV Download - issue with quote
Hi,
I am trying to downlaod my tabular form using Enable CSV output option in Reports Attribute. The report attribute setting has SEPERATOR as blank(so default comma) and ENCLOSED BY blank(so default ").
My requirement is after i download i update few data and re-uplaod again which updates the data into my custom tables.
My issue is, i have a value like -test1/2" size- (only the value between the '-'). So when i download this data and open the csv file in text format i can see the data is downloaded as
"test1/2"" size"
It has a enclsoed by as quote but it has added 1 more quote after 1/2"
Because of this my validation is failing and i am not able to upload the data.
Can any one help on this issue.
Please let me know if my question is not clear.
Thanks,
ShankarHello,
Thanks for looking into my issue.
I tried with follwing options
Seperated By :
Enclosed by '
Seperated By '
Enclosed by :
Seperated By blank
Enclosed by '
Seperated By '
Enclosed by blank
In all the 4 optiosn when i downlaod the csv data i see an extra " after the original value
Thanks,
Shankar -
Flate file containing comma error
Hi Experts,
I have got an excel file from user which I have converted into csv. The problem is that some of the fields in the record contains ',' (comma) which is causing the load to fail. (I suppose its moving everything after comma to next field which is not right since that is part of that field too).
How can i resolve this issue.Hi,
Just repeat the steps
Step1
Create a new infopackage>client workstation, File Is (Datafile)-Select CSV File
and Browse the CSV file
Step2
in the Dataseperator type , (uncheck HEX)
Step3
Escape Sign type ; (uncheck HEX)
Step4
Character used for Decimal point type .
Step5
Replcmt Char type #
Step6
Go for a Preview closing the CSV file
Step7
Try to alter the csv file and just inclued one record
Step8
Processing type , select one Only PSA
Let me know if you get the preview correct now ..
if soo load till PSA and check the data
and do let me know
Santosh -
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
Maybe you are looking for
-
BADI for return order creation in CRM
Hi group, I have an requirement. In CRM ,Return order should be created from UBB service contract when change process takes place(Contract termination), ie throgh actions in the UBB service contract. these steps are configured through Actions. The re
-
I have a new HP ENVY TS 17 Notebook PC. There is no longer any sound after install of Windows 8.1. There is an HP Assistant diagnosis, asking if I wish to disable the sound, but I don't think I should do that. Please help. This question was solv
-
I am quite happy editing camcorder footage with iMovie. However, when I get my project the way I want it, I just want to burn it to a DVD and I can't seem to be able to bypass the imposed iDVD formats. I can't find a way to just burn my iMovie projec
-
How can I remove apps no longer wanted from the cloud
How can I remove apps no longer wanted from the cloud? they are not used any more and taking up space.
-
Assigning a role for multiple reports
Hello, Is there an easy way (drag-and-drop) for assigning 30-40 reports to a role? Now, I'm doing it one by one, with Query Designer In PFCFG transaction neither, I couldn't see an easier way.. Thanks.