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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
VValdivieso7
Regular Visitor

Works in PBI Desktop but gives error in PBI Online:We cannot convert the value "[List]" to type List

Hello,

 

I'm trying to do a find and replace text (trying to replace some typos, etc.) in my main dataset ("CompManufacturer_Name_Fix") by using a list of words that I have identified within the find and replace supporting list ("Find_Replace1"). I saw this video and I followed the same steps after minute 3:54. It worked perfectly in PBI Desktop (no errors whatsoever) however I had to recreate it as a Dataflow (PBI Online) and it is giving me the following error:

Expression.Error: We cannot convert the value "[List]" to type List.

Details
Value = [List]

 

Would you know why? I'm really struggling with this one. Any help is appreciated!

 

Details:

Find_Replace1:

1. I add a Custom Column to create a list using the following code:

Table.AddColumn(#"Changed column type", "Custom"each {[Find],[Replace]})
VValdivieso7_1-1661956331621.png

 

2. I delete all othe columns except the new Custom Column and finally convert the custom column to a List.

VValdivieso7_2-1661956593560.png

 

 
 

Main Dataset:

1. I take the "Competitor Manufacturer" and create a Custom Column "Competitor by Word" create a list that splits the words using the code: 

Text.Split([Competitive Manufacturer], " ")
VValdivieso7_0-1661956229935.png

 

 
2. I create a Custom Column "v.Competitive Manufacturer" to replace text and to combine the words into a 1 by using a space a delimeter by using the code:
Table.AddColumn(#"Competitor by Words - List", "v.Competitive Manufacturer"each Text.Combine(List.ReplaceMatchingItems([Competitor by Word], Find_Replace1), " "))
Here is the Error I get:
VValdivieso7_3-1661956727785.png

 

 

 

In my PBI desktop version I don't get any errors:

VValdivieso7_4-1661956984640.png

 

To confirm, I get an error in the PBI Online (to create the Dataflow) but not in the Desktop version. I need to get it to work in the PBI Online version.

 

Thanks for your help!

1 ACCEPTED SOLUTION

I was able to overcome the error by copying the entire PB Desktop Query and pasting it into the Dataflow. Not sure how/why but it is no longer giving me an error. Either way, thanks for your help!!

View solution in original post

3 REPLIES 3
v-kkf-msft
Community Support
Community Support

Hi @VValdivieso7 ,

 

It was able to execute successfully in my dataflow. Please make sure your "Find_Replace1" is a list.

 

vkkfmsft_0-1662097327486.png

 

Best Regards,
Winniz

Hi Winniz,

 

Thank you so much for looking into this!

 

To confirm, you are doing this in PowerBI Online?

 

When I do it in the Desktop version it works without a problem but when I do it Online is when I get the error.

 

I checked my Find_Replace1 and it is a List - I'm still getting the error.

I was able to overcome the error by copying the entire PB Desktop Query and pasting it into the Dataflow. Not sure how/why but it is no longer giving me an error. Either way, thanks for your help!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.