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 / Get error in the updat...
Power Apps
Unanswered

Get error in the update after changing the items

(0) ShareShare
ReportReport
Posted on by 140
In power apps in one of the Form's card i have a combobox and when i change the items in the combobox the Update property of the card switch to error
 
In the initial situation ( correct one) it was:
Combobox (inside the card):
Items:     Choices('Action (IMACD_Transactions)')
In the card:
Update : DataCardValue71.Selected.Value
 
After changing the Items:
Combobox (inside the card):
Items:["Leaver","Joiner","Mover"]
In the card:
Update : DataCardValue71.Selected.Value
 
Why I get error in the Update after changing the items?
I have the same question (0)
  • Suggested answer
    jrletner Profile Picture
    720 Super User 2025 Season 2 on at
    The error in the Update property of the card is likely occurring because of the change in the Items property of the ComboBox.
     
    Initially, Items was set to Choices('Action (IMACD_Transactions)'), which returned records with a .Value property.
     
    However, when you changed Items to a list of strings ["Leaver", "Joiner", "Mover"], these items no longer have a .Value property, which causes the DataCardValue71.Selected.Value reference to break.
     

    Change the Update property to:

    DataCardValue71.Selected
     
    Since ["Leaver", "Joiner", "Mover"] is a plain list of strings, DataCardValue71.Selected will return the selected string directly.
     
    Hope that helps solve your issue.
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    If you are using Choices columns modify your selections in your data source not in the form.
  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at
    Just to clarify
    ["Leaver","Joiner","Mover"]
    certainly returns an output of .Value, however you seem to be missing a field in this
     Choices('Action (IMACD_Transactions)')
    as the syntax is Choices(ListName.FieldName). What is the field name and type you are accessing here and is it single or multiple value ?
  • Hanan-khamissy Profile Picture
    140 on at
    Thank you @jrletner  for your answer
    I tried this but unfortunately still have error!
  • Hanan-khamissy Profile Picture
    140 on at
    In this syntex : 
    Choices('Action (IMACD_Transactions)')
    Action is the field name and it works without any errors 
    but when i change it to :
    ["Leaver","Joiner","Mover"]
    then i get error in the Update syntex: 
    DataCardValue71.Selected.Value 
     
    while DataCardValue71 in the combobox name that i changed it's items 
     
     
  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at
    You did not answer the questions I asked - I need this information to try to understand what the issue may be.
    What is the field name and type you are accessing here and is it single or multiple value ?
    Also that does not appear to be a valid Choices syntax as per my previous comment.
  • Hanan-khamissy Profile Picture
    140 on at
    the field name: Action 
    type: choice
    single value
  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at
    I assume you are using SharePoint here (you have not stated your Data Source type) - if the Items of the single choice Combo Box DataCardValue71 is 
    ["Leaver", "Joiner", "Mover"]
    and you are writing back to a single value Choice field Action then the Update of the Data Card can be either
    DataCardValue71.Selected
    or
    {Value: DataCardValue71.Selected.Value}
    and the DefaultSelectedItems of DataCardValue71 would be 
    ThisItem.Action
    or
    {Value: ThisItem.Action.Value}
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

     
  • Hanan-khamissy Profile Picture
    140 on at
    My database is dataverse not sharepoint 
    I tried it but still have error
  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at
    It is always very good to mention your data source in your initial post. I will leave this to others as I do not use Dataverse.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard