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 Function in Gal...
Power Apps
Answered

Remove Function in Gallery ( Invalid Argument)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

I am encountering a problem within the application as I attempt to remove an entire row from the data source (Gsheets) based on a specific value selected in the gallery. I have included a Delete icon, and upon selection, the intention is to delete the entire row from the data source. However, I am receiving an error indicating that the remove function has an invalid argument. Attached is a screenshot displaying the error message.

 

Hit_23_0-1700140404850.png

 

Hit_23_1-1700140427640.png

 

Categories:
I have the same question (0)
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @Hit_23 

     

    Just try this

     

    Select(Parent); Remove(skillsTable,ThisItem)

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Rajkumar_404 

     

    Thank you for your reply. I have tried the same and got the same error.

     

    Hit_23_0-1700141138637.png

     

  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Could you clarify if 'skillsTable' refers to the name of a collection or a SharePoint list?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Rajkumar_404 

     

    I have connected Google Sheets (Data source) and Skill Table (Data Table)

  • Verified answer
    Rajkumar_M Profile Picture
    3,747 Moderator on at

    Try this

     

    Remove(skillsTable,LookUp(skillsTable,ThisItem.Value=Value));

    "However, upon applying this formula, the primary data source data should be deleted."

     

    So you should use collection to avoid this.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Rajkumar_404 

     

    Thank you, Here 

    ThisItem.Value=Value))

    Value refer the Column name , right? 

  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Yes!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Rajkumar_404 . Thank you so much!! It worked!!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard