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

Notifications

Announcements

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,923 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,923 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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard