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 / LoadData/ SaveData not...
Power Apps
Unanswered

LoadData/ SaveData not working on iOS

(0) ShareShare
ReportReport
Posted on by 73
I am working on an offline backup for an app with SharePoint as its main data source. It's working beautifully on Android, but not at all on iOS. I can see when reviewing the local files on my iPad Mini that it *is* saving the data, but cannot figure out why it will not load there. Any suggestions are welcome & much appreciated! 
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at
    Hi @akl1,
    Can you please share (in Text) all of your LoadData/SaveData/ClearData code and where you are using it.
  • akl1 Profile Picture
    73 on at
    I can, although as I say, it's working perfectly fine on Android & with the Windows desktop client, so I believe the issue is unique to iOS. OnStart property includes:
    Clear(colProjectInventory);
    LoadData(
        colProjectInventory,
        "SavedProjectInventory",
        true
    );
    Gallery with Items colProjectInventory has two button controls that can change the collection (toggling a value up & down), both SaveData as part of their OnSelect:
     
    Button 1: 
     
    Patch(
            colProjectInventory,
            LookUp(
                colProjectInventory,
                ID = ThisItem.ID
            ),
            {'Complete On Site?': true, 'Qty Inventoried': ThisItem.'Qty Inventoried' - 1}
        ),
        Patch(
            colProjectInventory,
            LookUp(
                colProjectInventory,
                ID = ThisItem.ID
            ),
            {'Complete On Site?': false, 'Qty Inventoried': ThisItem.'Qty Inventoried' - 1}
        )
    );  SaveData(colProjectInventory, "SavedProjectInventory");
     
    Button 2:
     
    Patch(
            colProjectInventory,
            LookUp(
                colProjectInventory,
                ID = ThisItem.ID
            ),
            {'Complete On Site?': true, 'Qty Inventoried': ThisItem.'Qty Inventoried' + 1}
        ),
        Patch(
            colProjectInventory,
            LookUp(
                colProjectInventory,
                ID = ThisItem.ID
            ),
            {'Complete On Site?': false, 'Qty Inventoried': ThisItem.'Qty Inventoried' + 1}
        )
    ); SaveData(colProjectInventory, "SavedProjectInventory");  
     
  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at
    Hi @akl1,
    Yes you are correct that the code seems valid. I have used offline functions on iPads for several years without issue (I just tested one now), so cannot offer and "lessons learnt" presently. Is the issue with a number of devices or just one ? Also if you put a label on the screen with 
    CountRows(colProjectInventory)
    directly after start, do you see any data ?
  • akl1 Profile Picture
    73 on at
    Thanks for the tip on using CountRows() on the home page. The problem seems to be isolated to PowerApps 3.25071.7 & 3.25065.7. When I update to 3.25073.3 & add the CountRows() text, it works on all platforms. 

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