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 / Update Button not Working
Power Apps
Answered

Update Button not Working

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am currently creating an app that is attached to a Sharepoint. There are two main groups of people using this app and I have created slightly different screens that they can access within this app. One group has a home screen that displays only forms they have submitted (and they do not have access to the data in the Sharepoint). The other group has a home screen that displays all submitted forms.

 

I want both of these groups to have access to an editable version of any form that is available to them (i.e. the first group can edit any form they have previously submitted). To do this so that they will not end up on the other end's home screen, I have created two edit/view screens that do the same thing but navigate back to their respective home screens. On both of these edit forms the update button is not working. I have a SubmitForm function in the OnSelect section in both and when typing in the formula I get no errors; when I go to test the app though and edit a form from either page I get the attached error. It comes up as a runtime error and I then get the error underline under my SubmitForm function. Any reason this error appears?

Annotation 2019-06-17 135552.png
Categories:
  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    Can ou share what the Forms look like?  The error would suggest that you are trying to save a value to a DateTime column in SharePoint, but aren't submitting a valid DateTime value.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes. Attached is what my form looks like... also that is what I suspected the error meant but they were all initially pulled to be data cards from the columns in my Sharepoint. Also I had this app connected to an Excel before this and the update function worked then but now that it is connected to a Sharepoint I am getting issues.

    editform2.png
    editform.png
  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    One of the differences between Excel and SharePoint is that Excel will accept just the Date portion of a DateTime as valid.  SharePoint expects both the Date and the Time.  I would check to make sure you are sending both when you save the record if you started the forms with an Excel Data source.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    How can I make sure that it is sending both values? My form does not request the time and that works when submitting a new form but not for the edit.... 

  • TheRobRush Profile Picture
    11,128 Moderator on at
    You check your sharepoint lists column settings to remove the time portion? You can do it with a single button click. Or alternatively set its formula to something like =TEXT(ParentDate,”dd Mmm, yyyy”)

    Side note, once you update the column to date only you MAY have to regenerate your forms in powerapps as they can be finicky when a source changes
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @TheRobRush  so my columns are formatted to be date only and I have updated my forms but am still getting the error. Any other reason it may not be working?

  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at
    Did you try to manually edit the form? I find its easier to just delete the form, refresh the data source, then readd the form and set it up again. Something about the date time card in the forms is really tempermental about source format changes.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I will try this when I next work on the app. Thanks!

  • TheRobRush Profile Picture
    11,128 Moderator on at
    Did you have any luck fixing your issue?
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @TheRobRush Yes! I deleted and re-added the date time datacards and that worked!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard