cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AsgeirAlbretsen
Frequent Visitor

Delegation warning using "Folder path" and "File name with extension"

Our SharePoint has millions of items in it, so it's important that I get the delegation right. I've read that both StartsWith and EndsWith are delegable functions, which is great, but I get delegation errors when trying to apply these functions. Specifically:

 

Delegation warning. The highlighted part of this formula might not work correctly with column "Folder path" on large data sets.

 

If I remove that part of the filtering, I get the same error but with "File name with extension instead". Here is my formula:

 

Filter(
  Documents,
   StartsWith(
     'Folder path',
     "Shared Documents/Signatur_App"
  ),
  StartsWith(
    'File name with extension',
    TextInput_ProjectNumSearch.Text
  ),
  EndsWith(
    'File name with extension',
    ".xlsx"
  )
)

 

Does anyone know if the delegation will work, even with the errors? Or is there a way to fix them and still keep all the functionality?

3 REPLIES 3
Anonymous
Not applicable

Hi


As far as I know, if you are fully respecting delegations, then it will works despites of the warning. But in your case, the folder path and file name with extension may fall into the complex types of sharepoint and so, may not be delegable (contrary to text type)

manueltezz
Regular Visitor

Unfortunate 'Folder path' and 'File name with extension' are calculated fields, is the reason why they do not work, even if they are of type text. You will probably have to create a new field to filter

 

Ricardo_Irineo
Advocate I
Advocate I

I've had the same issue with file libraries and wondering if anyone has had any luck since then?

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,722)