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 :
Microsoft Dynamics AX (Archived)

Remove quotes during file import

(0) ShareShare
ReportReport
Posted on by 627

Hi

I created a class to import data from a csv file. The data is text-based so I create a record container holding all single Values as string

Now the text file provided from Paypal look like this

""04.09.2019"",""EUR"",""-37"",""ARGSHRT453F"",...

How can I remove the second quotes around the values?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    Could we see your code that populates this container? The appropriate moment to remove the extra quotation marks would be before you put the values into the container.

    You can use strRem function to remove unwanted characters from your string variables.

  • CRSW Profile Picture
    627 on at

    while(importFile.status() == IO_Status::Ok)

    {

    recordContainer = importFile.read();

    importFile is an AsciiIo Object

  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    Here's an example where we remove quotes from string variables inside a container:

        container myCon1 = ['"foo"', '"bar"'];
        container myCon2;
        str myValue;
        int i;
       
        info(con2Str(myCon1));
        for (i = 0; i <= conLen(myCon1); i++)
        {
            myValue = conPeek(myCon1, i);
            myValue = strRem(myValue, '"');
            myCon2 += strRem(myValue, '"');
        }
       
        info(con2Str(myCon2));

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
Basit Profile Picture

Basit 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans