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

Join 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.

Reply
CAUK
Regular Visitor

Table with no rows causes dataflow refresh to fail

In PBi Service, I have a dataflow where one of the tables has no rows. I reference to a data table and then 'Keep duplicate rows', and this returns no rows, which is the answer I want.

 

I want to be able to look at that table in a report as a way of checking for problems.

 

However, this blank table is now preventing the dataflow from refreshing: "PipelineException: Value cannot be null."

 

If I disable loading of that tabel, all is well, but then I can't use it in my reports. Ideas as to what's going on?

1 ACCEPTED SOLUTION
nilendraFabric
Community Champion
Community Champion

Hi @CAUK 

 

Please try adding a Dummy Row to your table when it would otherwise be empty. You can do this by modifying your query in Power Query:
1. After your “Keep duplicate rows” step, add a new step using the following M code:

 

= Table.FirstN(#"Previous Step", each true, 1)

 

 

Then add another step to append a dummy row:

 

= Table.InsertRows(#"Previous Step", 0, {[Column1 = null, Column2 = null, ...]})

This will ensure there’s always at least one row in your table, even if it’s just nulls

Please give kudos and accept solution if this is helpful 

View solution in original post

2 REPLIES 2
CAUK
Regular Visitor

Thank you!

nilendraFabric
Community Champion
Community Champion

Hi @CAUK 

 

Please try adding a Dummy Row to your table when it would otherwise be empty. You can do this by modifying your query in Power Query:
1. After your “Keep duplicate rows” step, add a new step using the following M code:

 

= Table.FirstN(#"Previous Step", each true, 1)

 

 

Then add another step to append a dummy row:

 

= Table.InsertRows(#"Previous Step", 0, {[Column1 = null, Column2 = null, ...]})

This will ensure there’s always at least one row in your table, even if it’s just nulls

Please give kudos and accept solution if this is helpful 

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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