web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / "Error when trying to ...
Power Apps
Unanswered

"Error when trying to retrieve data from the network" - Only on Mobile with dataverse offline.

(1) ShareShare
ReportReport
Posted on by 7

I developed an app with dataverse as database hoping that I could use it offline.

I'm using 5 different tables, only 3 of them I use to "patch" new data into the tables using the app. 


The tables ans the app are set to work offline. The app in the browser works fine, but on mobile, in some screens, I'm getting this "Error when trying to retrieve data from the network".

 

Any thoughts?

Categories:
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @pipanebo 
    Other than the newer offline-first automatic way in preview (for Canvas Apps using Dataverse data source only)

     Mobile offline for canvas apps (preview) 
    it usually doesn't work automatically just out of the box like that unless you set up all of your formulas in a really specific way to make your canvas app offline capable.
    Try to check on this guide here.

    Use Connection.Connected to decide when to use the offline saved / loaded data, and when to use the data source directly.

     

    Even when using the Dataverse automatic offline-first way in preview, to the extent it doesn't support some specific features, you may want to use this specific way too for those pieces. For example, certain Power Fx functions are not supported with the newer automatic offline-first access feature for Dataverse as you may see from the first documentation link above. For example the functions CountRows, Filter / LookUp on LookUp column, First, In, IsBlank, Relate, Search, StartsWith, Sum/Min/Max/Avg and Unrelate are some Power Fx functions which might not work with the automatic offline mode for Dataverse. These may not be the only ones as well and you may want to check further on your side by testing it.

     

    Anywhere you accidentally still use the data source directly in your formula while offline (and where the mobile offline for canvas apps newer way does not support it automatically) can be causing that message. That includes anywhere in any Control, such as a Gallery Control, that may be looking up something from the data source directly that is not in your collection, for example.


    You may need to save data periodically using SaveData while still online, then use LoadData to load it back in whenever you are offline, in this case.

     

    You may want to use a Timer that runs periodically, such as that in myApp Timer Wait Recipe 2023 to help you save data periodically while still online (however, you may want to adjust the formulas, and you may want AutoPause set to false if using a Timer).

     

    If not using a Timer, you may want to periodically save data some other way, such as simply every single time you get the data from the data source when Connection.Connected is true.

    Or check where in your Canvas App the newer mobile offline for canvas apps feature may not be supported or working in your case, and see if you can rewrite the formula(s) in a way that the newer mobile offline for canvas apps can support it instead.

    See if it helps @pipanebo 

  • pipanebo Profile Picture
    7 on at

    Thank you very much for the reply.

    I didn't know about the formulas that isn't supported and I use all of them.

    Using this Connection.Connected function I can use all these functions which isn't supported on the automatic offline-first?

    Saving data periodically is not a problem, the app is intended to work just with one or max 2 phones at the same time. Actually it could work just with a first download when it's online and load all the data after a few hours. If the 2 phones are working simultaneously they would not generate the same information.

     

    Thank you again!

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard