web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Action 'Get_items' fai...
Power Automate
Answered

Action 'Get_items' failed with 'This query is not valid' error

(0) ShareShare
ReportReport
Posted on by 11

I drafted a SharePoint Weekly News Digest flow based on the steps in this article. Initially I did the flow exactly the way this article detailed it--creating a custom PageType column on the Site Pages list--which worked without issue. I later discovered that there is already a column that I could add that differentiated news articles from other pages on a site--the Promoted State column--a Promoted State value of 2 indicates a news article. So I modified my filter query to include 'Promoted State' eq 2 instead of the PageType filter in the aforementioned thread; however, when I test the flow with the updated query, it fails with the following error details for the Get Items action:

 

The query is not valid.
clientRequestId: 3d5946e5-dab2-456b-b4b2-8d1f87e4e9b7
serviceRequestId: 3d5946e5-dab2-456b-b4b2-8d1f87e4e9b7

 

Below are some screenshots with the column I used in the filter, the error details, the actions in the flow and the Get Items action with the filter I used. 

 

Thanks in advance for any help you can provide! 

 

2020-09-24 14_00_54-Testing Ground for IT - Site Pages - By Author.png2020-09-24 14_03_02-Run History _ Power Automate.png2020-09-24 14_06_02-Run History _ Power Automate.png2020-09-24 14_07_14-Edit your flow _ Power Automate.png

Categories:
I have the same question (0)
  • MJain Profile Picture
    2,450 on at

    Hi @MauriceC ,

     

    Please try to use _x0020_ for Promoted State condition as given in the similar thread.

     

    https://powerusers.microsoft.com/t5/Building-Flows/OData-syntax-for-sharepoint-column-with-a-space-Get-Items-action/td-p/147705

     

    Thanks

  • MauriceC Profile Picture
    11 on at

    Should this portion of the query be written like this now:  'Promoted_x0020_State' eq 2 ?

  • Verified answer
    MauriceC Profile Picture
    11 on at

    I ended up omitting the space in the column name altogether and modified the portion of the query to read:

     

    PromotedState eq 2 

     

    The flow ended up working successfully.

  • CU05081748-0 Profile Picture
    on at

    same Issue not sure what else to change. keeps failing on the same flow

     

    rlaguna_0-1665696328736.png

    rlaguna_1-1665696423152.png

    Please Help.. Been stuck on this for a couple of days.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard