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
bientution
Frequent Visitor

Issues with Scheduled Refresh on Power BI Service Using Dataflow Source

 

1. The data was moved from the database to a Power BI dataflow.
2. The Power BI PBIX file is connected to the Power BI dataflow as the data source.
3. When refreshing the Power BI PBIX file from the desktop, the data refreshes successfully.
4. However, the scheduled refresh on the Power BI service is failing, despite using the same dataflow source.

 

Please Advise on How to Resolve

5 REPLIES 5
Idrissshatila
Super User
Super User

Hello @bientution ,

 

if it's related to this error 
The OData connector failed with the following error: We cannot convert the value null to type Record

then you need to change something in Power query => advanced editor

ave you tried the fix on the below link? 
https://www.reddit.com/r/PowerBI/comments/1f7yadg/data_conversion_error_on_refresh/

We encountered the same error and by adjusting the 4th parameter on the API call, the problem went away

Before:
Dynamics365BusinessCentral.ApiContentsWithOptions(null, null, null, null)

After:
Dynamics365BusinessCentral.ApiContentsWithOptions(null, null, null, [UseReadOnlyReplica = null])

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Sorry, I have edited the post and included the correct issue

yes, @bientution 

 

if the error is like this one The OData connector failed with the following error: We cannot convert the value null to type Record

then you need to check the advanced editor of each table in your data flow and if it's reading from an api then you should adjust it as the following 

efore:
Dynamics365BusinessCentral.ApiContentsWithOptions(null, null, null, null)

After:
Dynamics365BusinessCentral.ApiContentsWithOptions(null, null, null, [UseReadOnlyReplica = null])

you need to add in the last parameter instead of null to [UseReadOnlyReplica = null]



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




suparnababu8
Super User
Super User

Hi @bientution 

 

If Power BI scheduled refresh is failing in the service while the desktop refresh with the dataflow works,

I think reason is an issue with the on-premises data gateway configuration or permissions on the Power BI service side, like incorrect credentials, gateway not running. Pls check this before scheduling refresh.

 

Pls check with this urls
https://community.fabric.microsoft.com/t5/Service/Scheduled-Refresh-not-updating-with-latest-data-de...

https://community.fabric.microsoft.com/t5/Service/Manual-refresh-works-but-Scheduled-refresh-does-no...

 

Sorry, I have edited the post and included the correct issue

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.