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?
Solved! Go to Solution.
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.
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.
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.
Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.
Check out the winners of the recent 'Can You Solve These?' community challenge!
Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.
Featuring samples like Return to the Workplace and Emergency Response Applications
Features releasing from October 2020 through March 2021