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 / Filter (Dataverse View...
Power Apps
Unanswered

Filter (Dataverse Views) not working in PowerApp after Deployment and App Publish

(0) ShareShare
ReportReport
Posted on by 10

Hi folks,

 

i'm slowly getting grey hair with my issue.

I have a simple Powerapp with a Gallery based on Dataverse. In Dataverse i have for a table several Views which I would like to display in the Gallery as a DropDown filter. Nothing special.

 

So far so good. This works on my Dev, Test and Production. Then I did some changes in PowerAutomate (nothing related to that field or gallery) and suddenly the filter does not work anymore. Same changes are on Dev and Test and the filter works fine.

 

OnChange of the Dropdown:

Set(galleryAVFilter, Switch(DropdownFilter.Selected.Value,"My Agreed Volumes", 'Agreed Volumes (Views)'.'My Agreed Volumes',"My New Agreed Volumes", 'Agreed Volumes (Views)'.'My New Agreed Volumes','Agreed Volumes (Views)'.'Active Agreed Volumes'))

 

Anyone a solution what could've gone wrong with the deployment? Solution layer have been checked, it is the exact same formula statement than on Dev and Test.. anyone else had the same issue?

 

Thank you so much in advance.

I have the same question (0)
  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @LV 

    Can you check the view Ids and whether they are the same in Dev and Prod ?

    Also have you tried Editing app in Prod or it is in a managed solution?

    Has this views been created as part of the solution or did pre-exist and you have to recreate in Dev?

     

     

  • LV Profile Picture
    10 on at

    Hi @Mira_Ghaly ,

    thank you for your help. The App is in a managed solution and the views have been first in Dev and not being prexist in prod.

     

    How can I check the view IDs?

  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @LV 

    From the solution -> Navigate to table , Views select the view and click Edit and the View ID should be in the URL as below:

     

    Mira_Ghaly_0-1660808280142.png

     

     

  • LV Profile Picture
    10 on at

    @Mira_Ghaly the view IDs are the same in Dev, Test and Prod...

  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @LV 

    Have you checked that the app published version is the same as well?

     

  • LV Profile Picture
    10 on at

    Hi @Mira_Ghaly , yes it is. i published it again. The weird thing about that is, that no changes have been made to the filter for months..

  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @LV 

    Another thing worth checking and could be different across environments is that it might be a permissions issue so can you check the data returning from the same views ?

    I am just trying to troubleshoot with you and think loud.

     

  • LV Profile Picture
    10 on at

    Hi @Mira_Ghaly ,

    the data is the same than a week ago, nothing changed and it was working back then..

    could there be an issue because I published the app after the deployment?

  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @LVi really doubt that this can be an issue 

  • LV Profile Picture
    10 on at

    @Mira_Ghaly i guess I found the problem.

     

    I have the following rules behind my gallery:

     

    SortByColumns(Filter('Agreed Volumes', galleryAVFilter,SearchText.Text in Name||SearchText.Text in 'Agreed Volume Number'||SearchText.Text in 'Business Units'),"askam_agreedvolumenumber",If(SortDescending1, Descending, Ascending))

     

    SearchText.Text in 'Business Units' is referring to a lookup field in the entity. We have over 500 records in the system. After removing this expression the DropDown Filter started working again..

     

    Any clue why this searchable lookup field causes trouble in the dropdown but not in the search itself? The search was working fine and the lookup field was searchable.

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 802 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 332 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 273

Last 30 days Overall leaderboard