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 / Patch will add but wil...
Power Apps
Unanswered

Patch will add but will not edit?

(1) ShareShare
ReportReport
Posted on by 377

Hi

I am Patching a SharePoint Online List.

The New works but the Edit gives me an error.

 

The specified column 'CompNames' does not exist. The column with the most similar name is 'Comment'.

 

I don't mention CompNames in my OnSelect.

 

Thanks

P

 

The OnSelect of my Add / Update button.

 

If(Or(
(Len(tbRDTitle.Text) < 3),
(Len(cbRDFirmTitle.Selected.Value) = 0),
(Len(tbRDArticleLink.Text) < 10)
),
Notify("Article Title, Law Firms and Article Link must be entered!", Error),
If(vShowFormRDGallery,
//edit
Patch(
ProjectThamesRecentDevelopments, galRecentDevelopments.Selected,
{
Title:tbRDTitle.Text,
FirmTitle:cbRDFirmTitle.SelectedItems,
PublicationDate:calRDPublicationDate.SelectedDate,
ArticleLink:tbRDArticleLink.Text,
SummaryOrKeyInsight:tbRDSummary.Text,
Sentiment:(sliderSentiment.Value / 100),
Comment:tbRDComment.Text
}
);
Set(vShowFormRDForm, true);
Set(vShowFormRDGallery, true);
Notify( "Article Updated", NotificationType.Success, 5000 )
,
//new
Patch(
ProjectThamesRecentDevelopments, Defaults(ProjectThamesRecentDevelopments),
{
Title:tbRDTitle.Text,
FirmTitle:cbRDFirmTitle.SelectedItems,
PublicationDate:calRDPublicationDate.SelectedDate,
ArticleLink:tbRDArticleLink.Text,
SummaryOrKeyInsight:tbRDSummary.Text,
Sentiment:(sliderSentiment.Value / 100),
Comment:tbRDComment.Text
}
);
Set(vShowFormRDForm, false);
Set(vShowFormRDGallery, true);
Notify( "Articles Added", NotificationType.Success, 5000 )
) //if
) //if

 

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @pmwhelan 

    Try 

     ProjectThamesRecentDevelopments,LookUp(ProjectThamesRecentDevelopments, ID= galRecentDevelopments.Selected.ID),

    In the first line of your Edit section.  If you comment out this line, does your Patch work when editing?

    //Comment:tbRDComment.Text

     

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard