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 - About cache fi...
Power Apps
Unanswered

Error - About cache file not found upon App start

(0) ShareShare
ReportReport
Posted on by 43

Good day humans,

 

I was trying the app I created which is offline capable using LoadData and SaveData. The app works perfectly when I tested it initially.

 

Now, when I tested it on a new device, there is an error message saying that the file is not found or something. I am suspecting what caused it is the LoadData of the cache file since it is not existing on the device yet because it just downloaded the form.

 

Any ideas on how to handle such error for newly installed form that uses LoadData("cache_file")?

 

Cheers!

 

EDIT:

Here is a snippet of the code (with reservations to ensure confidential data won't be disclosed)

The code below is from the OnStart of the App.

 

ResetForm(EditMainForm);

//Loading Offline Data
LoadData(
 coll_Main_Form,
 "cache_MainForm"
);
LoadData(
 coll_SubForm,
 "cache_SubForm"
);

 

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at
    Can you display you formula
  • fpc-kdrosario Profile Picture
    43 on at

    Good day @eka24 ,

     

    I've edited my main post and included a snippet of my code which is from the OnStart of the App.

     

    Cheers!

  • eka24 Profile Picture
    20,925 on at
    If you are loading the data for the first time on a device without the true parameter, it may throw an error. Try this
    //Loading Offline Data
    LoadData(
    coll_Main_Form,
    "cache_MainForm",true
    );
    LoadData(
    coll_SubForm,
    "cache_SubForm",true
    )

    This video explains it further at minute 15:30
    https://youtu.be/Q91CtvIqDR0

    If you like this post, give a thumbs up. Where it solved your issue, Mark as a solution
  • PVosEska Profile Picture
    329 on at

    Please mark @eka24's response as the answer.

     

    Adding the third argument argument as true ignores an empty file.

    LoadData(<Collection>,<Filename>,true)

     

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
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard