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 / Powerapps & Dataverse ...
Power Apps
Unanswered

Powerapps & Dataverse for Teams Delegation Warning

(0) ShareShare
ReportReport
Posted on by 4

I am running into a bit of a roadblock. I have a table in Dataverse for Teams that has thousands of records in it and I am getting delegation errors from Powerapps for teams while trying to filter. any thoughts? 

 

 

 

 

 

Setting the delegation limit to 2000 is not enough.

 

 

Screenshot 2021-04-29 120838.jpg
Screenshot 2021-04-29 120550.jpg
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    Hi @Jmedlock13 ,

    Firstly, please post your code as Text - the below (structure cleaned up a bit) may have spelling mistakes as it was OCRd

    With(
     {
     wDesc:'#DESC_SRCH'.Value, //what type of field is this?
     wMinDate:'Min Date'.Value,
     wMaxDate:'Max Date'.Value, //are these dates? If so why .Value?
     wMinPrice:Value('Min Price'.Value),
     wMaxPrice:Value('Max Price'.Value)
     },
     Filter(
     'P.A.R.T. Tables',
     (
     IsBlank(wDesc) || 
     (
     StartsWith(
     Description,
     'wDesc
     ) //in Filter not Delegable
     ) ||
     StartWith(
     'Part Number', 
     wDesc
     )
     )
     )
     ) &&
     (
     IsBlank('vendor picker'.Selected.'Company Name') ||
     'Part Vendor'='vendor picker'.Selected.'Company Name' 
     ) &&
     (
     IsBlank(wMinDate) ||
     'PO Closed' > wMinDate //If Date here - not Delegable
     ) &&
     (
     IsBlank(wMaxDate) ||
     'PO Closed' < wMaxDate
     ) &&
     (
     IsBlank('manufacturer picker'.Selected.'Company Name') ||
     Manufacturer' = manufacturer picker'.Selected.'Company Name'
     ) && 
     (
     IsBlank('Min Price'.Value) ||
     'Part Cost' > wMinPrice
     ),
     (
     IsBlank('Max Price'.Value) ||
     'Part Cost'< wMaxPrice
     )
    )

    Your first issue is that the in Filter is not Delegable - I have used StartsWith() above, but it may not suit your model. I have also posted some other questions and was wondering where the values for Max/Min Price/Date are coming from and what type of fields that are.
    I have a blog on Delegation that may contain some possible workarounds.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Jmedlock13 Profile Picture
    4 on at

    I will try this tomorrow, to answer your questions...

    #desc_srch is a text input field.

    And the 'min date'.value and 'max date'.value are pulling dates from the date pickers.

  • WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    Thanks @Jmedlock13 ,

    With that information, try this amended code. I also forgot to ask about Max and Min Price, so they could be wrong below.

    With(
     {
     wDesc:'#DESC_SRCH'.Text,
     wMinDate:'Min Date'.SelectedDate,
     wMaxDate:'Max Date'.SelectedDate, 
     wMinPrice:Value('Min Price'.Value),
     wMaxPrice:Value('Max Price'.Value)
     },
     Filter(
     'P.A.R.T. Tables',
     (
     IsBlank(wDesc) || 
     (
     StartsWith(
     Description,
     wDesc
     ) 
     ) ||
     StartWith(
     'Part Number', 
     wDesc
     )
     )
     )
     ) &&
     (
     IsBlank('vendor picker'.Selected.'Company Name') ||
     'Part Vendor'='vendor picker'.Selected.'Company Name' 
     ) &&
     (
     Value(wMinDate)=0 ||
     'PO Closed' > wMinDate 
     ) &&
     (
     Value(wMaxDate)=0 ||
     'PO Closed' < wMaxDate
     ) &&
     (
     IsBlank('manufacturer picker'.Selected.'Company Name') ||
     Manufacturer' = manufacturer picker'.Selected.'Company Name'
     ) && 
     (
     IsBlank(wMinPrice) ||
     'Part Cost' > wMinPrice
     ),
     (
     IsBlank(wMaxPrice) ||
     'Part Cost'< wMaxPrice
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    Hi @Jmedlock13 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard