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

Patch will add but will not edit?

(1) ShareShare
ReportReport
Posted on by 375

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:
I have the same question (0)
  • 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

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 740 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 342 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard