Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Data Management Export Export CSV with Single Quote

(0) ShareShare
ReportReport
Posted on by 12

Hi, 

I have a problem when exporting data with CSV format if the data contains special characters which I believe is single quote in the description field. If I export the same data to excel I don't have the issue.

Is there a way to fix this problem.

pastedimage1624899120311v1.png

  • Hossam Z. EL Hassan Profile Picture
    12 on at
    RE: Data Management Export Export CSV with Single Quote

    Thanks everybody. I have tried to check the Text qualifier and the issue is resolved.

    pastedimage1624992696598v1.png

  • Verified answer
    André Arnaud de Calavon Profile Picture
    293,233 Super User 2025 Season 1 on at
    RE: Data Management Export Export CSV with Single Quote

    Hi Hossam,

    Can you explain what exactly is your problem? You mentioned you have a problem but not what the problem is about. Can you provide an example?

  • Verified answer
    Muhammad Ozair Naeem Profile Picture
    272 on at
    RE: Data Management Export Export CSV with Single Quote

    If the removing the comma would not hurt the integrity of the data, you can have that done in the postLoad method of the entity by adding a virtual field. You can use regex to remove the comma there.

    Sample of the postLoad Method.

    [ExtensionOf(tableStr(SalesOrderHeaderV2Entity))]

    final class Myclass_SalesOrderHeaderV2Entity_Extension

    {

       public void postLoad()

       {

          // Custom code

            next postLoad();

         // Custom code

       }

    }

  • Hossam Z. EL Hassan Profile Picture
    12 on at
    RE: Data Management Export Export CSV with Single Quote

    Hi Muhamma,

    I am exporting GL transactions. I tried to convert the Excel to CSV and it works well. The issue is only when I export directly to CSV.

    What would be your recommendations?

  • Verified answer
    Muhammad Ozair Naeem Profile Picture
    272 on at
    RE: Data Management Export Export CSV with Single Quote

    Hi Hossam,

    Could you elaborate more about the entity? Is it a custom entity? Or a screenshot?

    I believe the issue is not with a quote but a comma. The CSV file actually separates the data with commas and an extra comma in your data is giving this issue. Have you tried converting your Excel exported data to a CSV file? Does that give an error too?

    The comma can be removed before exporting as well in a method but that can destroy the integrity of the data. I'm not sure if escape characters can be of any help here.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,233 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans