Forum Discussion

sevenhills's avatar
sevenhills
Super User
4 years ago

Paginated Report export to CSV adding quotation mark only for selected lines

Hi 

 

Paginated Report > export to CSV > adding quotation mark only for selected lines

 

Details:

I have a paginated report, and the report has only one column table.

Each row is one full line of data. [we need to show the source file as download]

when exported as CSV , it adds double quotes, if the row has comma (,).

If there is no comma, then it won't add double quotes. this is by design.

 

How to avoid double quotes when exporting from paginated report as CSV it in power bi service?

 

Thanks

 

Ref: By design

https://docs.microsoft.com/en-us/sql/reporting-services/report-builder/exporting-to-a-csv-file-report-builder-and-ssrs?view=sql-server-ver15

 

For SSRS, we did do by configuring different settings as https://docs.microsoft.com/en-us/sql/reporting-services/csv-device-information-settings?view=sql-server-ver15

 

Ref: Similar issue

https://stackoverflow.com/questions/59667551/ssrs-adding-extra-characters-when-exporting-to-csv

 

 

10 Replies

  • when does this become an issue?  Normally the CSV ingestion apps can handle quoted delimiters automatically.

    • sevenhills's avatar
      sevenhills
      Super User

      I did mention in the post, please check: ... when exported as CSV , it adds double quotes, if the row has comma (,).

       

      More details:

      a) If the data in a table column has a comma or other special characters, csv download is adding the double quotes. This is default behavior. I do NOT want double quotes.

       

      b) I used to control this behavior this in SSRS Server configuration, not to add any double quotes. by adding one more download option as "CSV 2" and provided instructions to the report users.

      https://docs.microsoft.com/en-us/sql/reporting-services/customize-rendering-extension-parameters-in-rsreportserver-config?view=sql-server-ver15

       

      c) For the set of reports, I am working, the source is snapshot output files since 2000, of  many reports, which are from other systems.

       

      We are storing them and displaying as-is for the end user to download. Basically SSRS is acting as wrapper and facade to these data. hence these reports always has one column table and download the original source file. 

       

      Now, we are moving all SRSS reports to power bi service - paginated reports, not sure how to config and handle this scenario. 

       

      TIA

      • lbendlin's avatar
        lbendlin
        Super User

        I still don't see the issue.  Power BI handles quoted data automatically, even if not every row is quoted.

  • v-chenwuz-msft's avatar
    v-chenwuz-msft
    Community Support

    Hi sevenhills ,

     

    Unfortunately, the paginated report (Power BI Report Builder) does not seem to support modifying CSV Rendering.

    You can put forward your ideas here.

     

    Best Regards

    Community Support Team _ chenwu zhu