Skip to main content
Community site session details

Community site session details

Session Id : MWapJ0kAwBbuz5rzt5h8fM
Power Apps - Building Power Apps
Answered

Error : Fetching items failed. Possible invalid string in filter query.

Like (1) ShareShare
ReportReport
Posted on 10 May 2025 00:29:45 by 11
Hey guys, here is my code for a PowerApp that will display in a gallery every item that match the filter condition. The app as been working for so long, but now it just wont work anymore. The error (Error while trying to retrieve data from the network: Fetching items failed. Possible invalid string in filter query. clientRequestId: beabf3bf-5b0a-4bdf-8d18-e31d401d2ae3 serviceRequestId: 519c9ca1-9064-8000-b883-afcabba06da0) happens when the ComboBox 'dus_3' isn't blank and a choice of dus is selected. If the ComboBox is left blank everything works.

*** FYI : This code is written on a french platform of PowerApp so all ';' are equals to ','

Thanks in advance ! :)


 
SortByColumns(
    Filter(
        demandeEchange;
        journee <= end_date_1.SelectedDate;
        journee >= start_date_1.SelectedDate;
        IsBlankOrError(statut);
        dus_3.Selected.Nom_DU = Blank() Or dus_3.Selected.Nom_DU = LookUp(
            Employee;
            Title = Nom_agent;
            key_DU
        ) Or dus_3.Selected.Nom_DU = LookUp(
            Employee;
            exportAgent1 = Nom_agent;
            key_DU
        );
        agents2.Selected.Nom_agent = Blank() Or agents2.Selected.Nom_agent = Title Or agents2.Selected.Nom_agent = exportAgent1
    );
    "journee";
    SortOrder.Ascending
)
 
  • Verified answer
    OP-04081924-0 Profile Picture
    11 on 14 May 2025 at 22:18:05
    Error : Fetching items failed. Possible invalid string in filter query.
    Hey @WarrenBelz thanks for your reply !


    Yes I am using SharePoint, in the end I went back into my SharePoint List and change the data from Title column to a new column "Name" and then it worked whithout any problem. I had to redo my code in all the app for the Title column, but yeah it was the Title column from the Sharepoint list that was causing the error.
  • WarrenBelz Profile Picture
    148,894 Most Valuable Professional on 10 May 2025 at 02:10:38
    Error : Fetching items failed. Possible invalid string in filter query.
    Firstly, can you please remember to post your code in Text - saves re-typing here. The code below is OCR'd, so watch spelling. Try this for a start - also helps with Delegation (I assume you are using SharePoint)
    With(
       {
          _Data:
          SortByColumns(
             Filter(
                demandeEchange;
                journee <= end_date_l.SelectedDate; 
                journee >= start_date_l.SelectedDate;
                statut = Blank();
                agents2.Selected.Nom_agent = Blank() Or 
                Title = agents2.Selected.Nom_agent Or 
                exportAgentl = agents2.Selected.Nom_agent
             )
          );
          _DUS3: dus_3.Selected.Nom_DU
       },
       Filter(
          AddColumns(
             _Data;
             LU1:
             LookUp(
                Employee;
                Title = Nom_agent
             ).key_DU;
             LU2:
             LookUp(
                Employee;
                exportAgentl = Nom_agent
             ).key_DU
          );      
          _DUS3 = Blank() Or LU1 = _DUS3 Or LU2 = _DUS3
       )
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn    Buy me a coffee
     
     

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete