cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dncldrn06
New Member

network error when using patch function the requested operation is invalid

Hi Everyone,

 

I am trying to build my first app and I am stuck on updating function of the form. The process is that when I select an entry on the gallery and click the Update Training button (refer on the screenshot) it will go to the update screen and form, but when I click the button with patch function an error shows that " network error when using patch function the requested operation is invalid".

 

Here is my code on the button for updating:

 

Patch(
'Training Tracker - DMC',
gal_ViewTraining.Selected,
{
'Name (Title)': txt_UpdateFullName,
'GPN #': txt_UpdateGPN,
Counselor: txt_UpdateCounselor,
'Date of Completion': dp_UpdateCompletionDate.SelectedDate,
Deadline: dp_UpdateDeadline.SelectedDate
}
)

 

I already searched same error message but it does not match my issue. I also have a form for adding entry it has same fields and same data source and it does not get that error message.

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
RodCha
Resolver II
Resolver II

Add this to the button where the 'Form' is:

SubmitForm(YourFormNameHere); ResetForm(YourFormNameHere); Back()

View solution in original post

4 REPLIES 4
RodCha
Resolver II
Resolver II

Do you have any screenshot of your work? (Regarding the error)

And just to make sure, you are selecting the item from the 'Gallery' than goes to another screen with the 'Form', and after that you want to use a 'Button' to update your data.

This is the gallery,

 

image.png

 

 

and when i click the update training button, this the draft form i created

 

dncldrn06_0-1669955236358.png

 

then the button is the update, that is where i get the error.

RodCha
Resolver II
Resolver II

Add this to the button where the 'Form' is:

SubmitForm(YourFormNameHere); ResetForm(YourFormNameHere); Back()

Hi RodCha,

 

The update is happening now but I dont know why the error message is still there. I also checked the SP list connected and it is also being updated as well. So I think I can close this topic now. Thank you again

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,708)