cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sudheermadduru
Helper III
Helper III

The query cannot be completed because the number of lookup columns it contains exceeds the lookup

Hi,

 

I am getting the error mentioned error in the below MS flow

 

Please let me know how this can be eradicated?

 

Regards,

Sudheertemp.JPG

4 REPLIES 4
Brentless
Kudo Kingpin
Kudo Kingpin

They just recently added a new option on the Trigger, under "Show Advanced Options", called Limit Columns By View

 

You need to first create a view on the sharePoint list that doesnt contain every field. Ideally only the fields you need for the Flow.

 

Then in your trigger select the View you created.

 

This should allow you to get beyond that error.   

 

This just opened the door for so many Flows that I havent been able to do because we have columns galore.

v-yamao-msft
Community Support
Community Support

Hi @sudheermadduru,

 

How many lookups do you have in your list? 

 

There is a default limitation on SharePoint of List view lookup Threshold and the default value = 12.

 

Please check this doc for more details:

https://blogs.msdn.microsoft.com/spses/2013/12/02/sharepoint-20102013-list-view-lookup-threshold-unc...

 

 

Best regards,

Mabel Mao

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

Hey, @sudheermadduru!

 

It appears as though @v-yamao-msft would like some more information in order to further assist you properly with your issue. Please share any additional information that was requested in order to decrease the amount of time that it will take for you to be assisted!

 

Thank you for being an active member of the Flow Community!

-Gabriel
Flow Community Manager

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager



This is the real solution. The other approved answers explain why they are getting the error but not a working solution.

 

The simple solution is to create a view on the list of just the core fields you need to update then you can update them without issue.

 

By the way, there is a bug (terrible UI behavior) in if you fill out the form fields in order (Site Address, List Name and ID), you will never see the "Show Advanced Options" link as it pops to the bottom of all the form fields. You then have to scroll way down to the bottom, click on the "Show Advanced Options" link, then scroll back up to the top and you will now see the "Limit Columns by View" option. Not real intuitive. The easiest way is to click on the "Show Advanced Options" link before you fill out the Site Address etc and you will always see the "Limit Columns by View" option.

 

I think many developers have been struggling with the fact that Microsoft basically hides "Limit Columns by View" as an advanced option when it really is essential and not advanced at all.

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,598)