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 / New record being creat...
Power Apps
Unanswered

New record being created rather than existing one patched?

(0) ShareShare
ReportReport
Posted on by

Hi

Is there any reason why this is creating a new record. Title does exist in the table and the value matches too?

 

Patch(CB_Job_Tracker,
LookUp(CB_Job_Tracker, Title=JobGantt.Selected.ProjectId,
{
'UM Planning': ComboBox6.Selected.DisplayName,
Date_of_Job: JobStartDatePicker.SelectedDate,
Description: DataCardValue23.Text
}
));

Categories:
  • FishinKmac Profile Picture
    75 on at

    Can you see if one of these will work? 

    Patch(CB_Job_Tracker,
    LookUp(CB_Job_Tracker, Title=JobGantt.Selected.ProjectId),
    {
    'UM Planning': ComboBox6.Selected.DisplayName,
    Date_of_Job: JobStartDatePicker.SelectedDate,
    Description: DataCardValue23.Text
    }
    );

    or 

    Patch(CB_Job_Tracker,
    LookUp(CB_Job_Tracker, Title=Text(JobGantt.Selected.ProjectId)),
    {
    'UM Planning': ComboBox6.Selected.DisplayName,
    Date_of_Job: JobStartDatePicker.SelectedDate,
    Description: DataCardValue23.Text
    }
    );

     

  • jed76 Profile Picture
    on at

    Many thanks but neither of those work either. I have even tried just replacing the "JobGantt...." with the actual text value. 

  • jed76 Profile Picture
    on at

    @FishinKmac Hi. I sorted this by using UPDATEIF instead of PATCH! 

     

    Many thanks, 

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @jed76 ,

     

    There might be a possibility that your filter contains more records to select 1 record to patch. UpdateIf works to make changes to all the records for which your condition is satisfied. 

     

    Hope this helps

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard