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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
benja
New Member

The OData connector failed with the following error: We cannot convert the value null to type Record

Hi,

 

I faced this issue on Power BI service where I am reading data from Business Central using Odata connector.

 

Error del origen de datos: 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: Entradas Contabilidad.
URI de clúster: WABI-WEST-EUROPE-E-PRIMARY-redirect.analysis.windows.net
Identificador de actividad: 6ecd12bd-d580-42ee-ae6b-dc9407fb5fe9
Identificador de la solicitud: 03328de0-ed91-0b18-312d-db2c66afce6a
Hora: 2024-09-13 08:47:32Z

 

0001.jpg

 

Is there any solution?

 

Thanks!

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @benja 

 

This issue has been submitted internally. Please be patient to wait for fixing. If there is any progress, I will update it here.

As a workaround, users may be able manually change the query using the advanced editor

from:

Dynamics365BusinessCentral.ApiContentsWithOptions(null, null, null, null)

to:

Dynamics365BusinessCentral.ApiContentsWithOptions(null, null, null, [UseReadOnlyReplica = true])

 

Here are similar cases for your reference:

The OData connector failed with the following erro... - Microsoft Fabric Community

Solved: The latest version of the connector no longer perm... - Microsoft Fabric Community


Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Denberends
New Member

Hi. I have the same problem since a few days. Did you find a solution for this? Thanks!

Anonymous
Not applicable

Hi @benja 

 

This issue has been submitted internally. Please be patient to wait for fixing. If there is any progress, I will update it here.

As a workaround, users may be able manually change the query using the advanced editor

from:

Dynamics365BusinessCentral.ApiContentsWithOptions(null, null, null, null)

to:

Dynamics365BusinessCentral.ApiContentsWithOptions(null, null, null, [UseReadOnlyReplica = true])

 

Here are similar cases for your reference:

The OData connector failed with the following erro... - Microsoft Fabric Community

Solved: The latest version of the connector no longer perm... - Microsoft Fabric Community


Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

SaiTejaTalasila
Super User
Super User

Hi @benja ,

 

On power bi desktop open your report -open transform data and go to View>turn on Column profiler.

Select that table and check each applied steps one by one for any errors or null values in your data/time columns.If you have any nulls in date/time then you have to replace it with somedate.

 

I hope it will be helpful.

 

Thanks,

Sai Teja 

ibarrau
Super User
Super User

Hi. It looks like you have an issue in your query definition. Maybe at Table: Entradas Contabilidad. You should open the power bi desktop and refresh the model to check more details of the issue, that will specify the exact table with the problem so you can open the query editor and start checking step by step what can be wrong about a column or transformation.

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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