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 / -The function 'Patch' ...
Power Apps
Answered

-The function 'Patch' has some invalid arguments - Invalid argument type. Expecting a record value, but of a different schema - "Missing column. Your formula is missing a column 'JobTitle' with a type of 'Text

(0) ShareShare
ReportReport
Posted on by 97

Hi everybody. I'm a first timer doing this thing. Everything is new to me and I'm looking forward to learn from you guys. 

I just copied the formula from the tutorial i watched in Youtube. I have copied everything but it gives me errors. I'm so confused because  it works well in the tutorial I've watched. What could be the possible mistakes of this? 

 

It says the following:
-The function 'Patch' has some invalid arguments
- Invalid argument type. Expecting a record value, but of a different schema
- "Missing column. Your formula is missing a column 'JobTitle' with a type of 'Text

 

below is the Formula: 

 

Patch('Employee Request Details', Defaults('Employee Request Details'),
{LeaveType:Gallery4.Selected.LeaveType1},
{LeaveStartDate:StartDate.SelectedDate},
{LeaveEndtDate:EndDate.SelectedDate},
{LeaveDescription: txtLeaveDescription.Text},
{ 'Requested by':
{'@odata.type' : "#Microsoft.Azure.Connectors.Sharepoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & Lower(User().Email),
Department: "",
DisplayName: User().FullName,
Email: User().Email,
Jobtitle: ".",
Picture: "."}},
{'Approved By':
{'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExapandedUser",
Claims: "i:0#.f|membership|" & Lower(_selectedApprover.Mail),
Department: "",
DisplayName: _selectedApprover.DisplayName,
Email: _selectedApprover.Mail,
Jobtitle: ".",
Picture: "."}})

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,113 Most Valuable Professional on at

    Hi @Manilyn0509 ,

    You might try a capital T in JobTitle

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Manilyn0509 Profile Picture
    97 on at

    OMG! It solved!  Thank you so much Sir @WarrenBelz You are Awesome!

  • WarrenBelz Profile Picture
    153,113 Most Valuable Professional on at

    No problem @Manilyn0509 ,

    The error you were getting showed this

    "Missing column. Your formula is missing a column 'JobTitle' with a type of 'Text'"

  • Manilyn0509 Profile Picture
    97 on at

    I didn't expect it to be like that Sir 😅. I really appreciate you reply to a newbie like me. 

  • Community Power Platform Member Profile Picture
    on at

    Patch(
    Table5, Defaults(Table5),
    {'Leave Type': Gallery11.Selected.'Leave Type'},
    {'From Date': StartDate.SelectedDate},
    {'To Date': EndDate.SelectedDate},
    {'Leave Title': txtLeaveTitle.Text},
    {'Leave Description': txtLeaveDetail.Text},
    {
    'Requested By': {
    '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    Claims: "1:0#.f|membership|" & Lower(User().Email),
    DisplayName: User().FullName,
    Email: User().Email,
    JobTitle: " ",
    Picture: " "
    }
    },
    {
    'Requested To': {
    '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    Claims: "1:0#.f|membership|" & Lower(_selectedApprover.Mail),
    DisplayName: _selectedApprover.DisplayName,
    Email: _selectedApprover.Mail,
    JobTitle: " ",
    Picture: " "
    }
    },
    )




    It show character used in the formula are in unexpected way, Please help me in this

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard