Forum Discussion
PowerApp form error after SharePoint list column deleted "network error when using patch function"
I have a custom list form created with PowerApps that is not allowing new items to be created after I deleted a column from the list. The column was previously a required field. The error is: "Network error when using Patch function: Field 'x' is required."
I'm not seeing a way to restore that column in the SharePoint list. I'm also not finding any reference to it on the form since it was deleted. Any guidance is greatly appreciated!
Thanks!
- I have been able to get this working again. Probably not the most elegant solution, but I created a new column called "field_1" to match what was in the error. Single line of text and not required. I added that field to the PowerApps list form, published, and confirmed that I could now create a new item successfully. Then removed the field from the form, published, and confirmed that I could create a new form. After that, I deleted the column from the list, once again confirming that I could create new items. It appears that it is cooperating. Wanted to post this workaround here in case anyone else runs into this in the future... hope it saves you some time and frustration! 🙂
- GullettBrianBrass ContributorI was hoping a refresh of the data source for the PowerApps form would do the trick, but unfortunately, the issue persists. Editing items with the form works fine, so as a workaround I am able to create new items directly in the list using the "grid view" and then edit in the form. It seems to only fail when it is a new item using the form, so I'm guessing there's some logic buried in there somewhere, but I haven't found it yet.
- GullettBrianBrass ContributorI have been able to get this working again. Probably not the most elegant solution, but I created a new column called "field_1" to match what was in the error. Single line of text and not required. I added that field to the PowerApps list form, published, and confirmed that I could now create a new item successfully. Then removed the field from the form, published, and confirmed that I could create a new form. After that, I deleted the column from the list, once again confirming that I could create new items. It appears that it is cooperating. Wanted to post this workaround here in case anyone else runs into this in the future... hope it saves you some time and frustration! 🙂
- Thierry_LLCopper Contributor
GullettBrian i have somewhat the same issue, accidentaly got a column deleted (which is still needed) but simply remaking the column isn't fixing it completely.
The powerapp added x0020 to the name and there is now something of a mismatch between the columns and the app. The forms in the app don't work but if i put something in the list manually it does show the result in the app. Nothing else changed in the app (around that specific column)