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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
PaulGBG
Frequent Visitor

OLE DB ODBC Error connecting to Microsoft Business Central

Hi.

I need to filter a query on a field that is held in the customer card table in Microsoft Business Central.

I have managed to get this table back from other companies where the number of customers is far less than this specific table with no problems, but cannot bring records back into power BI desktop from this company.

 

I have set up a new Power BI desktop report, and just tried to bring back the minimum two fields from this table. The Customer Number and the Customer Posting Group. So this is all that I am trying to import to Power BI.

 

I selected these two fields using:

Power Query Editor>Choose Columns

This is a big table, more than 3000 rows.

 

Here is the query from advanced editor:

 

let

    Source = Dynamics365BusinessCentral.EnvironmentContents(null, null),

    PRODUCTION = Source{[Name="PRODUCTION"]}[Data],

    #"GBG LIVE" = PRODUCTION{[Name="GBG LIVE"]}[Data],

    Customer_Card_table = #"GBG LIVE"{[Name="Customer_Card",Signature="table"]}[Data],

    #"Removed Other Columns" = Table.SelectColumns(Customer_Card_table,{"No", "Customer_Posting_Group"})

in

    #"Removed Other Columns"

 

This doesn't work. I get the message below.

 

PaulGBG_0-1616713200132.png

Does anyone have any idea how I can get this data into Power BI?

1 ACCEPTED SOLUTION
PaulGBG
Frequent Visitor

Hi.

 

I want to post the solution to this, as it may save other people a lot of time.

 

The table was just too big and timed out on loading.

 

Our Business Central support provider was able to create a webservice for a filtered page, showing only the two columns that I required.

This page loaded in less than a two minutes with all of the required data for my report.

View solution in original post

3 REPLIES 3
PaulGBG
Frequent Visitor

Hi.

 

I want to post the solution to this, as it may save other people a lot of time.

 

The table was just too big and timed out on loading.

 

Our Business Central support provider was able to create a webservice for a filtered page, showing only the two columns that I required.

This page loaded in less than a two minutes with all of the required data for my report.

amitchandak
Super User
Super User

@PaulGBG , This usually when power bi not able to connect with source. Close without saving. Under edit connection, clear permission and provide credentials and try again your changes. 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi Amit.

 

Doing this still doesn't let me bring in the table from Business Central.

 

I can bring through other tables, but not this one.

 

I have access to the table from the business central user interface, but when I try and bring this in, the message stops on.

 

"Waiting for Dynamics365 Business Central"

 

It sticks on this message for about twenty minutes, and then goes to the OLE ODBC error message as above.

 

Do you have any other ideas?

 

Thanks Paul

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.