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 / Network Error using re...
Power Apps
Answered

Network Error using remove function. Item not found – PowerApps, SharePoint List

(0) ShareShare
ReportReport
Posted on by 10

I know the issue (see end), but do not know how to solve or the best workaround.

 

I will try to provide as much information as possible. (I was following this tutorial "Editable Grid in Power Apps" by Reza Dorrani)

 

Canvas App InterfaceCanvas App Interface 

It is connected to SharePoint List for data source.

High Level Data DesignHigh Level Data Design

 

If I follow the steps below, it gives me an error (error message in Title):

- Edit in Grid View

- Add a New Item (which add the item to 'GridDataCol')

 

 

 

//OnSelect of New Item
Set(
 varNumber,
 varNumber + 1
);
Collect(
 DataGridCol,
 Patch(
 varNewRecord,
 {
 ID: varNumber
 }
 )
);

 

 

 

- Delete (click trash icon - see image above) the newly created item without saving to collection/source first (which add the item to 'DeleteCol')

 

 

 

// OnSelect of Trash icon, If the item exists in DataGrid Col add item to Delete collection and then remove
If(
 CountRows(
 Filter(
 DataGridCol,
 ID = ThisItem.ID
 )
 ) > 0,
 Collect(
 DeleteCol,
 ThisItem
 );
 Remove(
 DataGridCol,
 ThisItem
 )
);

 

 

 

- SaveChanges/Exit Grid View (tries to remove the new item, present in 'DeleteCol', from the source - SharePoint List)

 

 

 

// OnSelect of Exit/Save button
Patch(
 'Data',
 UpdateIf(
 DataGridCol,
 Created = Blank(),
 {ID: Blank()}
 )
);
Remove(
 'Data',
 DeleteCol
);
Clear(DeleteCol);
Notify(
 "Data Updated!",
 NotificationType.Success,2000
);

 

 

 

However, technically, the item is not present in the SharePoint list, resulting in a popup error stating ' Network Error using remove function. Item not found ' I could verify if the item exists in the Data Source (SharePoint List) every time, but that would be resource-intensive.

 

Is there a more efficient workaround/fix?

 

Any help is appreciated, thanks.

 

 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @Gurkirat_K,

     

    You could leave the ID blank and filter out the empty IDs - which are rows created within the app that are not yet patched to the List. Alternatively, you could use other system columns (e.g. Created) to filter out the in-memory rows:

     

    Remove(
     'Data',
     Filter(
     DeleteCol,
     Created <> Blank()
     )
    );

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

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

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard