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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
kg4u
Helper II
Helper II

PBI Report is throwing this error during a refresh The type of the value does not match the type of

I am trying to refresh a PBI report and I am getting this error.

    pairs = List.Transform(List.Positions(fieldNames), (i) => {fieldNames{i}, (v) => if v = null or Value.Is(v, fieldTypes{i}) then v else error [Message = "The type of the value does not match the type of the column.", Detail = v], fieldTypes{i}})

in

    Table.TransformColumns(Source, pairs)

 

I do not know how to fix this, can you please suggest a way to allow me to refresh my report. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @kg4u ,

This issue appears when your data structure changes and data type conversion failed.(due to data type not matched) Can you confirm these files has same data structure?(e.g. data type, field name, separator... )

 

You can try In Query Editor, right-click the column and use Replace Values.

vyilongmsft_0-1721273410916.png

 

I have also found similar posts, please refer to.

Solved: expression.error the type of the value does not ma... - Microsoft Power BI Community

Solved: Data rows error - Microsoft Power BI Community

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @kg4u ,

This issue appears when your data structure changes and data type conversion failed.(due to data type not matched) Can you confirm these files has same data structure?(e.g. data type, field name, separator... )

 

You can try In Query Editor, right-click the column and use Replace Values.

vyilongmsft_0-1721273410916.png

 

I have also found similar posts, please refer to.

Solved: expression.error the type of the value does not ma... - Microsoft Power BI Community

Solved: Data rows error - Microsoft Power BI Community

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors