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 invalid argument...
Power Apps
Unanswered

Patch invalid arguments unexpected Schema and 'Status' is getting OptionSetValue and Using same?

(0) ShareShare
ReportReport
Posted on by

Happy Friday! I am very confused why this worked earlier in the week and now it is: 

 

The function 'Patch' has some invalid arguments.
Invalid argument type. Expecting a Record value, but of a different schema.
Incompatible type. The 'Status' column in the data source you're updating expects a

'OptionSetValue' type and you're using a 'OptionSetValue' type.

 

The Patient Field (in the MedicalRelease table) I am patching into is a Lookup which has worked amazingly well, as I pull the information I need from the original table Patients table.

 

Questions:

1. Confused as to why NOW it has a different schema, no changes have been made between the Patients and the Release table

2. What is it really trying to tell me OptionSetValue?

 

 

Thanks for any help

I have the same question (0)
  • v-yujincui-msft Profile Picture
    on at

    Hi @Daniel14 ,

     

    I suggest you create a support ticket for professional assistance following the below procedure.

    Get Help + Support - Power Platform | Microsoft Docs

     

    In addition, here are some links that might help you:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Status-expects-a-OptionSetValue-but-you-re-using-a/td-p/933002

    https://powerusers.microsoft.com/t5/Building-Power-Apps/The-Access-Mode-column-in-the-data-source-you-re-updating/td-p/379619

     

    Hope your problem can be solved as soon as possible.

     

    Best Regards,

    Charlie Choi

  • Ram Prakash Duraisamy Profile Picture
    5,593 Super User 2025 Season 2 on at

    Hello @Daniel14 

     

    Try below Query,

     

    As per my example below Am passing lookup for Patient and Status as Optionset value

     

    Patch(RequestToReleaseMedicalRecordss,ThisItem,{Patient:Lookup(PatientTable,PatientColumnFieldName = PatientColumnFieldValue)},{Status:Choices(Status).Active})

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

     

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