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 :
Small and medium business | Business Central, N...
Answered

No text qualifier setting available for data exchange definitions (import)?

(3) ShareShare
ReportReport
Posted on by 34
I just came across the fact, that the Business Central data exchange defintion dialog does NOT inlcude any option to define a text qualifier (in this case quotation marks). You'd expect, that a transformation rule (replacing the quotatio mark with nothing) applied with the field mapping should deal with it, but that's apparently not the case.
 
A CSV-file with a structure like "<field1>", "<field2>", ... will throw an error message upon importing, even if all columns have been defined as text type and no field mapping has been defined. That's kind of amazing, because why would a set of arbitrary characters (including quotation marks), separated by commas, not be imported just as strings?
 
The file won't as well be imported if the columns are set up according to content (date, number, text) and transformation rules are being used within the field mapping.
 
If the CSV-file on the other hand gets stripped of all quotation marks, it WILL be imported. This however is not an option, because in this file format text qualifiers ARE required: the comma sign is not only used as separator, but also as part of number formats (e.g. like in "01.01.2000", "Mobile flat rate", "77,99", "payed") - so you can't just simply remove all quotation marks without scrambling the content structure.
 
Can it be true, that as an end user of Business Central, you need to pay developers high hourly rates only to provide a Codeunit with the simple ability of replacing quotation marks from a text stream?
I have the same question (0)
  • Verified answer
    Sohail Ahmed Profile Picture
    11,136 Super User 2025 Season 2 on at

    Solution for CSV Text Qualifier Issue in Data Exchange Definitions:

     

    Root Cause: BC's Data Exchange framework doesn't natively support text qualifiers (quotation marks) in CSV imports.

     

    Workaround Options:

     

    1. Pre-process CSV File:

     

    • Use Excel/PowerQuery to open CSV with text qualifiers

    • Save as new CSV without quotes

    • Import the cleaned file


    •  
     

    2. Custom Codeunit (Simple Solution):

     
    codeunit 50100 "CSV Text Qualifier Handler"
    {
        procedure ProcessCSVFile(var TempBlob: Codeunit "Temp Blob")
        var
            InStr: InStream;
            OutStr: OutStream;
            Line: Text;
        begin
            TempBlob.CreateInStream(InStr);
            Clear(TempBlob);
            TempBlob.CreateOutStream(OutStr);
            
            while not InStr.EOS() do begin
                InStr.ReadText(Line);
                Line := DelChr(Line, '=', '"'); // Remove quotes
                OutStr.WriteText(Line + Format(13) + Format(10));
            end;
        end;
    }
     

    3. Alternative Import Methods:

     

    • Use XMLports with custom parsing

    • PowerBI/PowerQuery integration

    • Excel Add-in for data import


    •  
     

    4. Third-party Tools:

     

    • RapidStart configurations

    • External ETL tools


    •  
     

    You're right - this is a basic CSV standard that should be supported natively. Many users face this limitation.

     

    Mark below checkbox to make this answer Verified if it helps you.

  • RM-01061504-0 Profile Picture
    34 on at
    Thx for the swift reply, that clarifies the matter.
     
    Pre-processing (here: removing quotation marks AND replacing the comma delimiter by e.g. tabs) is not that much of an issue, Excel-Add-In or PowerBI-integration would certainly work out for this purpose.
     
    Making use of Config Packages, customized XMLPorts or Codeunits is not within the end-user subscription which I'm using.
     
    And again, I fail to understand how it would need a developer subscription or 3rd party tools or paid developer work to add such basic functionality to a framework that comes at the price of Business Central.
     
     
     
     

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans