Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

fields data is not updated in SharePoint

(1) ShareShare
ReportReport
Posted on by
We have the Power Apps app where this is using to fill the data from different users ( in different screens ) once user submit button the entire 3 screen data has been updated to SharePoint list but some records data is not updated it shows as a blank fields in list. 
 
 
I want to check as in above formula we updates the all records from past screen but still for some records it is not updating. 
Could you please anyone let me know which error handling will be implemented or other method to do?
Categories:
  • MS.Ragavendar Profile Picture
    2,775 Super User 2025 Season 2 on at
    fields data is not updated in SharePoint
     
    A quick follow-up to see, does the suggestion worked for you or still you were looking for any other approaches or assistance.
     
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
     Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
  • WarrenBelz Profile Picture
    148,894 Most Valuable Professional on at
    fields data is not updated in SharePoint
    Just adding a possible cause - if both of those forms are writing to the same data source with some of the same field/s on the Forms, then whichever is written second will overwrite the data written by the first on the relevant field/s.
  • Suggested answer
    MS.Ragavendar Profile Picture
    2,775 Super User 2025 Season 2 on at
    fields data is not updated in SharePoint
     
    Try this below formula.
     
    Set(varNotificationMessage, "");
    Set(varNotificationType, NotificationType.Information); // Default to Information
    
    If(
        frmAllianceBDAgreementGeneral.Valid And frmAllianceBDAgreementDetoils.Valid,
        // Use IfError to catch potential errors during the Patch operation
        IfError(
            Patch(
                Contracts,
                LookUp(
                    Contracts,
                    ID = Value(varCreatedSpItemId)
                ),
                frmAllianceBDAgreementGeneral.Updates,
                frmAllianceBDAgreementDetoils.Updates
            ),
            // On Error
            Set(varNotificationMessage, "Error: Some data failed to update. Please check your inputs and try again. Details: " & FirstError.Message),
            Set(varNotificationType, NotificationType.Error),
            
            Patch(
            ErrorLogList,
            Defaults(ErrorLogList),
            {
            AppName: "Your Power App Name",
            ErrorTime: Now(),
            ErrorMessage: FirstError.Message,
            Context: "Updating Contracts item ID: " & Text(varCreatedSpItemId)
             }
           )
        ),
        // If the forms are not valid (this part is outside the IfError for Patch)
        Set(varNotificationMessage, "Please ensure all required fields are filled out correctly."),
        Set(varNotificationType, NotificationType.Warning)
    );
    
    
    // Display the notification after the operation
    If(
        IsBlank(varNotificationMessage), // If no error occurred and forms were valid
        Set(varNotificationMessage, "Data successfully updated in SharePoint!"),
        Set(varNotificationType, NotificationType.Success)
    );
    
    Notify(varNotificationMessage, varNotificationType, 5000); // Display for 5 seconds
    
    /*Optional: Navigate to a success screen or reset forms after successful update
    
    If(varNotificationType = NotificationType.Success,
        ResetForm(frmAllianceBDAgreementGeneral);
        ResetForm(frmAllianceBDAgreementDetoils);
        Navigate(UrScreenWanted) 
    );
    */
     
     
    Sometimes concurrent might give this issue.
     
     
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2