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 / Default value from SP ...
Power Apps
Suggested Answer

Default value from SP List not showing in App, only in Edit or Preview mode

(1) ShareShare
ReportReport
Posted on by 234
Hello,
 
This only happens to some fields. Any help or tips is appreciated 🙏
 
In edit mode it retrieves the data from the collection, which is retrieved from Sharepoint.
 
 
This is also true for another text input field:
 
 
But when I load the app, which is used by others, it doesn't display the stored information:
 
 
 
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,452 Super User 2025 Season 2 on at
     
    Based on your code it appears at least that its blank because there is no data there.
     
    So what needs to happen is to understand how that data gets populated. Then you need a way to be a way to validate if there is actual data in the Collection itself.
     
    and if not, what would be the scenarios that data would NOT be loaded into those fields in the Collection. 
     
    Where does it come from? How does the user determine that?
    Is the user using it in another environment than the environment you are using for Building / Testing, so is it possible that data is NOT in that environment?
     
    If its the same environment and YOU run the app in Published mode, do you see the data and its only users who cannot?
     
    My suggestion would be to put Trace Statements in so you can verify the data itself. Because if its not loading the data, which appears it is blank, then you have to go further back to see where it gets filled and see why its not there initially.
     
    If you put Trace Statements in so you can write the Data to Live Monitor. If you can reproduce the problem yourself, then its easier. If you cannot reproduce it.. then maybe its a data issue (security.role.just something not connected right)
     
    If you add trace statements
    Trace("Collection Value = " & yourvaluehere) if it doesn't print anything then its blank. to find out do this
     
    Please follow these steps to look into Live Monitor for possible errors

    1. Please go to PowerApps.com in the environment published
    2. Please click the Apps menu option on the left
    3. Find your App in the list and Click the ... at the end
    4. Click Details ==> Live Monitor
    5. Once it opens up, click Play Published App
    6. When that Tab Opens, Play your App, Cause the issue
    7. Go back to Live Monitor Tab
    8. On the right side, click the Properties (its vertical) to open the right side window
    9. In the Filter (Top Right) Type Trace
    --See if you have any Messages you can get the values to verify if there is data there are not and if not you know why there is nothing in the
    fields

    If this shows nothing please come back here.

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
     
     
  • Johnolnes Profile Picture
    234 on at
    Hello Michael,
     
    and thanks for taking the time to try to help me on this matter.
     
    I don't believe the issue is so severe, and I can confirm that the data is there by looking in the corresponding Share Point list.
     
    I think the issue is related to the order of data loading, meaning that one or more fields reset the loaded data in their "OnChange" property field. T
     
    I will try to experiment with my suspicion, and I will definitely look into the Trace() function. Thanks for that!
     
     
     
     
     
  • Michael E. Gernaey Profile Picture
    53,452 Super User 2025 Season 2 on at
     
    I was not saying you dont have data in the back end, I was saying you had no data in the Collection. Which seems is accurate, if you are using OnChange to populate them.
     
    But yes, Just put the Trace statements in and you will see if you code is getting called, and if so it you are putting data in the collection etc etc.

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