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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Remove is not working
Power Apps
Unanswered

Remove is not working

(0) ShareShare
ReportReport
Posted on by 102

Hi,

 

I am receiving strange error from Remove function.

I have sharepoint list, ListEmp.

TitleEmployeeJob_typeJob_profileLevelSupervisorStatusEmpStatusSupCompliance
"Map"DulatEngCivilIIIDulatReviewReview41

 

I have gallery, which shows this list with no filtering or sorting, GalEmp.

EmployeeJob_typeJob_profileLevelSupervisorStatusEmpStatusSup
DulatEngCivilIIIDulatReviewReview

 

When I try to make function on button.

Remove(ListEmp, GalEmp.Selected)

It gives me the following error:

Dulat_0-1693286787978.png

 

I cannot figure out what is wrong here. 

Can someone help me?

Thanks in Advance!

Categories:
I have the same question (0)
  • Verified answer
    v-hanytian-msft Profile Picture
    Microsoft Employee on at
    Re: Remove is not working

    Hi @Dulat ,

    May I ask what DataSource you have used?

    If it is the SharePoint List, Please try this:

     

    Remove(ListEmp,LookUp(ListEmp,GalEmp.Selected.ID = ID))

     


    Hope this will help you,

    Best Regards,
    Tina

  • Dulat Profile Picture
    102 on at
    Re: Remove is not working

    @v-hanytian-msft 

    Yes, my datasource is sharepoint list.

    Thanks a lot it worked.

    But still, very unclear why original way didn't work...

  • timl Profile Picture
    36,319 Super User 2025 Season 2 on at
    Re: Remove is not working

    @Dulat 

    >> But still, very unclear why original way didn't work...

    If you added a control (eg a label, text input control) inside GalEmp and named it 'Employee', that would be a possible cause of your original error since it clashes with the column name.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard