Expected Record Value in Power Apps [Solved]

Recently, while working with the Power Apps ComboBox control, I encountered a challenging issue: the ExpectedRecord value. I researched and found a very tricky solution that I will share with you.

In this tutorial, I will explain how to fix the ‘Expected Record Value’ error in Power Apps, which usually occurs when working with a Combobox control.

Refer to the image below:

Power Apps Expected Record Value

Expected Record Value in Power Apps [Error]

Let’s discuss how I got this error while working with the combo box control in Power Apps.

  • I have a SharePoint list [Product Issue Tracker], which has different columns like:
Fields NameData type
Product IDTitle
Issue TypeChoice [“Washing Machine”, “Television”, “Oven”, “Refrigerator”]
Issue Assigned ToPerson/group
Is Still Issue is ActiveYes/no
Issue Start DateDate and time
Issue Resolved DateDate and time
Power Apps Expected Record Value Combo box
  • In Power Apps, there are an Edit form and a Gallery control, both connected to the SharePoint list above.
  • Whenever the user clicks on an item in the gallery control, that item is displayed in the edit form.
Expected record value Power Apps combo box
  • The edit form contains an Issue Assigned To field [SharePoint list person type column].
  • In the combo box control, I tried to display the user name based on the item selected by a gallery control. I have set the combo box Default property as:
Default = varIssue.'Issue Assigned To'.DisplayName

Where,

  1. varIssue = Variable name
  2. Issue Assigned To = SharePoint list person or group type column name
  • Once I applied the code, I faced an error as “Expected Record Value” [It clearly says that it is an unexpected value; to overcome this, provide the expected value] as shown below:
Power Apps combo box default expected record value

Expected Record Value in Power Apps [Solved]

To overcome the error of “Expected Record Value,” follow the instructions below:

On the Power Apps edit form, select the Combo box control -> Set its DefaultSelectedItems to:

DefaultSelectedItems = Gallery1.Selected.'Issue Assigned To'

Where,

  1. Gallery1: Gallery control name
  2. Issue Assigned To: SharePoint list Person/group type column name
Expected record value in Power Apps combo box

Save, Publish, and Preview the app. When the user selects an item from the gallery control, the combo box displays the user’s name based on the selection.

Power Apps combo box expected record value

This way, we will overcome this Power Apps issue.

Conclusion

I hope this Power Apps tutorial helped resolve the “Expected Record Value” error while working with the combo box control.

Additionally, you may like some more Power Apps tutorials:

>

Build a High-Performance Project Management Site in SharePoint Online

User registration Power Apps canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App

Power Platform Tutorial FREE PDF Download

FREE Power Platform Tutorial PDF

Download 135 Pages FREE PDF on Microsoft Power Platform Tutorial. Learn Now…