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 II
Super User II

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (24,036)