Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

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

(1) ShareShare
ReportReport
Posted on by 2
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
)
  • WarrenBelz Profile Picture
    146,953 Most Valuable Professional on at
    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 60

#3
stampcoin Profile Picture

stampcoin 48

Overall leaderboard