web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • 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
    12 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
    301,035 Super User 2025 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
    12 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans