web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Remove a row from a co...
Power Apps
Answered

Remove a row from a collection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I want to delete a row in my excel table with this: Remove(myExcelTable; ThisItem) The button to do that is in the gallery.

But why does that don't work? That here also don't work: RemoveIf(Bestellungen; true)

 

The error: No line with id 5 was found.

Categories:
  • RyanVH Profile Picture
    145 on at

    I'm not sure if you posted a typo but the correct syntax would be

     

    Remove(myExcelTable, ThisItem)

     

     

    use , instead of ;

    But that probably won't be your problem because you would get an error.

     

    I just tried it on an app myself and it worked perfectly. 

     

    Make sure the excel file isn't open anywhere. That could give problems too

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I from Germany, so I have to use ; instead of ,

  • WarrenBelz Profile Picture
    156,545 Most Valuable Professional on at

    @Anonymous ,

    Does your Excel record have a unique identifier?

    If so you can try

    RemoveIf(
     ExcelTable;
     Identifier=ThisItem.Identifier
    )

    You might also have a look at this video from Shane Young @Shanescows and consider a SharePoint alternative.

     

    Please click Accept as solution 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 Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I cannot use sharepoint, my Admin delete everything in Sharepoint.

  • WarrenBelz Profile Picture
    156,545 Most Valuable Professional on at

    @Anonymous ,

    Yes, I remember that now (you need a discussion with your Admin - they should support the business, not dictate to it) - you need a unique identifier in your Excel record, then it will work.

     

    Please click Accept as solution 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 Thumbs Up.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    Do you want to remove a record once click the button within the Gallery?

    Could you please share a bit more about the scenario?

    I have made a test and the situation is confirmed on my side.

    Remove(Table1,ThisItem)

    Here is my Gallery configuration:GIF005.gif

    Please check if it helps.

    Regards,

    Qi

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard