During retrieval or uploading of data with Exact Online using Invantive Cloud you may get the following error:
itgenoda184
Access to the OAuth data source requires a valid access token.
The refresh token expired at … and it is now …
Recent releases will use message code itgeneor559
instead of itgenoda184
.
It is an error propagated from the Exact Online APIs:
invalid_request
The refresh token expired at … and it is now …
It indicates that an OData request was made to Exact Online by Invantive Cloud using a “long-lived” password (the so-called “refresh token”) to acquire a new short-lived password (the so-called “access token”). The times on the two ellipses listed indicate the moments in time when the refresh token expired and the current time.
The error currently occurs when a database has not been used for 30 days or more. Exact Online introduced in Q4 2021 policies that require a refresh token to be used and rotated at least once per 30 days to stay valid.
Since many accounting processes typically interval by 25-35 days, especially accounting users may experience this problem. To resolve, please refresh your authorization as described in Easier renewal of authorizations on Invantive Cloud itgenscr652, itgeneor559 or itgeneor562).
For the near future, Invantive is working on an idea to daily use and rotate the refresh tokens by running a number of queries on Exact Online for each subscriber and ultimately pre-loading the data.