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

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,243 Super User 2025 Season 2 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

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,010

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans