cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Overcome Delegation

Hi Mr.Dang,

 

I saw this post of yours https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/500-item-limit-in-CDM-entity-search... where in you were able to successfully collect data regardless of the count.

 

However when I try to apply it into our system, There is an error saying that the request operation is not valid. 

 

see screenshot.

 

2019-11-08 21_35_02-WORKBENCH (sharepointdms UAT-DEV) - Saved (Unpublished) - PowerApps.png

@mr-dang 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Anonymous ,

Do you mean that you have faced a Delegation issue with your formula?

Could you please share a bit more about the issue message within your formula?

 

Based on the screenshot that you provided, I do not think you have faced a Delegation warning issue, instead, there is something error with your formula.

 

Based on the formula you provided above, I could not find any syntax error with it. Please consider modify your formula as below:

UpdateContext({firstrecord: First(SPODocumentLibrary)});
UpdateContext({lastrecord: First(Sort(SPODocumentLibrary, 'ID(Number)', Descending))});
...
ClearCollect(      // Modify formula here 
             iter,
             AddColumns(Filter(iterationnumber, Value <= maxiter), "min", (Value-1)*20, "max", Value * 20)
);
Clear(atasoruce_temp);
ForAll(
       iter,
       Colelct(
                datasource_temp,
                Filter(                 //  Modify formula below
                        SPODocumentLibrary, 
                        'ID(Number)' >= firstrecord.'ID(Number)' + min,
                        'ID(Number)' < firstrecord.'ID(Number)' + max
                )
       )
)

 

In addition, if you want to get rid of the Delegation limits in PowerApps, please check and see if the alternative solution I mentioned within the following thread would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Sort-gallery-with-multiple-fields/td-p/379730

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Delegation-Formula-Help/m-p/394039#M115089

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
PowerAddict
Super User
Super User

Did you try grouping the filter criteria? In other words, something like this: 

 

Filter(SP0DocumentLibrary, ('ID(Number)' >= (firstrecord.'ID(Number)' + min)) && ('ID(Number)' < (firstrecord.'ID(Number)' + max)))

 

Also, this doesn't seem like a delegation warning, there seems to be some error with your expression. 

 

Let me know if I am missing something and I can help you out. 

 

If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

v-xida-msft
Community Support
Community Support

Hi @Anonymous ,

Do you mean that you have faced a Delegation issue with your formula?

Could you please share a bit more about the issue message within your formula?

 

Based on the screenshot that you provided, I do not think you have faced a Delegation warning issue, instead, there is something error with your formula.

 

Based on the formula you provided above, I could not find any syntax error with it. Please consider modify your formula as below:

UpdateContext({firstrecord: First(SPODocumentLibrary)});
UpdateContext({lastrecord: First(Sort(SPODocumentLibrary, 'ID(Number)', Descending))});
...
ClearCollect(      // Modify formula here 
             iter,
             AddColumns(Filter(iterationnumber, Value <= maxiter), "min", (Value-1)*20, "max", Value * 20)
);
Clear(atasoruce_temp);
ForAll(
       iter,
       Colelct(
                datasource_temp,
                Filter(                 //  Modify formula below
                        SPODocumentLibrary, 
                        'ID(Number)' >= firstrecord.'ID(Number)' + min,
                        'ID(Number)' < firstrecord.'ID(Number)' + max
                )
       )
)

 

In addition, if you want to get rid of the Delegation limits in PowerApps, please check and see if the alternative solution I mentioned within the following thread would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Sort-gallery-with-multiple-fields/td-p/379730

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Delegation-Formula-Help/m-p/394039#M115089

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,377)