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 / List Column not recogn...
Power Apps
Answered

List Column not recognized in PowerApps Patch function

(0) ShareShare
ReportReport
Posted on by 20

Hello,

I have an app I want to use to submit data from a PowerApps collection to a SharePoint List. I am using ForAll with Patch to accomplish this. Here's the code I am using for this:

 

 

ForAll(DataTasks, Patch('Audit Submissions v2',Defaults('Audit Submissions v2'),{Student:DataTasks.Student}));

 

 

DataTasks is the name of the collection and Audit Submissions v2 is the name of the list in SharePoint. To simplify in the example I am just including one field, which in both the list and the collection is called "Student". 

 

The error I am getting on the above is "The specified column 'Student' does not exist." This is not a default SharePoint field that was renamed, so that's not the issue. The column is a lookup to a column in another Sharepoint List, but I don't know why that would impact the reference to the list I am trying to update. 

 

Been fiddling with this for hours and I haven't been able to find any posts that fit my case. Any thoughts would be greatly appreciated. 

 

Thanks,

Katie

 

 

Categories:
  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    When patching a Lookup column the value that you patch needs to be a record, not a value.  Take a look at the solution in this post.  It has a good explanation.

    (2) Solved: How to patch a SharePoint Lookup Column - Power Platform Community (microsoft.com)

  • hackondor Profile Picture
    37 on at

    Hi @kacmcgrath ,

     

    If it is a lookup column you need to add dot "." after the column name because you must patch by the id ou the value

     

     

    ForAll(DataTasks, Patch('Audit Submissions v2',Defaults('Audit Submissions v2'),{Student./*id or value*/:DataTasks.Student}));

     

     

    For your case i think:

    ForAll(DataTasks, Patch('Audit Submissions v2',Defaults('Audit Submissions v2'),{Student.Value:DataTasks.Student}));
  • kacmcgrath Profile Picture
    20 on at

    @hackondor - Thanks for your input. I tried your suggestion with no luck. When I try to use Student.Value I get an unexpected operator error. @Pstork1 - Thanks for the suggestion. From that post I think I understand part of what i was doing wrong, but I still have the problem where the SharePoint Column I am referencing is not recognized. 

     

    ForAll(DataTasks,Patch('Audit Submissions v2',Defaults('Audit Submissions v2'),{Student:{Value: "Jamie",Id: 3}}));

    I updated to the above and I still get the error "The specified column 'Student' does not exist." Meanwhile, back in my list it clearly does. 

    Screen Shot 2021-09-06 at 3.21.23 PM.png 

    Thanks again to you both. 

    Katie

  • Verified answer
    kacmcgrath Profile Picture
    20 on at

    I think I just figured it out. In my 'Audit Submissions v2' list the default "Title" column (which I am not using) was a required field. Don't know how I missed that before. Anyway, after changing that field to not be required and refreshing my data source the Student Column is now being recognized. Thanks again, y'all. 

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    Title is always a required field by default and therefore must be included in every Patch()

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

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard