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 / Powerapps not updating...
Power Apps
Answered

Powerapps not updating a record in CDM

(0) ShareShare
ReportReport
Posted on by 11

We have a powerapps application that collects data and writes it to various tables in CDM. When it is complete it updates another table to indicate that the task was complete.

Even though the application is able to write the records to the various tables, the powerapp only intermittently  updates the task record.  

UpdateContext({SendProgress:Concatenate("Setting Task ",WorkBrowseGallery.Selected.TaskId, " Status to Complete!")});

UpdateIf('LIS GA Task',TaskId = WorkBrowseGallery.Selected.TaskId,

  { TaskStatus: "Complete",  FinishedDate: Now() });

The message appears on the screen showing the correct selected taskid. However, the record is not updated.

 

Any suggestions on how we can insure that the record is always updated?

 

Categories:
  • Leo09 Profile Picture
    212 on at

    By tables, did you mean entities? I see in the UpdateIf formula you only included one entity.

  • Peter Newell Profile Picture
    11 on at

    Yes it is the entity in CDM. We are getting an error message about Optimistic Concurrency Control.

    We assumed that if we refreshed the entity in powerapps before the update that it would resolve the issue.

     

    Refresh('LIS GA Task');

    UpdateIf('LIS GA Task', TaskId = WorkBrowseGallery.Selected.TaskId,

                   { TaskStatus: "Complete",

                   FinishedDate: Now()

                                  });

     

    However, it is still failing. Any suggestions on how to resolve this issue would be appreciated.

     

  • Verified answer
    Peter Newell Profile Picture
    11 on at

    We changed the code from Refresh to Revert and it is working now.

     

    Revert('LIS GA Task');
    UpdateIf('LIS GA Task', TaskId = WorkBrowseGallery.Selected.TaskId,
    { TaskStatus: "Complete",
    FinishedDate: Now()
    });

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard