cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
iris_k
Frequent Visitor

SubmitForm fails but executes OnSuccess setting

Hi all,

 

In my Powerapp I use the SubmitForm() function to add a row to a table in an Azure SQL database. In the OnSuccess and OnFailure settings I redirect to different pages.

The app works most of the time but sometimes a user submits the form and the OnSuccess setting is executed, but the row is not added to the SQL table. l don't understand how this is possible. But is it possible to build an extra check to see if the row was successfully inserted or not?

 

I hope someone can help. Please let me know if you need more info.

 

Regards,

Iris

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User
Super User

Its strange but try use this alternative to test:

You can use OnSelect of a Button:

If(IsEmpty(Errors(Datasource)),Notify("Record Has Been Saved Successfully"),
Notify("The Process Could Not Be Completed, Record not Added"))
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

 

View solution in original post

2 REPLIES 2
eka24
Super User
Super User

Its strange but try use this alternative to test:

You can use OnSelect of a Button:

If(IsEmpty(Errors(Datasource)),Notify("Record Has Been Saved Successfully"),
Notify("The Process Could Not Be Completed, Record not Added"))
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

 

iris_k
Frequent Visitor

Thank you very much, I was indeed looking for something like this. 🙂

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.

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 (4,295)