I have one more strange situation. The invoice tables load correctly, but the timetracking table only loads 18 rows, while it should be a few thousand for the given date filter.
I can’t figure out the logic in it. The rows seem to be random. Different months, different users, etc.
Below is what the live monitoring shows after an apparently successful processing of the request.
And here, for confirmation, is the current SQL statement:
create or replace force view TimeTrackingAllThisYear
as
select *
from Teamleader.V2Flat.TimeTrackingAll
where ended_at >= trunc(sysdateutc, -2)
and ended_at < add_months(trunc(sysdateutc, -2), 12)
