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

xmlmport whitespace issue.

(0) ShareShare
ReportReport
Posted on by 50

I need to import csv file using xmlport in BC however, when I try to import data, BC automatically removes more than one whitespace in the string.

for example, lets say there is a cell has string "AA  1111", between AA and 1111, it has two white spaces but when I import to the BC, it automatically changes to "AA 1111" which is one white space.

I tested with multiple whitespaces in between the text and only one whitespace is remain after import.

Removing whitespace takes in action before anything I could do to customize it. 

Are there ways that I can hard copy whitespaces from the csv file or is it BC default that it removes any additional whitespaces?

I have the same question (0)
  • Verified answer
    Suresh Kulla Profile Picture
    50,278 Super User 2026 Season 1 on at

    There is a property on the XmlPort called PreserveWhiteSpace, by default it is false, please try to set it to True.

  • jyoon0619 Profile Picture
    50 on at

    Thank you!!! It worked

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,995 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,147 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 893

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans