Showing results for 
Search instead for 
Did you mean: 
Super User
Super User

Unreliable results with offline functionality (SaveData(), LoadData())

I'm testing an offline-capable app. The results are hit-and-miss.


- After running SaveData() on a collection, IF I run an Exit() function OR close the app (iPhone home button, swipe up) OR turn the phone off, the local file seems to have rows in it, but no data is patched to my Data Source.

- The only way I can seem to Patch correctly is when I leave the app open, go to iPhone settings and turn off airplane mode. Then go back to the app without ever formally closing it.


- Sometimes (can't find a pattern) when turning airplane mode ON (no connectivity), the list of apps in the PowerApps container app is empty. 

- Sometimes there are a couple listed, but not the one I want to test!

- Doesn't matter if I "Clear Cache", sign out/in, click "All Apps", search for the app... its gone when in airplane mode... this makes it very difficult to prove functionality. 

Has anyone else seen these symptoms or am I the only one?

Thank you

Super User
Super User

Re: Unreliable results with offline functionality (SaveData(), LoadData())

Hi @ericonline 

I think Example2 looks like a long standing problem I had with the Windows Store App version of the PowerApp player (Apps not appearing when offline). AFAIK the problem was never resolved and now we simply advise clients that offline mode is not available for Windows devices. Perhaps the issue has now worked its way into the iOS version as well. 😞

I have an App using offline mode in active use but I think the users are all on Android (which seems to be working for the moment). If you pin the App to the homescreen while you are online does it then work to start the App when offline?

Example1 - in my offline-enabled App I have the user actively hit a button to perform the sync (button only visible if connected) which simply 'collects' from the Local Collection (re-populated whenever the App is opened using LoadData) into the datasource (for new records) or uses a ForAll to Patch modified records and Remove deleted records (I use a flag in the local collection to mark if something is new, modified or deleted).

Hope that makes sense - more info on the technique I use here: 

Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,783)