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 / Problem with delegating
Power Apps
Answered

Problem with delegating

(0) ShareShare
ReportReport
Posted on by 92

Hi,

 

I've created this Set & LookUp query: 

 

 

Set(UdalostVar;LookUp(Catering; Name = UdalostDDL.Selected.Result))

 

 

But it says that there is a problem with delegation (and warning message saying that it might not work good with big datasamples).

 

It is working, but is there any other way to do this, so I'm not getting warning message from PowerApps?

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,547 Most Valuable Professional on at

    I'm not sure if this is the problem or not, but delegation is often a problem when you are using a value that needs to be calculated inside the formula.  Such calculations can't be delegated.  So try changing your code to the following and see if the delegation warning goes away.

    Set(selectedName, UdalostDDL.Selected.Result);;
    Set(UdalostVar;LookUp(Catering; Name = selectedName))
  • acolyter Profile Picture
    92 on at

    Hi, thank you for the reply.

     

    Unfortunatelly, it is still showing me the same message when using the code you advised me to use. 

     

    The message:

     

    Warning1.pngWarning2.PNG

     

    @Pstork1 

  • Pstork1 Profile Picture
    69,547 Most Valuable Professional on at

    What kind of column is Name?  I assumed it was a single line of text.  If its a complex column then you need to drill down to the individual text property being evaluated.

  • acolyter Profile Picture
    92 on at

    It is a single line text.

     

    @Pstork1 

  • Pstork1 Profile Picture
    69,547 Most Valuable Professional on at

    I looked back at the error again.  Based on the screenshot you haven't removed the reference to the dropdownlist and replaced it with a variable as I mentioned in my former reply.  I just tested.  If Name is a Single line of text field and you remove the reference to the complex dropdownlist then your code should work without delegation.  Please make the changes I recommended and try again.

  • acolyter Profile Picture
    92 on at

    I tried it, but forgot to post the right picture, so here it is: 

     

    acolyter_0-1636359905897.png

     

    It's giving me the same warning over and over again.

     

    @Pstork1 

  • Pstork1 Profile Picture
    69,547 Most Valuable Professional on at

    Make sure the Name column in SharePoint is an Indexed column.  That's the only other thing that I can think of that would cause this.  I tried the code in a large list on a regular single line of text column and I don't have a delegation warning.

  • acolyter Profile Picture
    92 on at

    It works now. I was working with 'title' column that is default by SharePoint and I renamed it to 'Name'. It just didn't work. When I created a new column doing the same as the previous one (Name), it started working. Maybe there's something wrong with using Sharepoint's title column and renaming it.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
  • Verified answer
    Pstork1 Profile Picture
    69,547 Most Valuable Professional on at

    Columns have an internal and a display name.  When you change the name of the Title column to name you are only changing the Display Name.  You need to use the internal name for a lot of things.  That's why it wouldn't work.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard