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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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