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

Notifications

Announcements

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
    68,717 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
    68,717 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
    68,717 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
    68,717 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
    68,717 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard