Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I am generating delta tables using data from a JSON file, pyspark, and a notebook. Everything goes by smoothly; the table creation (If it doesn't exist already) and the table overwriting. However, I can't preview the data or query it at all with SQL. If I try, I instead get the following error:
"[DELTA_READ_TABLE_WITHOUT_COLUMNS] You are trying to read a Delta table [Table Here] that does not have any columns."
This is strange, as when I check the amount of columns in the data-frame before overwriting the table using "len(df.columns)", it is considerably larger than zero.
What is also strange, is that sometimes I can view and query a table that was created in the same exact manner as a table that is problematic. It's sporradic - even with the same, unchanged data.
Looking in the lake warehouse, I find a message with a red circle and a white 'X' next to it:
And when I view the details:
...
This seems somewhat similar to a known issue I found here:
https://learn.microsoft.com/en-us/fabric/get-started/known-issues/known-issue-891-warehouse-tables-n...
I also notice this next to some (But not all) of the table names:
When I hover over it, I get a message that says: "Columns of the specified data types are not supported for...", where it then continues on to list some columns and their (presumed) types. A preview of the table can be seen.
Is the issue I'm having related to the known issue linked above and - if so - is there anything that can be done to remedy this issue? Is it possible the schema is not being inferred correctly and that could be causing all of these issues?
Hi @Anonymous,
I don't believe "Lakehouse schemas (Public Preview)" is enabled on the lakehouse I am working with, so It likely doesn't match unfortunately.
Thank you for your time,
j_doe
Root Causes in Power BI Service:
Solutions:
Define Schema Explicitly in PySpark:
Avoid Unsupported Data Types:
Alright, I'll look into defining the schema explicitly. Thank you for your time!
Hi, @j_doe
Check out this link, does your situation match this?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
56 | |
27 | |
25 | |
22 | |
20 |
User | Count |
---|---|
58 | |
45 | |
24 | |
24 | |
18 |