Ik probeer ExactOnlineREST.GeneralJournalEntry.GeneralJournalEntryLines te laden, maar krijg foutmelding:
Error:
Data Source Error :
DataSource.Error:
OData:
Unable to read data from the transport connection:
An existing connection was forcibly closed by the remote host.:
MashupValueException.
RootActivityId = 04e240a7-e3d8-47c9-94c7-7e3af54e23b4.
Param1 = DataSource.Error:
OData:
Unable to read data from the transport connection:
An existing connection was forcibly closed by the remote host.:
MashupValueException Request ID: bd051a24-9fe0-a546-055a-70541ca45347.
Ik heb de vraag teruggebracht tot 1 maand en specifieke kolommen etc. Want is hier geen incremental tabel van? Dit lijkt me heel veel regels wat gedoe gaat opleveren.
Mijn query ziet er als volgt uit:
let
Source =
OData.Feed(
"https://bridge-online.cloud/acme-exact-online/odata4",
null,
\[
Implementation = "2.0",
ODataVersion = 4,
OmitValues = ODataOmitValues.Nulls,
Headers = \[ Referer = "CostPrice" \],
Timeout = #duration(0, 4, 0, 0)
\]
),
GeneralJournalEntryLines =
Source{
\[
Name = "ExactOnlineREST.GeneralJournalEntry.GeneralJournalEntryLines@eol",
Signature = "table"
\]
}\[Data\],
#"Rijen gefilterd 1" = Table.SelectRows(GeneralJournalEntryLines, each \[Created\] >= #datetimezone(2025, 11, 1, 0, 0, 0, 1, 0) and \[Created\] <= #datetimezone(2025, 11, 30, 0, 0, 0, 1, 0)),
#"Rijen gefilterd" = Table.SelectRows(#"Rijen gefilterd 1", each \[GLAccountCode\] = "0301" or \[GLAccountCode\] = "0302" or \[GLAccountCode\] = "0303" or \[GLAccountCode\] = "0304" or \[GLAccountCode\] = "0305" or \[GLAccountCode\] = "0306" or \[GLAccountCode\] = "0307" or \[GLAccountCode\] = "0308" or \[GLAccountCode\] = "0309" or \[GLAccountCode\] = "0325" or \[GLAccountCode\] = "0399"),
// kolommen selecteren
#"Kolommen beperkt" =
Table.SelectColumns(#"Rijen gefilterd", {"Account", "AccountCode", "AccountName", "AmountDC", "Date", "Description", "EntryID", "EntryNumber", "GLAccount", "GLAccountCode", "GLAccountDescription", "ID", "LineNumber", "Quantity"}),
// nieuwe kolom: kostprijs per stuk
#"CostPricePiece toegevoegd" =
Table.TransformColumnTypes(Table.AddColumn(#"Kolommen beperkt", "CostPricePiece", each if \[Quantity\] <> 0 then \[AmountDC\] / \[Quantity\] else null), {{"CostPricePiece", type number}})
in
#"CostPricePiece toegevoegd"
Wat kan ik aanpassen om werkend te krijgen.
Hoofddoel is de costprijs uit Exact Online te krijgen van moment van factureren. Die kan alleen met deze regels worden “samengesteld” helaas (of zie ik na maanden zoeken iets alsnog over het hoofd?)
