web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / DateTimeValue function...
Power Apps
Unanswered

DateTimeValue function gives delegation warning and loads only max of 2000 records in my gallery. Datasource is SQL Server database.

(0) ShareShare
ReportReport
Posted on by 2

Please find the attached document which describes the issue.

Categories:
I have the same question (0)
  • timl Profile Picture
    36,785 Super User 2026 Season 1 on at

    Hi @KS13 

    The SelectedDate property of a date picker returns a date object. There's no need for you to call the DateTimeValue function on SelectedDate. If you remove the call to this function, it should fix the delegation problem.

    (IsBlank(FromDateNew.SelectedDate) || START_DATE >= FromDateNew.SelectedDate) &&
    (IsBlank(ToDateNew.SelectedDate) || START_DATE <= ToDateNew.SelectedDate) &&
    (IsBlank(LoadDate.SelectedDate) || LAST_MODIFIED_DATE = LoadDate.SelectedDate)

     

  • KS13 Profile Picture
    2 on at

    Hi @timl 

    Thanks for your quick response!! I tried doing it, it doesn't give me any delegation error but when I try filtering the gallery by selecting dates from FromDate and ToDate, it returns me an empty gallery. 

    Again if I replace it with below code which has DateTimeValue function, the gallery filters well by returning expected data but lots of data are missing since only max of 2000 records only are getting loaded due to delegation issue.

    (IsBlank(FromDateNew.SelectedDate) || DateTimeValue(START_DATE) >= DateTimeValue(FromDateNew.SelectedDate)) &&
     (IsBlank(ToDateNew.SelectedDate) || DateTimeValue(START_DATE) <= DateTimeValue(ToDateNew.SelectedDate)) &&
     (IsBlank(LoadDate.SelectedDate) || DateTimeValue(LAST_MODIFIED_DATE) = DateTimeValue(LoadDate.SelectedDate))

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard