Reply 5
I thought I’d give it another go now that logging is disabled. I’m now getting this message:
Replies happen on the forum.
Go to sourceA number of records are retrieved from GeneralLedgerDetailsV3, but after a while an HTTP error 524 occurs.
If I ‘reset cache’ and try again, I get the error:
The name must be present. Please add a name. itgenboe341
receive. I can’t get rid of this error afterwards.
Sometimes, if I don’t save anything and restart PowerBI, I might get the 524 error again; other times, I get the ‘name’ error straight away. There’s already a thread about the name error, so I’d like to keep this one at 524, but it’s not always possible to reproduce the issue – though sometimes it is.
App Online.cloud: Version: 22.0.483-INTERNAL+3753
On Bridge Online, I also get the 524-error.
An improvement has been included from release 24.0.135 onwards to enable the reliable processing of relatively large datasets, in terms of transaction volumes, in Power BI and/or SQL without the need for adjustments. For further information, see:
The HTTP 524-melding is an CloudFlare-specifieke error message. Apparently, Twinfield uses CloudFlare as an intermediary layer, and an error occurs in the communication between CloudFlare (acting as a proxy) and Twinfield. This may be due to the volume of data.
If this problem also occurs when using App Online with the latest release, a retry mechanism for HTTP status 524 is already in place. Without further improvements, this problem will not be resolved.
The proposed solution is:
Improvements to the Twinfield-specific parts of the optimiser, by rewriting the between file for a year/period spanning multiple years as separate API calls. At present, partitioning takes place exclusively on a per-accountancy-file basis, which is sufficient for accountancy files. This optimisation is currently being examined, including the option of omitting it for small organisations. As soon as more information is available, this post will be updated.
Possible workarounds are:
for...loop in Invantive PSQL.The first option works well if the number of transactions per year or period is manageable. The second option also works well for volumes exceeding 100 million rows in a Twinfield account.
On app-online.cloud: Version: 22.0.483-INTERNAL+3753
I’ve now applied a filter for >= 2020, and (I’d already tried this with and without it):
OData.Feed(“https://app-online.cloud/novoserve-twinfield/odata4”, null, [Implementation=“2.0”, ODataVersion=4, OmitValues=ODataOmitValues.Nulls, Timeout=#duration(0,4,0,0)])
Now I’m getting a different error message, namely OutOfMemory.
itgenclr007 An exception of type ‘System.OutOfMemoryException’ was thrown.
The query in Bridge Online Monitoring is:
select t.*
from Twinfield.Twinfield.GeneralLedgerDetailsV3@tfd t
where ([FIN_TRS_HEAD_YEAR] >= :w1)
with w1 = 2020
Thank you for letting us know. The logs show that this version is running a heavy logging operation to better identify the issue described above. However, this data logging is exceeding the memory limit of a text variable. Logging will be disabled.
According to the logs, the data retrieval appears to have gone smoothly.
I thought I’d give it another go now that logging is disabled. I’m now getting this message:
Logging has been disabled via a release later today. The error messages itgenboe344 and itgenboe361 are known to be part of the new functionality. There is currently no solution for this; as soon as a release goes live on Bridge Online after the frozen period, a solution will be built in.
I now have to enter ‘interim year >= 2021’ to avoid getting Error 524. We’re going to make more bookings this year than in 2020, so I’m afraid I’ll soon have to enter >= 2022 or only be able to import 1 year at all. 13 days ago, it was mentioned that a different partitioning scheme would be looked into; is this still being considered?
Yes, that’s correct. This has been looked into and will be incorporated. However, due to the annual cycle, this will take a little while. A temporary workaround is to make two or more downloads and merge them in Power BI: one for 2020, one for 2021, one for 2022 and one for 2023, for example.
In release 23.0.76, a view PeriodsWithTransactions has been included with periods by which you can filter, so that the likelihood of an 524 HTTP status code or itgentfr091 occurring is minimised.
In principle, the data could be retrieved using the following view per period, were it not for the fact that the Invantive UniversalSQL optimiser automatically rewrites this as a IN-clause instead of separate joins:
select glr.*
from PeriodsWithTransactions prd
join GeneralLedgerDetailsV3 glr
on glr.company_code = prd.company_code
and glr.fin_trs_head_yearperiod = prd.fin_trs_head_yearperiod
We will attempt to optimise the various financial transaction tables to use PeriodsWithTransactions.