Article - CS408937
Getting error "For input string XX,XXX" when using AffectedObjects endpoint with Manufactured Quantity having string value in Windchill Rest Services
Modified: 15-Jan-2024
Applies To
- Windchill PDMLink 12.1
Description
- Getting error "For input string XX,XXX" when using AffectedObjects endpoint with Manufactured Quantity having string value
- If Manufactured Quantity has string values such as 100,000. AffectedObjects endpoint is returning following error :
"code": null,
"message": "For input string: \"100,000\""
}
- Error observed in MethodServer log
ERROR [ajp-nio-127.0.0.1-8010-exec-8] com.ptc.odata.windchill.entity.processor.EntityAttributeProcessor <user> - Entity OR:com.ptc.qualitymanagement.capa.RelevantRequestDataProductLink could not be processed, failed during processing ManufacturedQuantity
ERROR [ajp-nio-127.0.0.1-8010-exec-8] com.ptc.odata.windchill.entity.processor.EntityAttributeProcessor <user> - Unable to create entities for objects java.lang.NumberFormatException: For input string: "100,000"
at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054)
at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.base/java.lang.Double.parseDouble(Double.java:543)
at java.base/java.lang.Double.valueOf(Double.java:506)
at com.ptc.odata.windchill.entity.property.capa.AffectedObjectManufacturedQuantityPropertyDelegate.getProperty(AffectedObjectManufacturedQuantityPropertyDelegate.java:45)
at com.ptc.odata.windchill.entity.property.capa.AffectedObjectManufacturedQuantityPropertyDelegate.getProperty(AffectedObjectManufacturedQuantityPropertyDelegate.java:29)
This is a printer-friendly version of Article 408937 and may be out of date. For the latest version click CS408937