Diagnostic feature designer app gives "'Value' must be an element defined in the 'ItemsData' property." error for non-numeric variables.

10 views (last 30 days)
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
Dr.B on 3 Jun 2021
Some addinional information I got while trying to troubleshoot.
The first screenshot is where the error is generated on clicking any of the variables, which are not numeric.
The second is after clicking the refresh button besides the Source box.
The third is after importing only the signals without condition variables, and naturally, there is nothing to group the traces by.
Something doesn't feel right. I don't expect refreshing to change my source variables?!
Screenshot 1
Screenshot 2
Screenshot 3
Mario Malic
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.

Sign in to comment.

Answers (1)

Dr.B
Dr.B on 7 Jun 2021
Thanks for taking a look, Mario.
It's difficlt for me to give more information, as I am not the designer of the app - it's a MATLAB tolbox app, and I am not sure how to debug the GUI with all the callbacks and stuff.
I was hoping that someone may have figured a way to pass data to the app in a way which avoids trigerring the errors (after the app was updated).
Your comment lead me to confirm that its is not so much a problem related to the data that I try to import, but a GUI problem, most likely related to a list-box property setting within the app. I have passed this to TMW along with the data, that I am trying to import, so I am now waiting for their reply.
Cheers.
  2 Comments
Dr.B
Dr.B on 9 Jun 2021
I am prompted to accept an answer. It feels a bit strange, but I'm accepting my own reply as an answer.
Mario Malic
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.

Sign in to comment.

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!