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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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