web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : t/6+oGr9HasvKWKgW/HSgT
Power Apps - Microsoft Dataverse
Answered

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

Like (0) ShareShare
ReportReport
Posted on 21 Jan 2025 09:39:48 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
    46,671 Super User 2025 Season 2 on 07 Feb 2025 at 07:13:42
    Patch function is not working asking for Owner need to be provided.
    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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Featured topics

Loading complete