Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Elbartje1
Frequent Visitor

Direct query update stops

Hello all,

 

I have a direct query connected to an oracle database.

When I publish my report to PowerBi online (gateway is setup correctly) all works perfect.

But after x amount of time (1 hour - 6 days) no fixed time or I don't know what is triggering this, the query does not add new records to the data. If I change excisting records in the database I can still see the changes in the report but newly added records are not showing. I get no error messages.

 

If I republish the report all works well again, for a while...

 

I did multiple tests, different reports, combine import data + direct query data, only direct query data, very simple query, nothing seems to work.

 

I hope someone can point me in the right direction!

 

Bart

1 ACCEPTED SOLUTION

Any date range filters in the filter pane?

View solution in original post

6 REPLIES 6
Elbartje1
Frequent Visitor

Problem is solved, the localtime function was causing a strange behaviour.

lbendlin
Super User
Super User

sounds like your data model also includes tables that are fed by import mode queries ?

No, I have the problem when I connect my model to only one table in direct query mode (this was also my first thought what could be causing this).

Any date range filters in the filter pane?

Yes I have (forgot about it) I will test without the filter.

 

The filter uses the function DateTime.LocalNow() to only get the records from the past 40 days untill now. Maybe there is somthing wrong with the 'untill now' part.

 

It will take a few days, before I know it keeps working, I will keep you posted. (Strange thing is somthimes it even stopped on the same day).

There may be some caching going on too.  Usually with Direct Query you want to keep the transforms at a minimum, or at least guarantee that they fold completely.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors