Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi,
I need to fill a empty Table with (empty) values, because my Data Load is based on the month and so it can be empty(with no Columns), but then PowerBI reports an error if I refresh the data.
Based on this solution (https://community.powerbi.com/t5/Desktop/Ignore-empty-table-on-load/td-p/254776) I created this query:
let
Source = #table(1,{OData.Feed("link"])}),
isEmpty = Table.IsEmpty(Source),
CheckEmpty = if isEmpty=true
then
#table(type table[Column1 = [ColumnNames... ],{})
else
Source,
#"Expanded Column1" = Table.ExpandRecordColumn(CheckEmpty, "Column1",{Columnnames..})
in
#"Expanded Column1"But if the table isnt empty, I am getting a table full of errors. The Error Message is:
Solved! Go to Solution.
Hi @Anonymous ,
I think this issue should more related to your formula:
let
Source = #table(1,{OData.Feed("link")}),
#"Expanded Column1" = if Table.IsEmpty(Source)=true then #table(type table[#"Column1" ,type any],{}) else Table.ExpandRecordColumn(Source, "Column1",{"Columnnames"})
in
#"Expanded Column1"
My test sample:
let
Source = try OData.Feed("1https://services.odata.org/V3/Northwind/Northwind.svc") otherwise #table(type table[#"ColumnName"=text],{}),
#"Changed Type" = if Table.IsEmpty(Source)= false then Table.TransformColumnTypes(Source, {{"Name",type any},{"Data",type any},{"Signature",type any}}) else Source
in
#"Changed Type"
Regards,
Xiaoxin Sheng
Hi @Anonymous ,
I think this issue should more related to your formula:
let
Source = #table(1,{OData.Feed("link")}),
#"Expanded Column1" = if Table.IsEmpty(Source)=true then #table(type table[#"Column1" ,type any],{}) else Table.ExpandRecordColumn(Source, "Column1",{"Columnnames"})
in
#"Expanded Column1"
My test sample:
let
Source = try OData.Feed("1https://services.odata.org/V3/Northwind/Northwind.svc") otherwise #table(type table[#"ColumnName"=text],{}),
#"Changed Type" = if Table.IsEmpty(Source)= false then Table.TransformColumnTypes(Source, {{"Name",type any},{"Data",type any},{"Signature",type any}}) else Source
in
#"Changed Type"
Regards,
Xiaoxin Sheng
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 26 | |
| 23 | |
| 19 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 43 | |
| 35 | |
| 31 |