Delegation warning in Gallery Filter

  • Delegation warning in Gallery Filter

    Posted by DSC Communities on March 9, 2020 at 8:21 am
    • Fabian Heil

      Member

      March 9, 2020 at 8:21 AM

      ?Im currently building a Wiki with different galleries with data coming from SharePoint lists.
      I select a gallery item and on the next screen, it shows the next filtered gallery depending on the first selection.
      In nearly all sub-galleries i get a delegation warning and dont know why. I read, that the “Filter” formula supports delegation.

      Example formulas:

      Can someone help me to improve this?

      ——————————
      Fabian Heil
      IT Consultant SharePoint Applications
      ——————————

    • Zhi Rui Foo

      Member

      March 10, 2020 at 4:43 AM

      Hi Fabian,

      If none of your lists will ever exceed 2000 rows, you can ignore the delegation warning safely. The only thing you need to do is set the Data row limit for non-delegable queries to 2000 (File > Setting > Advanced settings).

      If any of your lists will likely exceed 2000 rows in their lifetime, you can either (1) use only delegable formulas/functions listed here: https://docs.microsoft.com/en-us/connectors/sharepointonline/ (my guess is your current issue is that “&&” is not delegable, and “=” is not delegable in certain cases such as datetime)

      or (2) use the visible property in the flexible height gallery control (it MUST be a flexible height gallery control) to achieve your desired display output. This series of video tutorials will tell you more than I can:Ā https://www.youtube.com/playlist?list=PLTyFh-qDKAiE6ia-D94Qk5-AzpN4dqOmD

      Regards,
      Zhi Rui

      ——————————
      Zhi Rui Foo
      Operations Development Executive
      +65 6483 3335
      ——————————
      ——————————————-

    • Warren Belz

      Member

      March 10, 2020 at 5:45 AM

      Hi Fabian,
      The ID is the issue – Filters themselves are only delegable if all the components are also delegable.
      Two solutions – if you will never have more than 2000 records, collect the data source

      ClearCollect(
         colMaterial,
         Maternummern
      )?

      on all of them and then the filters will work.
      Second better long term – add another numeric field to the list and then do a simple SharePoint Designer workflow to set this the ID when a record is created. You could also do this in PowerApps with a ForAll Patch.That field would then be delegable.

      ——————————
      Warren Belz
      Rockhampton Qld Australia
      +61 409 315 509
      ——————————
      ——————————————-

    DSC Communities replied 5 years, 5 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Delegation warning in Gallery Filter’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!