Problem: We recently had a few canvas apps start behaving strangely where our menu which used a SharePoint list to populate a collection on the App onStart() was not working on all pages with the exception of the Home page. This only happened to the published applications, in edit and play mode, it worked perfectly.
Initial Hypothesis: Looking at the logs between the "edit and play" and the "Publish" was showing hundreds to transactions saying something along the lines of "text is blank and therefore will be zero". When I set the start page to a different page and run the "Published " app, the first page works but not the other pages navigation. Looking at the difference in the logs, it appears that the collection is seen as empty on subsequent page loads only when running in "Published" mode.
Resolution: I don't remember turning the "delay load" feature on, it only showed up on the 22 May 2024 (or at least we noticed it), I merely turn off the feature and all the affected applications started working again.
Thoughts: The behavior bug must have been caused by either upgrade in Canvas App platform version, or the feature being automatically turn on. If you get an issue, turn off the experimental feature.
0 comments:
Post a Comment