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 / Missing column. Your f...
Power Apps
Suggested Answer

Missing column. Your formula is missing a column

(0) ShareShare
ReportReport
Posted on by
It gives me an error:
Invalid argument type. Expecting a Record value, but of a different schema.
Missing column. Your formula is missing a column 'Department' with a type of 'Text'.
 
Formula:
 
Patch(
ExpenseH,
LookUp(ExpenseH, ID = varSelectedRequests.ID),
{
Department: varSelectedRequests.Department,
Status: If(
IsBlank(varNextApprover),
"Approved",
"Pending on " & varNextApprover.Role
),
 
AssignedTo: If(
IsBlank(varNextApprover),
Blank(),
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & varNextApprover.User,
DisplayName: varNextApprover.User,
Email: varNextApprover.User
}
),
 
CurrentStep: varCurrentStep + 1
}
);
Categories:
I have the same question (0)
  • Suggested answer
    Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 on at
     
    The error happens because SharePoint only requires the Claims property to save a Person/Group column. Other fields like DisplayName, Email, Department, JobTitle, or Picture are optional and can be left blank.
     
    Another issue is in the formula is that varNextApprover.User is a record, so you can’t use it directly. You need to expand the correct property. for example varNextApprover.User.Email
     
    Please try below formula, 
     
    Patch(ExpenseH,
        LookUp(ExpenseH, ID = varSelectedRequests.ID),
        {
            Department: varSelectedRequests.Department,
            Status: If(IsBlank(varNextApprover),"Approved","Pending on " & varNextApprover.Role),
            AssignedTo: If(IsBlank(varNextApprover),
                            Blank(),
                            {
                                '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
                                Claims: "i:0#.f|membership|"& varNextApprover.User.Email,//replace this with your expanded filed name 'varNextApprover.User.Email'
                                Department: "",
                                DisplayName:  varNextApprover.User.DisplayName, //replace this with your expanded filed name 'varNextApprover.User.DisplayName'
                                Email: varNextApprover.User.Email,//replace this with your expanded filed name 'varNextApprover.User.Email'
                                JobTitle: "",
                                Picture: ""
                            }
                        ),
            CurrentStep: varCurrentStep + 1
        }
    );
     
     
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------
     
    📩 Need more help? Mention @Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping!
     
     
  • Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 on at
     
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------
     
    📩 Need more help? Mention @Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard