web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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 28

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

  • Verified answer
    Muhammad Ozair Naeem Profile Picture
    272 on at

    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.

  • Hossam Z. EL Hassan Profile Picture
    28 on at

    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

    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

       }

    }

  • Verified answer
    André Arnaud de Calavon Profile Picture
    307,120 Super User 2026 Season 2 on at

    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?

  • Hossam Z. EL Hassan Profile Picture
    28 on at

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

    pastedimage1624992696598v1.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 426 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 358

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 353 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans