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 has some invalid...
Power Apps
Answered

Patch has some invalid arguments

(0) ShareShare
ReportReport
Posted on by 158

Hello! 

 

Every time I am using Patch function I need help and this time I have no idea what is wrong here...

 

Patch(
'Request Training',
Defaults('Request Training'),
{
'Name': Value(DataCardValue2.Text),
'Request ID': Value(DataCardValue3.Text),
Trainee: Value(DataCardValue5.Text),
'Start date': DateValue1.SelectedDate,
Position: DataCardValue6.Selected.Value,
Shift: DataCardValue7.Selected.Value
}
)

 

The data source is table in dataverse with column titles as shown in my patch function. I have checked all titles and DataCardValues numbers and it's all ok. Shift and Position are choices, Date is DateValue to choose, Request ID is a number which in table is WHOLE NUMBER, in my form it has a function to increment by 1:  First(Sort('Request Trainings', 'Request ID', Descending)).'Request ID' + 1. 

 

Help, please!

Categories:
I have the same question (0)
  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @marcy_pi 

     

    Can you please get the full error message?

    cha_cha_0-1671624709828.png

     

    Click each item in the error and share with us the complete message similar below:

    cha_cha_1-1671624759779.png

     

    The error message will help us decipher that cause of your issue.

     

     

  • MP-13011217-0 Profile Picture
    158 on at

    That's all it says:

     

    marcy_pi_0-1671625478304.png

     

  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @marcy_pi 

     

    That's tough. For now, I'm suspecting this might be the source of the issue.

    cha_cha_0-1671625597483.png

     

    Can you please share a screenshot of what is highlighted to be wrong in your Patch code?

     

  • MP-13011217-0 Profile Picture
    158 on at

    I've tried it but it's still showing the same error. 

  • Verified answer
    cha_cha Profile Picture
    4,932 Moderator on at

    Hello @marcy_pi 

     

    With this limited info, it's difficult to point out the issue.

    Since we can't get any further info, adding one by one your record values and see at which point it prompts for a new type of error.

     

    Before starting, update your Dataverse table to make sure that all columns (except Name) are not required. Refresh in Power Apps the data source then start doing this:

     

    Start with Name only first.

    cha_cha_0-1671626125132.png

    then next is Required ID and so on until you know which column is causing the issue.

     

     

  • MP-13011217-0 Profile Picture
    158 on at

    Thank You, I've found error it was on one of my choices... thanks! 🙂

  • cha_cha Profile Picture
    4,932 Moderator on at

    Glad that you figure it out. 😊

  • cha_cha Profile Picture
    4,932 Moderator on at

    Please mark your answer as the solution to officially close this ticket.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard