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 Command Error Ex...
Power Apps
Answered

Patch Command Error Expected Type Record

(1) ShareShare
ReportReport
Posted on by

Hello and good morning,
Anyone come across this error message?
I can seem to find anything on this here in the Building Power Apps community.

The field in question is a Choice Field with Yes or No as the choices.

ChrisL58_0-1720530315650.png

What am I missing?

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

    @ChrisL58  try removing Value(...) and use dropown.Selected.Value

  • Verified answer
    ivan_apps Profile Picture
    2,189 Moderator on at

    When you do Value() you are transforming to a number.  AdequateLiquidity.Selected.Value should resolve into the same lookup configuration that you have in SharePoint. The fact that you have a .Value leads me to believe it's a dropdown, not a Record.

     

    If adequate liquidity is a choice, then you should do {Value: drpAdequateLiquidity.Selected.Value}

  • ChrisL58 Profile Picture
    on at

    Ive tried that and it doesnt help.
    I have tried Value(drpAdequateLiquidity.Selected), which gives two errors.

    ChrisL58_0-1720531008703.png

    If I use 

    'Adequate Liquidity': Value(drpAdequateLiquidity.Selected.Value) I just get the original error that I posted.
    Not sure why a Choice column would cause this.

     

  • ChrisL58 Profile Picture
    on at

    Hello Ivan,
    Yes, It is a choice and I am using a dropdown for the choices, which I thought would create the index but I never thought to wrap the expression using curly braces for a choice field. Thank you!

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard