Hi @AquibAziz,
The error code “0x80040224” indicates that there might be an issue with the data source or the way the deletion is being handled. Here are some steps you can take to resolve this:
Recreate Data Source Connection:
Sometimes, issues can arise due to cached connections or outdated configurations.
Try re-creating the connection to your data source (SharePoint or other) in your PowerApps app.
Delete the existing connection and add it again. Then test if the deletion works as expected.
Check Permissions:
Ensure that you have the necessary permissions to delete records from the data source.
Verify that your account has the appropriate rights to modify data in the SharePoint list or other data source.
Review Deletion Logic:
Double-check the formula or action you’re using to delete records.
If you’re using a button or an icon to trigger the deletion, make sure the OnSelect property contains the correct formula.
Commonly used formula for deleting a selected record from a data table:
Remove(MyDataSource, DataTable1.Selected)
Replace MyDataSource with your actual data source name and DataTable1 with your table control name.
Refresh Data Source:
After deleting fields and modifying the form, refresh your data source.
Sometimes, changes to the schema or structure of the data source can cause issues until the data source is refreshed.
Check for Business Rules or Custom Code:
If you have any custom business rules, plugins, or ISV code associated with the data source, review them.
Ensure that there are no conflicting rules or code that might interfere with record deletion.
Test with a Different Record:
Create a new test record and try to delete it.
If the issue persists, it might be related to the data source configuration or permissions.
Monitor the Error Message:
When you encounter the error, note down any additional details provided in the error message.
Sometimes, specific error messages can give clues about the root cause.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Sunil Pashikanti - Tech Blog: PowerApps