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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors