web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Odata Connection - General Ledger Entry

(0) ShareShare
ReportReport
Posted on by 5

Hi,

We are a small company, we do not have datalakes or data warehousing capabilities but want to utilise the data within our cloud BC to build Power BI reports within the PBI environment.

I have set-up multiple Power BI dataflows to extract data from Business Central and all dataflows work well apart from the General ledger (Page 20 General Ledger Entries) which keeps on falling over, not all the time but enough to annoy me.  The error i get is:

"Error: DataSource.Error: OData: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."

Our small IT team don't know if this is a Power BI dataflow or Business Central issue forcing the connection to close, does anybody know how to fix this issue?

The dataflow is pulling 3 companies General Ledger Entry data about 70k rows in total across the 3 companies.

I have tried splitting the connection out based on the posting date where i updated the Odata connection string to filter greater than 1st Jan 2021 so 6 months data but it still falls over all the time.

I have tried using a Web Api / Json format connection which worked extremely fast in comparison to the Odata connection but for some reason the connection did not extract all the data.  On a small sample comparison i looked at with no date filters applied to the connection the Web Api Json connection only started from GL entry number record 320 so literally missing the first 319 records which i have no idea why as i did not customise the connection it was a standard Web Api connection.

Any help would be appreciated.

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,247 Super User 2025 Season 2 on at

    Did you try postman or other tool to verify you are getting the data using that endpoint?

  • GreenPowerBI Profile Picture
    10 on at

    Kim Rivelio did you manage to find a solution? i got the exact same issue

  • Suggested answer
    Steven Renders Profile Picture
    5,672 Moderator on at

    What I would suggest, for Ledger Entry tables is to use (or create) a Query object and expose that as an ODATA webservice or API.

    In the Query object you can implement a group-by and Sum subtotals (=aggregating), which results in less records. You can also set the DataAccessIntent property of the query to ReadOnly, which makes it basically a little faster.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,092

#2
YUN ZHU Profile Picture

YUN ZHU 663 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 515

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans