Skip to main content

Notifications

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?

  • jyoon0619 Profile Picture
    50 on at
    RE: xmlmport whitespace issue.

    Thank you!!! It worked

  • Verified answer
    Suresh Kulla Profile Picture
    47,789 on at
    RE: xmlmport whitespace issue.

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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 944

#2
YUN ZHU Profile Picture

YUN ZHU 848 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 602

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans