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 / Patch Error: The type ...
Power Apps
Unanswered

Patch Error: The type of this argument does not match the expected type 'OptionSetValue' - Found Type - 'Record'

(0) ShareShare
ReportReport
Posted on by 17

I am using Patch function to update status column of type choice in dataverse table using the below function and I am getting an error - "The type of this argument does not match the expected type 'OptionSetValue' - Found Type - 'Record'"

 

Dataverse Table Name - Trainings

Column Name - Training_Status

 

The function used is as below:

Patch('Trainings', LookUp(Trainings, Training = ThisRecord.Trainings), {Training_Status : {Value: "Approved"}})

 

Any Suggestion?

Thanks in advance.

Categories:
I have the same question (1)
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    hi @MonaliB ,

    try this:

    Patch('Trainings', LookUp(Trainings, Training = ThisRecord.Trainings), {Training_Status : {Value: "Approved"}})
  • MonaliB Profile Picture
    17 on at

    Still same error. It was a typo. I have corrected the bracket. 

  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at
    Patch('Trainings', LookUp(Trainings, Training = ThisRecord.Trainings, {Training_Status : LookUp(datasourceName,'column Name'.Value="Approved")}))

    try this just replace the datasource name and column name

  • MonaliB Profile Picture
    17 on at

    Thank you for your response Anand. Still giving an error. The Status column does not have Value property. The error is "Value isn't recognized."

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard