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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
CSpina
Helper III
Helper III

DataSource.Error: Microsoft SQL: Argument data type text is invalid for argument 1 of replace functi

Hi Guys! After install the version: 2.86.727.0 64-bit (outubro de 2020) I have started to get this error on MS SQL updates. Any clues? DataSource.Error: Microsoft SQL: Argument data type text is invalid for argument 1 of replace function. Detalhes: DataSourceKind=SQL DataSourcePath=--------------.sa-east-1.rds.amazonaws.com;-------------- Message=Argument data type text is invalid for argument 1 of replace function. ErrorCode=-2146232060 Number=8116 Class=16
3 REPLIES 3
CSpina
Helper III
Helper III

The problem is in: 

 

= Table.ReplaceValue(#"Colunas Removidas","<p>","",Replacer.ReplaceText,{"descricao_montadora_veiculo"})

 

I have to delete all replaces, including "</p>"

@CSpina I had this problem too. I think it means that you're pulling data from your SQL database that has blank values "" instead of null.

 

Try putting this step before your problem step, and that should fix things:

= Table.ReplaceValue(#"Removed Columns","",null,Replacer.ReplaceValue,{"descricao_montadora_veiculo"})

Hi @CSpina ,

So the problem is solved by yourself?

If not, whether the issue is about replace </p> in your data column? What did the data column look like and it seems like you want to replace it into blank. Could you please consider sharing some scrrenshots about it for further discussion?

 

Best Regards,

Yingjie Li

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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