cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CarloPrincipe
Helper I
Helper I

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 @CarloPrincipe ,

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/t...

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

 

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 @CarloPrincipe ,

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/t...

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

 

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,045)