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
StephenF
Responsive Resident
Responsive Resident

"Cannot convert a value of type Table to type Text" on file import

I'm trying to convert a 1 x 1 table, ie a cell with a URL in it to a new file in a new query.

 

The Original Query is called Step1.

 

StephenF_0-1669391036539.png

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Remember you can address table cells by their row and column.

 

value = dat5555a[Column1]{0}

View solution in original post

2 REPLIES 2
v-yueyunzh-msft
Community Support
Community Support

Hi , @StephenF 

According to your description, i test it in my side , it returns the same:

vyueyunzhmsft_0-1669627630397.png

For this , we can not put the Table as the parameter in the "File.Contents" function  . 

The function's parameter is like this:

File.Contents(path as text, optional options as nullable record) as binary

In this case , you use the table as the 'path' parameter , so it returns the "Expression.Error: We cannot convert a value of type Table to type Text.". This error code tells us that the parameter in this function is not supported.

This function is used to returns the contents of the file, path, as binary. We can not use the 1*1 table as a parameter.

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

lbendlin
Super User
Super User

Remember you can address table cells by their row and column.

 

value = dat5555a[Column1]{0}

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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