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

XMLPort double quotes

(0) ShareShare
ReportReport
Posted on by

I have made a XMLPort which import some data from CSV file which is semicolon seperated.

I works fine, until the use of double quotes in the csv file. Then it will divide it into 3 fields.

This is what it looks like in excel before save as

MS "Foo Luna" (ex Foo Sky).

The CSV file looks like this when opened in note

66848;31.08.2016;"MS ""Foo Luna"" (ex Foo Sky)";89870900594;

How do I work around this, so i can insert it so after insert is still with double quotes?

*This post is locked for comments

I have the same question (1)
  • Suggested answer
    Binesh Profile Picture
    7,885 on at

    Hello Christopher007,

    Design the XMLPort and goto properties

    Then Set the bellow properties as per your requirement

    FieldDelimiter

    FieldSeparator

  • Community Member Profile Picture
    on at

    I have the following properties set. The FieldDelimiter is standard, the FieldSeparator i have set custom.

    FieldDelimiter <">

    FieldSeparator ;

    What should i change it to to have names with double qoutues added without making it divide into 3 different fields? 

  • Suggested answer
    Binesh Profile Picture
    7,885 on at

    Properties.         Value

    FieldDelimeter     ;

    FieldSeperater.    ;

  • Suggested answer
    RockwithNav Profile Picture
    8,600 Super User 2025 Season 2 on at

    As suggested by Binesh try once and the semicolon in both the values i.e. Field Delimiter and Field Separator

  • Suggested answer
    Amol Salvi Profile Picture
    18,698 on at

    Try to use 'TAB' delimited  file

  • Community Member Profile Picture
    on at

    The customer wants to use semicolon delimited file, I have suggested 'TAB'.

    Binesh 

    It come in like this with your suggestion.

    Udklip2.PNG

  • Suggested answer
    Binesh Profile Picture
    7,885 on at

    Hello Christopher007,


    See the bellow screenshot. and let me know what you have issue, what you want to change.

    xmlport.png

  • Community Member Profile Picture
    on at

    Hi Binesh,

    The customer wants to use semicolon seperator.

    Issue is the customer name is the following  -  MS "Foo Luna" (ex Foo sky)

    When i import it from CSV file it gets like this - "MS""Foo Luna"" (ex Foo Sky)"

    or it get devided into 3 fields - MS - Foo Luna - (ex Foo sky).

    Can I get it into NAV with semicolon seperator and still look like this  MS "Foo Luna" (ex Foo sky)

  • Suggested answer
    Binesh Profile Picture
    7,885 on at

    Hello,

    Look if in your data " double quote is there then you can't use FieldDelimiter as a " Double quote, because system whenever found " double quote then it terminate for next.

    Tell to customer export data as some other delimiter that delimiter is not exist in actual data Like- ; OR * OR any special symbol that are not exist in actual data.

    and based on csv create Xmlport and now Import/Exort, so you won't get any exception.

  • Community Member Profile Picture
    on at

    I am not using FieldDelimiter as a "

    I use semicolon. 66848;31.08.2016;"MS ""Foo Luna"" (ex Foo Sky)";89870900594;

    Maybe there is a way to save the without adding the extra double quotes to the csv file? so the CSV file is like this

    66848;31.08.2016;MS "Foo Luna" (ex Foo Sky);89870900594; ?

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 > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans