Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 70

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

  • GregGuth2 Profile Picture
    GregGuth2 44 on at
    Re: The query cannot be completed because the number of lookup columns it contains exceeds the looku

    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.

  • Re: The query cannot be completed because the number of lookup columns it contains exceeds the looku

    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

  • v-yamao-msft Profile Picture
    v-yamao-msft on at
    Re: The query cannot be completed because the number of lookup columns it contains exceeds the looku

    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-uncovered/

     

     

    Best regards,

    Mabel Mao

  • Brentless Profile Picture
    Brentless 106 on at
    Re: The query cannot be completed because the number of lookup columns it contains exceeds the looku

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard