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 Apps / Error : Fetching items...
Power Apps
Unanswered

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

(1) ShareShare
ReportReport
Posted on by 14
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
)
 
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at
    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   
     
     
  • Verified answer
    OP-04081924-0 Profile Picture
    14 on at
    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.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard