cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Impactful Individual
Impactful Individual

Offline App Error on First Run

This might be a question that gets asked quite a bit so apologies if so.

 

I'm building an app that needs offline capabilities. On App start I load a bunch of collections from disk. This is all fine except the first time someone opens the app they get a red error at the top because one or more of the files don't exist yet.

 

Most of them I can work around by evaluating Connection.Connected (which will always be true on first run) and creating the collections from SharePoint then saving them to disk, but one of the files contains data that I can't simply overwrite if the device happens to be online (I have to load it then patch the SP list with its contents)

 

Is there a way of suppressing these errors? The app works perfectly, and once the user has actually used the app once the files are created so the error is history, but that first run error is annoying.

1 ACCEPTED SOLUTION

Accepted Solutions
Impactful Individual
Impactful Individual

Ok got it. LoadData(collection,"file",true)

View solution in original post

1 REPLY 1
Impactful Individual
Impactful Individual

Ok got it. LoadData(collection,"file",true)

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (29,703)