Bij het draaien van een script krijg ik de volgende foutmelding in Invantive Query Tool 24.0.594, waar ik vanaf 24/11/2025 19:50:39 (UTC) mee was verbonden.
itgeneor823: Statement #12 'insert into e....InvoiceNumber' starting on line 50 caused an error.
The OAuth access token for Exact Online has expired or is currently not accepted.
The access token has expired.
The remote server returned an error: (401) Unauthorized.
Please check that Exact Online is online. Try again later when Exact Online is offline. Re-authenticate on Exact Online when online and the access token is still not accepted.
Message ID: ea49bd90-e937-4d3c-9286-478826f37829
Occurred (UTC): 24/11/2025 19:55:57
insert into exactonlinerest..SalesEntries@eol
( Division
, EntryNumber
, InvoiceNumber
, Customer
, Description
, Journal
, Status
, Type
, EntryDate
, DueDate
, Currency
)
select /*+ http_disk_cache(false) http_memory_cache(false) */ 3935673 Division
, ftr.InvoiceNumber EntryNumber
, ftr.InvoiceNumber
, act.Id Customer
, 'Factuur ' || invoiceNumber description
, '70' Journal
, 50
, case
when AmountDC < 0
then 21
else 20
end
Type
, to_date(ftr.InvoiceDate, 'DD-MM-YYYY') InvoiceDate
, to_date(ftr.ExpiryDate, 'DD-MM-YYYY') DueDate
, ftr.Currency
--
-- Uncomment to get account code.
--
--, ftr.AccountCode
from InvoicesToLoad@inmemorystorage ftr
left
outer
join ExactOnlineREST..AccountsBulk@eol act
on act.Division = 3935673
and act.Code = to_char(ftr.AccountCode)
and act.Status = 'C' /* Customer */
where ftr.LineNumber = 1
identified by 'INVOICE' || ftr.InvoiceNumber
System.Net.WebException
ValidationException
OAuthException
ValidationException
at System.Net.HttpWebRequest.GetResponse()
at Invantive.Data.Providers.Http.HttpBasedProvider.DoRequest(GlobalState owner, ExecutionOptions executionOptions, HttpWebRequest request, String url, ObjectDefinition objectDefinition, QueryObject queryObject, String partitionCode, String callSafeNameOverrule, String anonymizedPostText, Boolean allowRetryOnNoConnectionMade, Boolean allowRetryOnConnectionLoss, ParameterList parameters, Guid nativeCallUid, Boolean throwExceptionOnNonSuccessfulStatusCode, Object requestBody, Int64 timeoutInitialMs, Int64 timeoutMaxOnRetryMs, String resultCacheId, String publicQueryParameters, SqlExecutionStep sqlExecutionStep, ExecutionStatistics& executionStatistics, ODataErrorProcessingInstructions& oDataErrorProcessingInstructions)