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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Bhavesh123
New Member

Expression.Error: We cannot convert a value of type Table to type Binary.

Bhavesh123_0-1630735349287.png

 

 

Please help in resolving this.

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @Bhavesh123 ,

 

This error occurs when your #"Sample File" is type Table and not type Binary.

 

In my sample data, if I want to use 1.xlsx as the sample file, then lick "Binary", it will generate the following steps, we need to delete the step "Imported Excel Workbook" to make it type Binary.

 

tempsnip1.pngtempsnip2.png

vkkfmsft_0-1631084331853.png

 

Then we can reference it successfully in the M code.

 

image.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

6 REPLIES 6
v-kkf-msft
Community Support
Community Support

Hi @Bhavesh123 ,

 

This error occurs when your #"Sample File" is type Table and not type Binary.

 

In my sample data, if I want to use 1.xlsx as the sample file, then lick "Binary", it will generate the following steps, we need to delete the step "Imported Excel Workbook" to make it type Binary.

 

tempsnip1.pngtempsnip2.png

vkkfmsft_0-1631084331853.png

 

Then we can reference it successfully in the M code.

 

image.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

 

 

 

 

 

 

 

 

I have exactly the error and when I tried to delete the Import Excel Workbook step, it came up with this error:

YutingKimbley_0-1717511241499.png

 

It turned out perfect

How do you fix this same issue when dealing with a SharePoint list? 

Good afternoon

Unfortunately for us I am not getting to follow the steps you describe satisfactorily 😞

I delete the imported excel step and it keeps generating an error for me.

Additionally, where are you adding the M code? In the query / step "Origin"? You employ a custom function from what I see, what is this function?

Greetings and a thousand thanks in advance for the guidance,

I hope we will be able to resolve this issue.

FarhanAhmed
Community Champion
Community Champion

Can you please give further details,

 

- what is the data source that you are using 

- Details steps of your Power Query code.







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors