Hi all,
Something is wrong with one of my PowerApps:
What can be done to fix this?
Solved! Go to Solution.
Hi @rimatos,
Thank you for your explanation.
The reason why the admin was not able to raise the ticket is still under investigation by a MS TAM and I asked a MS Partner to raise a ticket for me in his tenant.
Summary:
I started developing a PowerApp that got stuck loading at some point in edit mode as well as in play mode.
I have four (icon) control a part of a custom form in PowerApps. The type of icon (check of cross) and the colour (red or green) of the icon is based on the value of a property of a record. This value can be switched by clicking on the icon. The current state of the four controls was stored in a variable, like this:
If(
varFormEditMode,
Set(
varIcons,
{
needsStretcher: !(varIcons.needsStretcher),
needsExtendedLegrest: varIcons.needsExtendedLegrest,
approvalAutomatically: varIcons.approvalAutomatically,
approvalByNurseOnDuty: varIcons.approvalByNurseOnDuty
}
)
)
When the formula above was added to the OnSelect() of each the icon control (with a small adjustment fear each control). I was able to save and continue to develop the app and use the app in Preview mode to test it functionality and it all worked just fine without any errors. Strangely enough, when the app was saved and closed and when you tried to reopen/edit the app. PowerApps studio got stuck loading. The first time this happened I had to skip 4 previous versions before I was able to restore a functional version. (Every version of the app between 108 and 104 also got stuck during loading the app.) In the process of finding the cause of the issue I came across a lot of strange issues with PowerApps Studio like a greyed out formula bar which was stuck with a colour code of one of the controls. Just because I pasted the code above in the OnSelect() formula. You could still select other controls but the formula bar was still stuck with that colour code. Or nothing on that browser tab would respond any more and you had to close the tab and reopen edit mode of the app. Luckily this also happened during one of the sessions with one of the MS Support Technicians, so they could see I didn’t do anything special for this to happen.
One of the technicians advised me to use a collection instead of a variable. This is the result:
If(
varFormEditMode,
ClearCollect(
colIcons,
{
Name: "needsStretcher",
Value: LookUp(colIcons, Name = "needsStretcher",Value)
},
{
Name: "needsExtendedLegrest",
Value: LookUp(colIcons, Name = "needsExtendedLegrest",Value)
},
{
Name: "approvalAutomatically",
Value: !(LookUp(colIcons, Name = "approvalAutomatically",Value))
},
{
Name: "approvalByNurseOnDuty",
Value: LookUp(colIcons, Name = "approvalByNurseOnDuty",Value)
}
)
)
After replacing all instances of the variable in the formulas with the collection. I was able to save, close and re-edit the app again without any issues.
I informed the tecnical the workaround is working fine and that I would like her to find the root cause of the issue so it can be fixed within PowerApps Studio and to avoid running into this kind of issues (ever) again. This Ticket is still open and the root cause is still under investigation.
Hopefully next time it will all go a bit more easily.
Hi @Power_Robert ,
If this persists, try this if you have no Flows attached
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @WarrenBelz ,
Thank you for your time.
Unfortunately it didn't work. I was able to follow your steps, except for the first one so I had to give the version to import a new name. But it has the same issue.
I just tried to restore a previous version. This one does not start either. This doesn't look too good...
That is no good @Power_Robert ,
Maybe lodge a Support Ticket with Microsoft
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @WarrenBelz ,
Unfortunately I don't have Admin Access. I'll try to send a PM to one of the MS Staff here at the community.
Unfortunately still no solution for the corrupted app. Below some more info:
Sorry to hear that @Power_Robert ,
The fact that older versions do not work (when they did before) is puzzling. This may be a broken data connection.
I am hoping one of the Microsoft Community Support team might assist here @v-bofeng-msft , @v-xida-msft ?
Hi @Power_Robert,
I believe the best course of action would be to contact someone with admin rights to raise the Support Request for you, in order for this to be troubleshooted in depth on our side.
As for the tests as @WarrenBelz suggested. Do you have any other environment which you have access to that you could import the power app? Additionally try and export the older version of the app that you have, and then import it into a different environment to see if it works.
As for the connections do you have any troubles when attempting to create a different app with these same connections?
Regards,
Ricardo
Hi @rimatos,
I finally found a version that worked and this is what I found:
Versions:
Result WinMerge:
Comparison Manifest.json
Comparison json files in app folder:
Great investigation @Power_Robert !
From what I can see there this appears to be related with some images that were changed on both Icons and background image.
It can be that for some reason the images that were introduced could be corrupting your Power App, since if they are not found the App might freeze in attempting to display them in the app. However, at the time being I'm just guessing.
Did any new images were introduced or changed in the app that could cause this?
Regards,
Ricardo
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
208 | |
187 | |
82 | |
54 | |
36 |
User | Count |
---|---|
287 | |
244 | |
119 | |
79 | |
55 |