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 / Record Value Errors fo...
Power Apps
Unanswered

Record Value Errors for Drop down lists and DataCard

(0) ShareShare
ReportReport
Posted on by

Hello,

 

My code seems to not be recognizing ".name" as such:'

Update property of Task Category DataCard:

 

AdminTaskCategoryDropdown.Selected.Name

 

Default property of Task Category Drop down control:

 

AdminTaskCategoryDropdown.Selected.Name

 

Here are the errors: 

levoncosta_0-1679958693896.png

Error #1:

levoncosta_1-1679959073637.png

 

Error #2:

levoncosta_2-1679959101595.png

 

Thanks! 

 

Categories:
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @levoncosta

    Could you please tell me that how you set the Items property of the AdminTaskCategoryDropdown?

    And, what is the column type of the field that you want to save the AdminTaskCategoryDropdown Selected name?

    Is it a Dropdow box or a Combo Box?

     

    It seems like that the Update expects a record value, if the column you want to update with the selected name is a Choice type, you could modify the Update formula as below:

    {Value:AdminTaskCategoryDropdown.Selected.Name}

    For the Default property, you could try:

    ThisItem.TaskCategory

    If it is a ComboBox, you need to set the DefaultSelectedItems property.

  • levoncosta Profile Picture
    on at

    @v-qiaqi-msft 
    Items property of AdminTaskCategoryDropdown:

    'Task Category and Expense Type List'

     

    The dropdown is a dropdown, not a combo box. The data cards use drop down controls.

     

    This code appears to work (as I no longer have errors):

    {Value:AdminTaskCategoryDropdown.Selected.Name}

     

    BUT, I replicated everything from different screens. Basically, I swapped out "SelfTaskCategoryDropdown" to "AdminTaskCategoryDropdown", and I made the appropriate changes in the properties, but they were supposed to be identical, hence the initial code of admintaskcategorydropdown.selected.name because selftaskcategorydropdown.selected.name worked. 

     

    I hope that all makes sense. I don't know why the property code works for one and not the other.

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @levoncosta,

    Could you please give me the direct answer to my questions😂, you answer only the part of my questions.

    To figure it out, not only discussing about the error, but also telling me what you have done and the data settings in your data source.

     

    To be honest, I am still confused. 

    The Update of the TaskCategory expects a record value, actually, Choice column and LookUp column expect this kind of data. If it is a Choice type of LookUp type, why you set the dropdown items with the data source directly? Normally, we use the Choices() function to list all the options.

  • levoncosta Profile Picture
    on at

    Hi @v-qiaqi-msft,

    Please be aware I am a novice and don't understand syntax well. I agree it makes more sense to set the dropdown items with the data source directly, but I think for some reason I was unable to do that. 

     

    The data sources are:

    AdminProjectsDropdown control:

    'Projects and CEA List'

    AdminTaskCategoryDropdown control:

    'Task Category and Expense Type List'

    AdminProjectDataCard control:

    DataSourceInfo([@'Project Time Tracking'],DataSourceInfo.DisplayName,"ProjectName")

    AdminTaskCategoryDataCard control: 

    DataSourceInfo([@'Project Time Tracking'],DataSourceInfo.DisplayName,"TaskCategory")

     

     

    levoncosta_0-1680211788237.png

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard