Article - CS300776

Error "java.lang.NumberFormatException: For input string XXXX" is returned when attempting to score new records in ThingWorx Analytics Server

Modified: 11-Feb-2019   


Applies To

  • ThingWorx Analytics 8.3.2 to 8.4

Description

  • Following error is reported when attempting to score new records in ThingWorx Analytics Server
The row failed to evaluate due to Unexpected value(s) found in the record.
! java.lang.NumberFormatException: For input string: "XXXX"
! at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
! at java.lang.Long.parseLong(Long.java:589)
! at java.lang.Long.parseLong(Long.java:631)
! at org.jpmml.evaluator.TypeUtil.parseInteger(TypeUtil.java:121)
! at org.jpmml.evaluator.TypeUtil.parse(TypeUtil.java:85)
! at org.jpmml.evaluator.TypeUtil.parseOrCast(TypeUtil.java:69)
! at org.jpmml.evaluator.FieldValueUtil.create(FieldValueUtil.java:428)
! at org.jpmml.evaluator.RichSimplePredicate.getValue(RichSimplePredicate.java:49)
! at org.jpmml.evaluator.FieldValue.compareTo(FieldValue.java:143)
! at org.jpmml.evaluator.FieldValue.compareTo(FieldValue.java:136)
! at org.jpmml.evaluator.PredicateUtil.evaluateSimplePredicate(PredicateUtil.java:131)
! at org.jpmml.evaluator.PredicateUtil.evaluatePredicate(PredicateUtil.java:63)
! at org.jpmml.evaluator.PredicateUtil.evaluate(PredicateUtil.java:51)

 
  • This occurs when scoring a record against a external model imported via pmml
  • ThingWorx Services using PredictionThing.RealtimeScore() service reports
Error executing service predictUptake. Message :: TypeError: Cannot read property "rows" from undefined - See Script Error Log for more details.
This is a printer-friendly version of Article 300776 and may be out of date. For the latest version click CS300776