cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
panterra
Advocate III
Advocate III

PowerApps Build 2.0.791 - 2.0.795 - There was a Problem Loading Your Data

I have published builds of our PowerApp using 2.0.791 and 2.0.795 and started getting an error in the stock splash screen. 

 

This error was not present on builds relesaed with PowerApps 2.0.762.  I belive I have isolated the issue to the app's OnStart event (more details below).  

 

 

Problem Loading Data.png

 

This exact code is working fine on builds published 2.0.762.  However, this code is generating errors in build 2.0.791.  When I remove this code and publish it using build 2.0.762, the error goes away.  

 

Has anyone seen similar issues?  Or does anyone from the community / product team have any ideas? 

 

I tried to republish using an older version of the studio referenced here, but am unable to open our Development environment using it. 

 

 

Clear(collSessionAudio);
LoadData(collSessionAudio, "ocollSessionAudio", true);
LoadData(collPlansMaster, "ocollPlansMaster", true);
Clear(collPreferences);
LoadData(collPreferences, "ocollPreferences", true);
If(CountRows(collPreferences) > 0, Set(searchFilterVal, LookUp(collPreferences, myFilter<>"", myFilter) ), Set(searchFilterVal, ""));

 

 

30 REPLIES 30

It seems that we are seeing similar inconsistencies as well.  We've seen that doing a full uninstall / re-install of PowerApps has a positive affect on the random crashing.

I have a question:

Besides the error message, do the app work properly, or some other event happens, like crashing?

We have also seen the app fully crash when it attempts to load.  In these cases, we found that re-installing PowerApps helped.  

 

I believe the issue is related to loading collections of cached data using LoadData() that are empty in the App Start event. 

 

From what I understand, the error message 'There was a Problem Loading Your Data' will appear:

- When you call LoadData() when the cache doesn’t exist

- When SaveData() is used on an empty collection

I can probably check to see if the collection is empty before trying to save it to the device, but I'm not sure how to check to see if data exists on the device before trying to load it into a local collection. Any ideas?

That's the same issue I've been struggling with.  I was wondering this: 

  • The overload on the LoadData() function seems to be able to handle missing files, but what if we are seeing this error because we are loading the file, but the collection is empty or was not initialized in the previous session where it was saved?

I am calling SaveData() when the user exists a particular screen.  I'm not checking to see if they have loaded the collection before calling SaveData().  My suspicion is that if the the collection is empty and it is saved, the error occurs when it is loaded again.  I'll test this out and let you know what I find. 

The other thought is that if your suspicion proves correct, how do we clear out any affected files from the device?   Even if I use IsEmpty to check the collection for data before saving the file to the device going forward, there might be a file already on the device from a previous session that was saved from an empty collection.

 

I'm using the overload for the LoadData function already to ignore errors if the file doesn't exist.   So this scenario seems to be covered.  

 

 

Agreed.  I also think that there may be a need for caching empty collections. 

 

For example, we are caching Audio files that are collected while our app is disconnected.  These files are held in the cached collection and then removed after they have been synced.  We wouldn't want to keep a record of the these audio files in the collection after they are synced.

 

I am also wondering if we will still see the error while trying to load a collection that is empty due to Remove() or RemoveIf() calls vs. one that is empty due to a Clear().  

I built a new app to test this out with - using the desktop designer version 2.0.820

 

https://imgur.com/a/ZPlD8

 

  • The App calls LoadData() in the App's OnStart event
    • LoadData(collItems, "ocollItems", true)
    • The app shows an error whenever LoadData() is called until SaveData() has been called on the same collection 
  • The error does not appear again in subsequent loads if the collection has to be cached ( using SaveData() ) at least once 
    • I tried caching an empty collection using Clear() and RemoveIf(), then calling SaveData() on the collection.  Calling LoadData() on the empty collection that has been cached does not result in an error.

 

Povilas
Regular Visitor

I can also confirm that this bug is still not fixed even in 2.0.820 version! Whenever calling LoadData() with ignore errors parameter the error is still shown.

Scenario:

Call LoadData() with true value for ignore errors parameter on a file that was not saved before (no SaveData() called).

Expected - no error is shown to the user.

Actual result - error "There was a problem loading your data" is displayed... 

How long can fixing something that was working fine in earlier versions of PowerApps can take? It is slready almost a month..

 

@claudiosvcc this error does not cause the app to crash, at least in my case

So what we have learned is the following:

1. LoadData () when used with the overload of "true" to avoid errors when the file does not exist is just broken (and is the real cause of the error).  It is displaying the file-does-not-exist error even when using the "true" value to suppress it.  We are waiting for Microsoft to fix this to avoid the error in the future.

2. The state of the collection does not matter when using SaveData ().  Saving an empty collection to the device does not cause the error with LoadData, but the opposite is actually true that the LoadData function will no longer error since the file exists (even if it is empty).

3. There may be some work-around to use SaveData to create the offline files to avoid subsequent errors with LoadData.  If the files exist, then the LoadData function will not error.

4.  The error is not impacting the functionality of the application.   If the application is unable to Load the data from the device because the file does not exist, the rest of the application will work normally.

 

Now it seems that I may need to re-think my logic based on #3, so that I can create the files on the device before needing to use them (to avoid subsequent errors).  This I have to weigh vs the likelihood that Microsoft will fix the LoadData bug soon.  😞

 

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,659)