Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

Subgallery bug when trying to change to other screen

Hi folks,

I have been working around with a subgallery thas is causing a strange behavior. I have the next screen in PowerApps Studio. It has a roles gallery and a users subgallery whose belong to those roles.


Eeach item of the subgallery has a button to edit the selected item which takes to the user role edit screen.


The actions of the edit and new button works perfectly inside PowerApps Studio but when I publish the App and access it trought  the "Web Link", the "play" button  or access trought the phone/tablet I cannot achieve the user role edit screen. Instead of that the App crash  and a black screen appears like it is loading something.


I discovered that if I delete the subgallery I can access the role edit screen perfectly.


This is the onselect action of the new button:


NewForm(AddUserEditForm);;Navigate(UserEditScreen; ScreenTransition.Cover;{IsEditMode: false})


This is the onselect action of the edit buttons:


EditForm(AddUserEditForm);;Navigate(UserEditScreen; ScreenTransition.Cover;{IsEditMode: true; UserRoleData: GalleryUserRoles.Selected})


I have tried the following without success:

  1. Copy the screen and delete the original one (failed same issue)
  2. Create the screen, gallery and subgallery from zero (failed same issue)
  3. Export and import the App again. (failed same issue)

This only happens in production mode. Testing it on the PowerApps Studio everything it's ok.


Anyone has experienced the same?



Community Support
Community Support

Hi @ricardosanchezm ,

Could you describe more clearly about "access it trought  the Web Link or the phone/tablet I cannot access the user role edit screen"?

Did you just copy the web link in browser to run the app?

I suggest you run it in PowerApps studio.



Did you share the app with others?

Only if user has permission to this app could run this app.


I also suggest you clear your browser's cache, update it to the latest version and try again.

Also, please check whether your system meet the requirements:

You also need to be in a good condition of network.

If your problem still exists, I suggest you ask for help here:





Best regards,


Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yutliu-msft ,

Yes, I have test everything as you describe in your comments but nothing works. I'm going to pick up a ticket in the link you have provided me.


Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.


New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,578)