Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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?

  • Verified answer
    ScablandsKing Profile Picture
    201 on at
    Re: Delete button not working

    With @madlad 's help this solved it

    Remove('NDT Cert Tracker',LookUp('NDT Cert Tracker', ID = galNDT.Selected.ID))
  • ScablandsKing Profile Picture
    201 on at
    Re: Delete button not working

    Thank you!!! Super helpful

  • madlad Profile Picture
    2,637 Super User 2025 Season 1 on at
    Re: Delete button not working

    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! 🙂

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,635 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard