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 function is not ...
Power Apps
Answered

Patch function is not working asking for Owner need to be provided.

(0) ShareShare
ReportReport
Posted on by
here is a patch code on button onselect:
 
Patch(
    'Reservation History',
    Defaults('Reservation History'),{
       
        'Change Type': DataCardValue79_1,
        'Please provide justification':DataCardValue81_1.Value,
        'New License Count':Value(DataCardValue52_1.Text),
        'New License Count (Year 2)':Value(DataCardValue53_1.Text),
        'New License Count (Year 3)':Value(DataCardValue54_1.Text),
        'New License Count (Year 4)':Value(DataCardValue55_1.Text),
        'New License Count (Year 5)':Value(DataCardValue56_1.Text),
        'Old License Count': Value(DataCardValue65_1.Text),
        'Old License Count (Year 2)':Value(DataCardValue66_1.Text),
        'Old License Count (Year 3)':Value(DataCardValue67_1.Text),
        'Old License Count (Year 4)':Value(DataCardValue68_1.Text),
        'Old License Count (Year 5)':Value(DataCardValue69_1.Text),
        'License':Gallery2.Selected.License,
        'Budget Approver':Gallery2.Selected.'Budget Approver',
        'Requester':Gallery2.Selected.'Requester Name',
       
    }
);


Showing error while clicking the button : Error- "The owner is not provided"

so i added this in the code for owner cloumn:
 
'Owner':LookUp(Users,'User Name' = User().FullName).

still having the same issue
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,975 Super User 2026 Season 2 on at
    Hi,
     
    If you are still getting the error its because the value you are passing in the Owner isn't correct. In your table is owner an EMail address or an object?
     
    Usually its an email address. So try to pass an email address for yourself.

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

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard