let
Bron = OData.Feed("https://bridge-online.cloud/xxxxx-exact-online-acme/odata4", null, [Implementation = "2.0"]),
#"Navigatie 1" = Bron{[Name = "ExactOnlineREST.Sync.SyncTransactionLines@eol", Signature = "table"]}[Data],
#"Andere kolommen verwijderd" = Table.SelectColumns(#"Navigatie 1", {"Account","AmountDC","Division","Asset","CostCenter","CostUnit","Description","DueDate","EntryNumber","FinancialPeriod","FinancialYear","GLAccount"})
in
#"Andere kolommen verwijderd"
This query in dataflows is scheduled daily. When it succeeds, the refresh takes between 70 and 80 minutes, sometimes as little as 10 minutes. But just as often, this refresh hits the extended timeout.
After several refreshes, I can see in the monitor centre that the daily API limit of 5000 calls from Exact Online has been reached. This table contains around 2.1 million rows for this database.
It seems as though the query keeps getting stuck somewhere or keeps restarting.
How can I make this data retrieval stable so that it only takes around 10 minutes each day (which also seems to be the logical duration)?
After downloading session I/O’s in the similarly named screen of Invantive Cloud, it appears that more than 5,000 API calls were made for 1 division.
Approximately 80% of this is accounted for by the table ExactOnlineREST.FinancialTransaction.BankEntryLines. The advice is to derive this from TransactionLinesIncremental or to only retrieve it partially, for example via a filter step (with query folding).
For this, the advice is not to use the Sync* tables unless one wishes to build all the logic for this themselves. Instead, use the *Incremental tables.
Furthermore, make sure that the timeout is set for every query, even for the small downloads, as these can end up behind a slow download; see also Vermijd time-out fout bij Power BI OData download
The advice is to take into account that Exact Online environments of this size will also wish to be moved to the Premium subscription in the near future for Belgium.
This question was automatically closed after 1 week of inactivity. The last answer given has been marked as the solution.
If the problem occurs again, please ask a new question via a separate topic. Please include a link to this topic in the new question by pasting its URL into the text.