Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
Rolandoc
New Member

REPLACE(column, CHAR(160), '') unexpectedly clears entire string

We are observing critical and unexpected behavior when using the REPLACE function in Microsoft Fabric Data Warehouse. Specifically, when attempting to remove CHAR(160) (Non-Breaking Space) characters from a string column using REPLACE(YourColumn, CHAR(160), ''), the entire string value is being replaced with an empty string (''), rather than just the occurrences of CHAR(160). This behavior is inconsistent with standard T-SQL REPLACE functionality and is causing severe data corruption in our transformation pipelines.

 

This is Fabric DWH:

Rolandoc_0-1750439892472.png

 

This is other Azure DWH:

Rolandoc_2-1750439963205.png

 

2 REPLIES 2
V-yubandi-msft
Community Support
Community Support

Hi @Rolandoc ,

Thank you for posting your query in the Microsoft Fabric Community. Before escalating the issue, it might be helpful to try a simple workaround use binary collation. This instructs the engine to compare strings byte for byte, which can help avoid issues caused by special characters like CHAR(160). Please check if this resolves the problem.

If the problem persists or you’re seeking a more permanent solution or official confirmation, as @lbendlin , suggested, it’s advisable to raise a support ticket for deeper investigation.

 

You can also refer to the official documentation here: CHAR (Transact-SQL) - SQL Server | Microsoft Learn

 

— Yugandhar
Community Support Team.

lbendlin
Super User
Super User

If you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
Otherwise you can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues .

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.