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 / Getting Delegable warn...
Power Apps
Answered

Getting Delegable warning with StartsWith

(0) ShareShare
ReportReport
Posted on by 13

Hi,

I have an application which uses Sharepoint list as its source, filter the gallery the with multiple columns my code is working but I am getting Delegable warning.

SortByColumns(
 Filter(
 [@Référence]; 
 StartsWith(Titre;TextInput1_4.Text) || //column 1
 StartsWith('Le client';TextInput1_4.Text) || //column 2
 StartsWith(Technologies;TextInput1_4.Text) && //column 3
 
(Services.Value=ComboBox1_13.Selected.Value || ComboBox1_13.Selected.Value=Blank())

&&

(Secteurs.Value=ComboBox1_12.Selected.Value || ComboBox1_12.Selected.Value=Blank())

);

 "Title";
 If(SortDescending1; Descending; Ascending))


I want to fix the delegable warning:


Categories:
  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @Nouhaila ,

    Firstly, StartsWith() is Delegable, so the issue is not there - what type of fields are Titre, 'Le Client' and Technologies?

    Also, you might tidy up your and/or bracketing

    SortByColumns(
     Filter(
     [@Référence]; 
     (
     StartsWith(
     Titre;
     TextInput1_4.Text
     ) ||
     StartsWith(
     'Le client';
     TextInput1_4.Text
     ) || 
     StartsWith(
     Technologies;
     TextInput1_4.Text
     ) 
     ) &&
     (
     ComboBox1_13.Selected.Value=Blank() ||
     Services.Value=ComboBox1_13.Selected.Value
     ) && 
     (
     ComboBox1_12.Selected.Value=Blank() ||
     Secteurs.Value=ComboBox1_12.Selected.Value 
     )
     );
     "Title";
     If(
     SortDescending1; 
     Descending; 
     Ascending
     )
    )

     

    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.

  • Prakash4691 Profile Picture
    1,332 on at

    @Nouhaila ,

     

    Kindly validate below details,

     

    1. SortByColumns is delegable only for Number, Text, Boolean and DateTime datatypes and not for any complex datatype.

    2. StartsWith only works with text and complex data type.

    3. Email and DisplayName are delegable in the Person data type.

     

    Check if any complex data type has been used inside.

     

     

    Regards,

    Prakash

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

    @Prakash4691 ,

    That is exactly the question I was asking - you might give @Nouhaila a chance to respond.

  • Prakash4691 Profile Picture
    1,332 on at

    @WarrenBelz ,

     

    Hope so.

  • Nouhaila Profile Picture
    13 on at

    Hi @WarrenBelz  @Prakash4691 

    The Date type of the fields which I have used are :

    Titre  >>>>>>>  single line of text
    Le client >>>>>> single line of text
    Technologies >>> Multiple Line of text
    le project >>>>>>single line of text

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

    @Nouhaila ,

    The Delegation issue is the Multiple lines of Text (Technologies) - queries on this field type are not Delegable.

     

    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.

     

     

  • Nouhaila Profile Picture
    13 on at

    Hi @WarrenBelz 
    So, how to fix this? 

     

    and I am getting an issue, I cannot filter the gallery when I want to filter it with any of the combo boxes.

    SortByColumns(
     Filter(
     [@Référence]; 
     (
     StartsWith(
     Titre;
     TextInput1_4.Text
     ) ||
     StartsWith(
     'Le client';
     TextInput1_4.Text
     ) || 
     StartsWith(
     Technologies;
     TextInput1_4.Text
     ) 
     ) &&
     (
     ComboBox1_13.Selected.Value=Blank() ||
     Services.Value=ComboBox1_13.Selected.Value
     ) && 
     (
     ComboBox1_12.Selected.Value=Blank() ||
     Secteurs.Value=ComboBox1_12.Selected.Value 
     )
     );
     "Title";
     If(
     SortDescending1; 
     Descending; 
     Ascending
     )
    )


    Services and Secteurs are both Choice column.

     

     

    Can you help me fix?

  • Prakash4691 Profile Picture
    1,332 on at

    @Nouhaila 

     

    Check whether search is enabled for combo box because it is not delegable.

  • Nouhaila Profile Picture
    13 on at

    Hi @Prakash4691 

    The search is enabled (IsSearchable) which is true for both combo boxes, and I cannot filter the gallery with the Combo Boxes only too.

    with my code, can you please check?

  • Prakash4691 Profile Picture
    1,332 on at

    @Nouhaila ,

     

    Code looks fine. Could you try disable issearchable and check once.

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
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard