Article - CS210313

Edit Attribute Value triggers an IllegalArgumentException with error message "ATTENTION: invalid floating-point-with-units value: <unit of measure>" when using Edit Multiple Objects or Create Multiple Parts in Windchill PDMLink 10.2

Modified: 23-Aug-2016   


Applies To

  • Windchill PDMLink 10.2 M020 to M030

Description

  • Using Edit Attribute Value while  creating New Multiple Parts or Edit Multiple Objects triggers an error message in the browser:
Attention: Required information is missing or invalid attribute value(s) were found. The value is invalid. The value must be a number or, if entering units, enter a space between the number and the units.
  • A Default Value for the Attribute has been defined at the Type and Attribute Manager
  • The Attribute has to be of the type Real Number with Unit
  • Beginning with post 10.2 M020 CPS15 releases the error message is as follows:
ATTENTION: invalid-floating-points-with-units-value: <unit of measurement>
TRACE [ajp-bio-8010-exec-2] com.ptc.core.components.forms.CreateEditFormProcessorHelper wcadmin - --- found form field with attribute key for: part$setAttributesWizStepForCreateMultiPart$OR:wt.folder.Cabinet:45641$___newRowObj10713445520729_col_SoftAttr+wt.units.FloatingPointWithUnits+WCTYPE|wt.part.WTPart~IBA|Width~~NEW|-5591740914048249820~NAME|DEFAULT|false+null___textbox
TRACE [ajp-bio-8010-exec-2] com.ptc.core.components.forms.CreateEditFormProcessorHelper wcadmin - --- --- AttributeKey found: SoftAttr+wt.units.FloatingPointWithUnits+WCTYPE|wt.part.WTPart~IBA|Width~~NEW|-5591740914048249820~NAME|DEFAULT|false+null
 [ajp-bio-8010-exec-2] com.ptc.core.components.forms.CreateEditFormProcessorHelper wcadmin - --- --- attribute id = WCTYPE|wt.part.WTPart~IBA|Width~~NEW|-5591740914048249820~NAME|DEFAULT|false
TRACE [ajp-bio-8010-exec-2] com.ptc.core.components.forms.CreateEditFormProcessorHelper wcadmin - --- --- formVal is [12]
TRACE [ajp-bio-8010-exec-2] com.ptc.core.components.forms.CreateEditFormProcessorHelper wcadmin - --- --- oldVal is [0]
[ajp-bio-8010-exec-2] com.ptc.core.components.forms.CreateEditFormProcessorHelper wcadmin - --- --- dbVal is [m]
ERROR [ajp-bio-8010-exec-2] com.ptc.jca.mvc.controllers.ActionController wcadmin - java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.ptc.netmarkets.util.beans.NmCommandBean.execute(NmCommandBean.java:2335)
    at com.ptc.jca.mvc.controllers.ActionController.executeWizardAction(ActionController.java:238)
    at com.ptc.jca.mvc.controllers.ActionController.processRequest(ActionController.java:125)
    [...]
Caused by: java.lang.IllegalArgumentException: invalid floating-point-with-units value: <unit of measure>
    at com.ptc.core.components.rendering.guicomponents.NumericInputComponent.validateDBValue(NumericInputComponent.java:393)
    at com.ptc.core.components.forms.AttributeInputField.setDBValue(AttributeInputField.java:100)
    at com.ptc.core.components.forms.CreateEditFormProcessorHelper.setDBValueField(CreateEditFormProcessorHelper.java:395)
    at com.ptc.core.components.forms.CreateEditFormProcessorHelper.getStandardAttributesFromMap(CreateEditFormProcessorHelper.java:344)
    at com.ptc.core.components.forms.CreateEditFormProcessorHelper._getStandardAttributes(CreateEditFormProcessorHelper.java:233)
    at com.ptc.core.components.forms.CreateEditFormProcessorHelper.getStandardAttributes(CreateEditFormProcessorHelper.java:195)
    at com.ptc.core.components.forms.CreateObjectFormProcessor.createAndValidateTypeInstance(CreateObjectFormProcessor.java:205)



 
 
This is a printer-friendly version of Article 210313 and may be out of date. For the latest version click CS210313