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 / Dropdown in Offline mo...
Power Apps
Answered

Dropdown in Offline mode doubles LoadData values

(1) ShareShare
ReportReport
Posted on by 7

Hi Eveyone,

 

I am building an app where to start an inspection you must select a client form a dropdown.
My app uses SaveData on app start to save Clients data to local storage in case the device goes offline during inspection.
It does work in offline mode but the dropdown shows each client twice.
Any help would be appreciated
here is my code
App onStart()

 

If(Connection.Connected,
ClearCollect(
offlineClients,
Clients
);
SaveData( offlineClients, "offlineClients"); LoadData(offlineClients, "offlineClients"),

LoadData(offlineClients, "offlineClients")
);

 


clientDropdown 

 

If(Connection.Connected, Clients, offlineClients)

 

 

 

Categories:
  • erlycrf Profile Picture
    Microsoft Employee on at

    Hello @GT81 

    Thanks for bringing this to our attention, this definitely looks like an odd behavior, but I think for this particular scenario a support request will be the best next steps as additional testing might be required, if you submit it, make sure to attach a copy from the App to facilitate the initial investigation.

    You can also refer that incident to this post, so once the ticket it's resolved the resolution can benefit additional users that might face similar issue.

    Thanks.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @GT81 

    You don't need the first LoadData function. That's what is adding the double ups. LoadData() 'appends' data to a collection so acts like a Collect() function. 

     

    See here

     

    The loaded data will be appended to the collection. Use the Clear function before calling LoadData if you want to start with an empty collection.

     

    What your code is doing is (when online);

    1. Creates collection of Clients

    2. Saves that collection to the device

    3. Appends that same collection to the bottom of the Saved collection 

     

    You should always run Clear(collectionName) before using LoadData just to be sure you start with a fresh / single count of your data.

     

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard