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

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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard