Forum Discussion
How do I stop SharePoint customized canvas app newform.aspx from loading first record?
I recently noticed that a customized PowerApp Canvas App will load the first record of a list instead of presenting the user with the new form as expected. I suspect it has to do with the default SharePointForm->FormScreen->item logic:
If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),First([@<list name>]),SharePointIntegration.Selected)
But if I change the logic to remove the "First" item, it will still load the first record.
It's random and refreshing the browser is a workaround which will correctly load the "newform." I can replicate the issue on any site collection, in any customized form. The form doesn't even need to have any advanced customization to replicate. Just publishing and replacing the SharePoint form with an unaltered Canvas App causes the issue.
Btw - saving the form with the "First" record will alter the record and does not create a new item.
- Microsoft fix:
September 28, 2021 2:26 PM
Current status: Following our internal testing and validation, we've deployed our code fix which is designed to remediate impact. We're monitoring the deployment and expecting for it to complete and resolve the impact by Tuesday, September 28, 2021, at approximately 10:30 PM UTC.
Scope of impact: Any user attempting to load custom Power Apps forms via SharePoint Online may experience impact.
Estimated time to resolve: Within the next three to four hours. Root cause: A frame reload is occurring midway through the data communication process between Power Apps and SharePoint Online, resulting in intermittent impact.
Next update by: Tuesday, September 28, 2021, 6:30 PM (10:30 PM UTC)
- Justin-GOVBrass ContributorMicrosoft fix:
September 28, 2021 2:26 PM
Current status: Following our internal testing and validation, we've deployed our code fix which is designed to remediate impact. We're monitoring the deployment and expecting for it to complete and resolve the impact by Tuesday, September 28, 2021, at approximately 10:30 PM UTC.
Scope of impact: Any user attempting to load custom Power Apps forms via SharePoint Online may experience impact.
Estimated time to resolve: Within the next three to four hours. Root cause: A frame reload is occurring midway through the data communication process between Power Apps and SharePoint Online, resulting in intermittent impact.
Next update by: Tuesday, September 28, 2021, 6:30 PM (10:30 PM UTC)- Mike DemsterMicrosoftSomething that could help users self-mitigate issues in the SharePoint Integration component is enabling custom forms to access URL parameters. Not sure if this is feasible, but would have been very useful.
- Justin-GOVBrass Contributor
Personal update: It only is our tenant. The behavior is exhibited on all forms no matter how complex (or not). I would be curious to know if any other tenants have this behavior, especially GCC tenants.
I tried to replicate on a developer tenant and could not get this bug. - Justin-GOVBrass ContributorIt appears this is a Microsoft bug. they have put out an advisory which I hope is solved and thus solves this issue.
From Microsoft Message Center: "Users' custom Power Apps forms are loading incorrect items intermittently in SharePoint Online SP287734
September 27, 2021 2:10 PM
Title: Users' custom Power Apps forms are loading incorrect items intermittently in SharePoint Online
User Impact: Users' custom Power Apps forms are loading incorrect items intermittently in SharePoint Online.
More info: Users may experience temporary alleviation by refreshing the page, and, if linked to DispForm.aspx, may also bypass the issue by putting the form into edit mode, which can be done by clicking the 'edit all' button.
Additionally, users can experience alleviation by linking to the list instead of the item. When the list is opened and items are selected, they load as expected.
Current status: We're analyzing case details to diagnose the source of impact so we can identify a remediation strategy.
Scope of impact: Any user attempting to load custom Power Apps forms via SharePoint Online may experience impact.
Next update by: Monday, September 27, 2021, 3:30 PM (7:30 PM UTC)"