Jump to content
We've recently updated our Privacy Statement, available here ×

CSV format data export issue - first column data contains a comma


rr9876r

Recommended Posts

Hi, 

I have designed a simple report in Jaspersoft Studio 6.4.2 version. The report works fine as expected and encounter an issue when saving/exporting data into CSV format if the column data contains a comma  and not enclosed the data value within double quotes. It is causing an issue when sending the CSV data file to another party because the number of cloumns in the record layout are different from other records in the file.  

For example, the report displays the like 

Title                             User     ===> column header
System, Admin          John, Doe
DBA                         Smith, Joe

When this exported into CSV format  and will be looks like this

Title,User
System,Admin,"John, Doe"
DBA,"Smith, Joe"
 

In the first line, the System, Admin is not within double quotes. This results the first line with with two commans and 2nd line with one comma. This is causing an issue when remapping CSV data in Excel and the data is not aligned correctlry. I can trim the comma from column data value but we wanted it. 

Any suggestions please

Thanks 
Ram

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...