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

Community site session details

Session Id :
Power Apps - Error Handling
Suggested Answer

SaveData not working and not appearing in monitor log

(0) ShareShare
ReportReport
Posted on by 17
Hi, I have an app that allows users to report monthly activities while pulling from a variety of sources.  As they pull in an item, the item is customized and added to a collection. At the end, all the items are patched to the data source. 
A user once complained that he added everything and forgot to submit the data at the end, so I added a "loaddata" which saved the collection to a temp file every time the user proceeded to the next step. The submit button also cleared the temporary file to ensure that it was only storing data that wasn't submitted. If the user accidentally exited without submitting, they could load the data the next time they opened the app via a dedicated button. 
I was testing the app for other functions and noticed that the loaddata didn't work. I tried numerous ways of troubleshooting, etc. the monitoring log did not log any of the savedata or loaddata or cleardata functions, which is very confusing as I believe they should be logged there according to documentation. I created a test button to see if loaddata would work in its own dedicated button and it didn't log it in the monitor. Then I added a "notify" function to that same button, and the notification appeared, but the monitoring log did not record either the notify or the savedata functions. What could be causing this? 
Thank you!
I have the same question (0)
  • WarrenBelz Profile Picture
    152,684 Most Valuable Professional on at
    SaveData not working and not appearing in monitor log
    You did not say where the user was using this - SaveData and LoadData only work on the mobile app, not in browser sessions, so you are not going to see anything in the Monitor when running in a browser.
     
    Please ✅ Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • SaraMeiselman Profile Picture
    17 on at
    SaveData not working and not appearing in monitor log
    I thought that it works in the browser , just not in the authoring mode. It had worked in the past. Are you saying it doesn't work at all in browser? 
    thank you!
  • Suggested answer
    WarrenBelz Profile Picture
    152,684 Most Valuable Professional on at
    SaveData not working and not appearing in monitor log
    Please refer to this document
     

    SaveData, LoadData, and ClearData functions

    Applies to:  Canvas apps

    Saves and reloads a collection from the app host's storage.

    Description

    The SaveData function stores a collection for later use under a name.

    The LoadData function reloads a collection by name that was previously saved with SaveData. You can't use this function to load a collection from another source.

    The ClearData function clears the storage under a specific name or clears all storage associated with the app if no name is provided.

     Note

    • The name shared between SaveData, LoadData, and ClearData is a key, not a file name. It need not be complex as names are unique to each app and there is no danger of name conflict. The name must not contain any of these characters: *".?:\<>|/.
    • SaveData is limited to 1 MB of data for Power Apps running in Teams and in a web browser. There is no fixed limit for Power Apps running in a mobile player but there are practical limits discussed below.
    • Don't use SaveData to store sensitive data in the web since it'll be stored in plain text.

    Use these functions to improve app-startup performance by:

    • Caching data in the App.OnStart formula on a first run.
    • Reloading the local cache on next runs.

    You can also use these functions to add simple offline capabilities to your app.

    You can't use these functions inside a browser when:

    • Authoring the app in Power Apps Studio.

    To test your app, run it in Power Apps Mobile on an iPhone or Android device.

    These functions are limited by the amount of available app memory as they operate on an in-memory collection. Available memory can vary depending on factors such as:

    • The device and operating system.
    • The memory that the Power Apps player uses.
    • Complexity of the app with screens and controls.
     
    Please ✅ Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • WarrenBelz Profile Picture
    152,684 Most Valuable Professional on at
    SaveData not working and not appearing in monitor log
    A quick follow-up to see if you received the answer you were looking for. Happy to assist further if not.
     
    Please ✅ Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like â™¥
    Visit my blog
    Practical Power Apps    LinkedIn   

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 724 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
SebS Profile Picture

SebS 239 Moderator

Last 30 days Overall leaderboard

Featured topics