Diagnostic feature designer app gives "'Value' must be an element defined in the 'ItemsData' property." error for non-numeric variables.
Show older comments
Hello,
I get "'Value' must be an element defined in the 'ItemsData' property" errors when I try to select/deselect non-numeric variables (more precisely 'CHAR'-variables) in the ensemble during import in the app.
It used to work in the previous version, but 2021a has made some changes in the GUI for data import.
Maybe I should mention that I was running the previous version on Linux.
The relevant part of the version info and the error trace is attached below.
I wonder if a kind soul can help me figure this out.
Cheers
>> ver
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.10.0.1669831 (R2021a) Update 2
MATLAB License Number: XXXXXXXXXXXX
Operating System: Microsoft Windows 10 Home Version 10.0 (Build 19043)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.10 (R2021a)
Deep Learning Toolbox Version 14.2 (R2021a)
Parallel Computing Toolbox Version 7.4 (R2021a)
Predictive Maintenance Toolbox Version 2.3 (R2021a)
Signal Processing Toolbox Version 8.6 (R2021a)
Statistics and Machine Learning Toolbox Version 12.1 (R2021a)
------------------------------------------------------------------------------------------------------
Error using matlab.ui.control.internal.model.ExactlyOneSelectionStrategy/validateValuePresentInItemsData (line
236)
'Value' must be an element defined in the 'ItemsData' property.
Error in matlab.ui.control.internal.model.SelectedDataValueStrategy/validateValue (line 34)
value = obj.Component.SelectionStrategy.validateValuePresentInItemsData(newValue);
Error in matlab.ui.control.internal.model.AbstractStateComponent/set.Value (line 141)
value = obj.ValueStrategy.validateValue(newValue);
Error in predmaintguis.internal.ciapp.dialogs.newsession.PropertiesPanel/makeSignalIVPanel (line 362)
TypeDD.Value = SelectedNode.NodeData.Type;
Error in predmaintguis.internal.ciapp.dialogs.newsession.PropertiesPanel/makeNodeDependentPanel (line 135)
this.makeSignalIVPanel(SelectedNode);
Error in predmaintguis.internal.ciapp.dialogs.newsession.TreePanel>cbNodeSelection (line 320)
this.PropertiesPanel.makeNodeDependentPanel(event.SelectedNodes);
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 453)
Error while evaluating CheckBoxTree PrivateSelectionChangedFcn.
Error using matlab.ui.control.internal.model.ExactlyOneSelectionStrategy/validateValuePresentInItemsData (line
236)
'Value' must be an element defined in the 'ItemsData' property.
Error in matlab.ui.control.internal.model.SelectedDataValueStrategy/validateValue (line 34)
value = obj.Component.SelectionStrategy.validateValuePresentInItemsData(newValue);
Error in matlab.ui.control.internal.model.AbstractStateComponent/set.Value (line 141)
value = obj.ValueStrategy.validateValue(newValue);
Error in predmaintguis.internal.ciapp.dialogs.newsession.PropertiesPanel/makeSignalIVPanel (line 362)
TypeDD.Value = SelectedNode.NodeData.Type;
Error in predmaintguis.internal.ciapp.dialogs.newsession.PropertiesPanel/makeNodeDependentPanel (line 135)
this.makeSignalIVPanel(SelectedNode);
Error in predmaintguis.internal.ciapp.dialogs.newsession.TreePanel>cbNodeSelection (line 320)
this.PropertiesPanel.makeNodeDependentPanel(event.SelectedNodes);
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 453)
Error while evaluating CheckBoxTree PrivateSelectionChangedFcn.
2 Comments
Dr.B
on 3 Jun 2021
Mario Malic
on 4 Jun 2021
The way your question is written, it is very hard for us to help.
'Value' must be an element defined in the 'ItemsData' property. It is self-explanatory. Your ItemsData could be cell array of character arrays of numbers {'1', '2', '3'}, but you are trying to set the Value property to the numeric value 1, 2 or 3 which doesn't work, or the opposite.
Answers (1)
Dr.B
on 7 Jun 2021
0 votes
2 Comments
Dr.B
on 9 Jun 2021
Mario Malic
on 10 Jun 2021
You didn't have to. You can unaccept it. It's because you should've replied to my comment in the comment section.
Categories
Find more on Manage System Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

