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 / Delegation warning wit...
Power Apps
Answered

Delegation warning with simple LookUp

(2) ShareShare
ReportReport
Posted on by 1,246

Why is this a delegation warning? 

 

 

 

 With({
 // Look up one record
 DeviceRecord: Last( Filter('App Config Devices', Title = Serial))
 },
 ... do things ...

 // Check QA record exists
 If( IsBlank( LookUp('App Config QAs', Device_List_ID = DeviceRecord.ID)),
 UpdateContext({ Message: "NO QA RECORD"});
 );
 
 ... more things ...

 

 

 

ChrisD_0-1699635070792.png

 

Device_List_ID is definitely a number, and so is DeviceRecord.ID. If I use 'Device_List_ID = 4' (or any other number) in the LookUp there's no problem. 


I've tried using Value( DeviceRecord.ID) but that doesn't fix it. 

Stumped.

Categories:
I have the same question (0)
  • Chris-D Profile Picture
    1,246 on at

    This is not the answer. Please read the question. 

     

    The problem is not with the LookUp function. If I replace DeviceRecord.ID with a number, it works:

    // Delegation warning
    LookUp('App Config QAs', Device_List_ID = DeviceRecord.ID)
    
    // No delegation warning
    LookUp('App Config QAs', Device_List_ID = 73)

     

    A simple LookUp with this=that should not cause a delegation warning no matter how big the data set. 

  • Verified answer
    timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi @Chris-D 

    Power Apps isn't able to delegate a condition that references a property of record (eg, ID).

    If you extract the Id value inside your With block, the resultant Lookup should be delegable.

     

     With({
     // Look up one record
     DeviceRecordId: Last( Filter('App Config Devices', Title = Serial)).ID
     },
     ... do things ...
    
     // Check QA record exists
     If( IsBlank( LookUp('App Config QAs', Device_List_ID = DeviceRecordId)),
     UpdateContext({ Message: "NO QA RECORD"});
     );
     
     ... more things ...

     

     

  • Chris-D Profile Picture
    1,246 on at

    Perfect, thanks for the explanation @timl.

     

    I'm not sure why using Value(DeviceRecord.ID) didn't fix it though, wouldn't PowerApps execute the Value function first and pass that to the LookUp expression as a number? Do you know the reason for this? 

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 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard