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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MattRTemcool
New Member

Datasource Error - Business Central Web Services

Hello, 

Yesterday we had a a few scheduled refresh failures, but today almost all of our datasources are are failing to refresh.  All of these have to do with Business Central Web Services datasources.  Here is an example of the error given: Expression.Error: The OData connector failed with the following error: We cannot convert the value null to type Record... . The exception was raised by the IDbCommand interface. Table: Division.

 

Using the desktop app I can refresh the datasources perfectly fine, but the PBI Service fails.  I have gone through and reselected the datasource in the naviagtion step and then republished the to the workspace to test.  After this the datasource refreshed without error, but upon the next scheduled refresh the datasource failed again with the same error.  This leads me to believe that there is an issue with the PBI Service or Business Central, but as the Desktop app refreshes correctly it seems more likely that it is the PBI Service.  Anyone else having similar issues?

1 ACCEPTED SOLUTION
Idrissshatila
Super User
Super User

@desac @MattRTemcool @MaryAnne @omgull @OttoChr 

this solution worked and I've tried it

Have 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!




View solution in original post

11 REPLIES 11
Idrissshatila
Super User
Super User

@desac @MattRTemcool @MaryAnne @omgull @OttoChr 

this solution worked and I've tried it

Have 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!




Idrissshatila
Super User
Super User

Hello @MattRTemcool  @MaryAnne @omgull @desac @OttoChr 

 

I opened an issue with microsoft support to investigate it, you can follow the issue in the link to know the latest update regarding this issue
https://community.fabric.microsoft.com/t5/Issues/The-OData-connector-failed-with-the-following-error...

 



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!




omgull
New Member

Hi, We had the same problem.

 

You can try to change 
Dynamics365BusinessCentral.ApiContentsWithOptions(null, null, null, null),
to 
Dynamics365BusinessCentral.ApiContentsWithOptions(null, null, null, [UseReadOnlyReplica = null])

 

This fixed the problem for us

Works. thx

desac
New Member

Same problem here. We dont use Gateways and the Desktop app works perfectly. Waiting for a solution...

MaryAnne
New Member

Hi, I'm having the same error. We use the cloud version of BC, so no gateway setup. Would love to know what we need to alter to get the powerbi's back up.

OttoChr
New Member

Same problem here

agomezpompa
Regular Visitor

Have exactly the same problem as of today. Have to be something general and not specific by user

Xiaoying
New Member

Hi, I'm having the same error from yesterday. I posted on the forum and got some replies all the same due to BC tables and no error on desktop version.

amankishoreee
New Member

If you're able to refresh successfully in pbi desktop then their might something wrong with your gateway setup. Try to make a new gateway and then try.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.