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 / Delete button not working
Power Apps
Answered

Delete button not working

(1) ShareShare
ReportReport
Posted on by 201

I have a form with a delete button, with OnSelect set to:

 

Remove('NDT Cert Tracker',LookUp('NDT Cert Tracker',ID=ThisRecord.ID))

 

When I use it I get the below error message

error.png

What do I need to fix?

Categories:
I have the same question (0)
  • madlad Profile Picture
    2,637 Moderator on at

    Hi!

     

    It looks like here it's having trouble actually retrieving the item- indicating that this may be in the LookUp, not the entire Remove. 

     

    Here you have: "LookUp('NDT Cert Tracker', ID = ThisRecord.ID)"

    When you use "ThisRecord" like this, it is also referencing the ID column. Since the LookUp doesn't actually have any values to compare, it throws an error.

     

    You'll need to replace "ThisRecord.ID" with something which returns a value. Could be a variable, a gallery selection, ect. Specifics for this depend on the rest of your app.

     

     

    Hope this helps! 🙂

  • ScablandsKing Profile Picture
    201 on at

    Thank you!!! Super helpful

  • Verified answer
    ScablandsKing Profile Picture
    201 on at

    With @madlad 's help this solved it

    Remove('NDT Cert Tracker',LookUp('NDT Cert Tracker', ID = galNDT.Selected.ID))

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard