Showing results for 
Search instead for 
Did you mean: 
Level 8

Potential Bug: Need to delete twice to remove an entry

I have a gallery, and an outside delete button which sends in the ID of the selected row and navigates to a 'Delete' screen for the user to verify they wish to continue.

My OnSelect for the delete button is




Where ListItem is the record sent in.


Trouble is, it seems for everyone that you need to delete it twice before it is actually removed. After this, it then seems that you only need to do this once to delete  an entry, so it is only the initial delete (each time you load the powerapp) that needs to be repeated.


Is this an issue anyone else experiences?

Community Support Team
Community Support Team

Re: Potential Bug: Need to delete twice to remove an entry

Hi @xzDan ,


Do you want to delete the item you select and then nagvigate to the delete screen?

I think you can change your formula expression as : Remove(DataSource,Gallery.Selected);Navigate(deletescreen,ScreenTransition.None);ClearCollect(test1,Gallery1.Selected)         (I use one collection to store the deleted item,and it will show in the deletescreen)

I test ok on my side, the test as next :

Gallery1.Items: '20190301remove an entry'            (‘20190301remove an entry’ is my sp list as datasource)

Add one button and rename if Remove, Remove.OnSelect: Remove('20190301remove an entry',Gallery1.Selected);Navigate(Screen2_deletescreen,ScreenTransition.None);ClearCollect(test1,Gallery1.Selected)







Hope this can be helpful.

Best Regards.


Level 10

Re: Potential Bug: Need to delete twice to remove an entry

Hi @xzDan thanks for posting in the community. Are you still experiencing this issue? Can you advise if the above reply was helpful?


Thank you,



Level 8

Re: Potential Bug: Need to delete twice to remove an entry

Hi @TopShelf-MSFT @v-yuxima-msft 

Sorry for not replying to this.


I can confirm this issue is still present.

The setup:

A gallery with items from a SharePoint list

A delete button outside of the gallery.

Delete button OnSelect:

Navigate(Screen_List_Delete,None,{ListID: Gallery_List.Selected.ID, ListItem: Gallery_List.Selected})

Screen_List_Delete has a button to cancel or to carry on with deleting the entry.


Final Delete OnSelect


The problem:

The first time this is done, nothing happens. I can go to the SharePoint list and see the entry is still there. Upon deleting it again, it now works. Further, deleting any other entry now works on the first time, so it is only the very first entry on a new instance of the app that seems to need to be done twice.


The ID is correct, as on the Screen_List_Delete, I can put a DataTable with Items


And the entry comes up.

Level 10

Re: Potential Bug: Need to delete twice to remove an entry

adding in @anees to review.



Helpful resources


Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,372)