Solved! Go to Solution.
I started looking through and testing a few of the Advanced Settings options. Turns out, once I turned off the "Delayed Load", the issue went away immediately. Not only did this solve the issue of it loading the wrong information the first time, it also flipped to the header screen without the 5-10 second delay.
I had this happen last year and was able to adapt my own application to fix the issue. It related to when/how I "defined" variables within the application. It may also have related to me cutting/pasting full pages across applications. What my own solution involved me going through the Variables view and determining if/when they were being set within my application. Once I cleaned this up a bit, the "bug" went away.
From my perspective, it appeared to be that I'd somehow been allowed to create variable Definitions in different screens that contradicted each other. This could be relating to the screen cut/paste as well as some sloppy coding on my part.
While you're waiting on an official answer, you might consider reviewing when that particular variable is being initialized/defined and where it being used to ensure it matches how you believe it is being populated/used.
Thanks @jhall. I'll take a look and see if there is anything odd with our variables. But we aren't using all that many and those that we have, have been in place for weeks. The main thing we are using, espeically for populating screen info is the "ThisItem" which is based on the item context.
If I go to the form that is currently working, make no changes, and perform as "Save As", which updates the PowerApps version, it then breaks. If I leave the PowerApps in the current version, there are no issues. It is possible that may the update exposed an inconsistency on our part, but I find that a little odd. Especially since this only happens on the first selection. When I make subsequent selections, the "ThisItem" is populated correctly and the forms screens load as they should.
Actually, that's what triggered my memory of my own issue. In the prior MS version, everything had worked perfectly. Once I fixed the code that I really never should have been allowed to create, it resolved the issue when running under the newer release.
Mine appeared similarly in that the variable didn't appear to initialize properly. If I recall, it was also when using a dropdown to select/display values relating to a particular entry. User would pick item from list, fields all updated the Text value using ThisItem.property.value. Once I started picking it would seem to work, but initial values would not display properly.
Ah, good to know. Thanks! I'll see what I can find.
There wasn't a variable that was jumping out at me, but I know our Gallery List had a warning on the data items that our complex formula might not work on large datasets. But we ignored that because it was working, even though I think we have around 180 SharePoint columns.
As you can see below, the current formula that handles filtering via global variables (from query string params) and sorting and searching is quite a large amount.
SortByColumns(
Search(
If(vRecID > 0,
Filter(CustomerMaster_v3, ID=vRecID),
If(vPageName="AccountOwner",
Filter(CustomerMaster_v3, 'Account Owner'.DisplayName=User().FullName And 'Work Flow Status'<>"COMPLETED"),
If(vStatus="",
Filter(CustomerMaster_v3, 'Work Flow Status'<>"COMPLETED"),
If(vStatus="NotStarted",
Filter(CustomerMaster_v3, 'Work Flow Status'="NotStarted" || StartsWith('Work Flow Status',"Rejected")),
If(vStatus="AwaitingCMApproval",
Filter(CustomerMaster_v3, 'Work Flow Status'="AwaitingCMApproval" || StartsWith('Work Flow Status',"PricingUpdated")),
Filter(CustomerMaster_v3, 'Work Flow Status'=vStatus)
)
)
)
)
),
clSearchBox.Text,
"Record_x0020_ID",
"Bill_x002d_To_x0020__x002d__x0021",
"Ship_x002d_To_x0020__x002d__x0028"
),
"Bill_x002d_To_x0020__x002d__x0021", If(SortDescending1, Descending, Ascending),
"Ship_x002d_To_x0020__x002d__x0028", If(SortDescending1, Descending, Ascending)
)
Once I streamlined it by taking out some of the filter options and got rid of the warning symbol. Then it started working again. Ug. Now to figure out how best to filter by parameters but not overwhelm the system. I might have to build duplicate gallary screens to hand specific parameters.
Will wait to see what we hear from Microsoft before flagging an answer.
@JFentress Can you describe how the gallery, dropdown, form, and the different screens are related to one another? For example, is the dropdown inside the gallery, or which formulas are used in Dropdown.OnChange and Form.Item.
@tahoon- The dropdown screen selector is part of the gallery. OnChange, it takes the text selected to call a Navigate function to the appropriate screen. In the example below, I choose "Header" and it takes me to the Header screen.
In case you didn't get a chance to read my previous post. We did have a warning on the Data Items for the Gallery where it said there might be complications for large datasets. However, it was/is working just fine on the previous version of PowerApps. But the current version apparently operates a little different.
For testing, once I removed a bunch of the filters and was able to get rid of the warning, it started playing nice. So we are in the process of figuring out a different way to handle loading items into the Gallery as that currently seems to be the trigger.
Home Screen
Header Screen
I started looking through and testing a few of the Advanced Settings options. Turns out, once I turned off the "Delayed Load", the issue went away immediately. Not only did this solve the issue of it loading the wrong information the first time, it also flipped to the header screen without the 5-10 second delay.
Thanks for all the helpful screenshots! Glad you managed to find a workaround. I will see if someone is aware of similar issues with delayed loading.
User | Count |
---|---|
138 | |
132 | |
75 | |
74 | |
73 |
User | Count |
---|---|
206 | |
195 | |
70 | |
59 | |
52 |