Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Hello
I have a Thingworx trial edition (Docker).
ERRORS LOG :
Anomaly Alert [ThingWatcher_Prototype-Consumption-ConsumptionAlert] Failed when in [TRAINING] State. Thingwatcher Error Code :: [WAT1001E] Message :: Operation exception. {Throwable=[Trainer.TrainingJobErrorException: Training job with id 3 entered into an incomplete state [FAILED] unable to process models. Error message: [UnrecognizedPropertyException: Unrecognized field "code" (class com.thingworx.analytics.results.api.ResultResponse), not marked as ignorable (7 known properties: "status", "tags", "id", "description", "lastModified", "name", "resultUri"])_ at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@1d681dfb; line: 1, column: 12] (through reference chain: com.thingworx.analytics.results.api.ResultResponse["code"])]}]
Returning a FAILED state for TimedValue [timestamp=1527429742927, value=57.76733268258257]. ThingWatcherMessage [timestamp=2018-05-27T14:02:22.944, severity=ERROR, state=ThingWatcherInternalState [internal=OBTAINING_MODEL, external=TRAINING], messageCode=WAT1001E, messageText=Operation exception. {Throwable=[Trainer.TrainingJobErrorException: Training job with id 2 entered into an incomplete state [FAILED] unable to process models. Error message: [UnrecognizedPropertyException: Unrecognized field "code" (class com.thingworx.analytics.results.api.ResultResponse), not marked as ignorable (7 known properties: "status", "tags", "id", "description", "lastModified", "name", "resultUri"])_ at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@2a05af12; line: 1, column: 12] (through reference chain: com.thingworx.analytics.results.api.ResultResponse["code"])]}]]_com.thingworx.analytics.thingwatcher.exceptions.ThingWatcherOperationException: Error accessing PMML Model URI, cannot download model_ at com.thingworx.analytics.thingwatcher.ThingWatcherInternal.isModelAvailableAfterTraining(ThingWatcherInternal.java:673)_ at com.thingworx.analytics.thingwatcher.ThingWatcherInternal.runStateMachineFor(ThingWatcherInternal.java:410)_ at com.thingworx.analytics.thingwatcher.ThingWatcherInternal.bareMonitor(ThingWatcherInternal.java:302)_ at com.thingworx.analytics.thingwatcher.ThingWatcherInternal.monitor(ThingWatcherInternal.java:229)_ at com.thingworx.analytics.thingwatcher.ThingWatcher.monitor(ThingWatcher.java:57)_ at com.thingworx.system.subsystems.alerts.anomalyalert.AnomalyMonitor.monitor(AnomalyMonitor.java:258)_ at com.thingworx.system.subsystems.alerts.data.Alert.doAnomalyEvaluation(Alert.java:565)_ at com.thingworx.system.subsystems.alerts.handlers.NumberAlert.evaluateAlarm(NumberAlert.java:136)_ at com.thingworx.system.subsystems.alerts.data.AlertList.checkAlerts(AlertList.java:87)_ at com.thingworx.things.Thing.rawSetPropertyVTQ(Thing.java:4045)_ at com.thingworx.things.Thing.rawSetPropertyVTQ(Thing.java:3866)_ at com.thingworx.things.Thing.handleSetPropertyWithoutUpdate(Thing.java:4111)_ at com.thingworx.things.Thing.internalSetPropertyVTQ(Thing.java:4102)_ at com.thingworx.things.Thing.setPropertyVTQ(Thing.java:4224)_ at com.thingworx.things.Thing.forcePropertiesVTQ(Thing.java:4126)_ at com.thingworx.webservices.processors.APIProcessor.writeProperties(APIProcessor.java:236)_ at com.thingworx.webservices.processors.APIProcessor.dispatchRequest(APIProcessor.java:66)_ at com.thingworx.system.subsystems.wsexecution.processor.WSExecutionInstance.run(WSExecutionInstance.java:49)_ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)_ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)_ at java.lang.Thread.run(Thread.java:745)_Caused by: com.thingworx.analytics.thingwatcher.Trainer$TrainingJobErrorException: Training job with id 2 entered into an incomplete state [FAILED] unable to process models. Error message: [UnrecognizedPropertyException: Unrecognized field "code" (class com.thingworx.analytics.results.api.ResultResponse), not marked as ignorable (7 known properties: "status", "tags", "id", "description", "lastModified", "name", "resultUri"])_ at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@2a05af12; line: 1, column: 12] (through reference chain: com.thingworx.analytics.results.api.ResultResponse["code"])]_ at com.thingworx.analytics.thingwatcher.Trainer.lambda$getPMMLModelUri$1(Trainer.java:69)_ at java.util.Optional.orElseThrow(Optional.java:290)_ at com.thingworx.analytics.thingwatcher.Trainer.getPMMLModelUri(Trainer.java:69)_ at com.thingworx.analytics.thingwatcher.ThingWatcherInternal.isModelAvailableAfterTraining(ThingWatcherInternal.java:654)_ ... 20 more_
http://10.0.75.1:9090/training
http://10.0.75.1:9080/results/models
Solved! Go to Solution.
Hi
For TTE, you can look under %USERPROFILE%/twx-analytics/anomalydetection/result-standalone.properties
You might have
file.storage.path=/results/models
in which case change it to
file.storage.path=file:///results/models
then restart TTE
Hope this helps
Kind regards
Christophe
Thank you for opening this Thread here. Could you please confirm if you are using TWX version 8.0, or any other?
You can follow this article: https://www.ptc.com/en/support/article?n=CS271378&posno=2&q=calibrating%20fails&source=search
Regards,
Mohit
I am using Thingworx Trial Edition
ThingWorx 8.2.0-b278 (Trial Edition Docker)
After Training I got Failed status !
Anomaly Alert [ThingWatcher_Prototype-Consumption-ConsumptionAlert] Failed when in [TRAINING] State. Thingwatcher Error Code :: [WAT1001E] Message :: Operation exception. {Throwable=[Trainer.TrainingJobErrorException: Training job with id 9 entered into an incomplete state [FAILED] unable to process models. Error message: [UnrecognizedPropertyException: Unrecognized field "code" (class com.thingworx.analytics.results.api.ResultResponse), not marked as ignorable (7 known properties: "status", "tags", "id", "description", "lastModified", "name", "resultUri"])_ at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@6c5d0531; line: 1, column: 12] (through reference chain: com.thingworx.analytics.results.api.ResultResponse["code"])]}]
Returning a FAILED state for TimedValue [timestamp=1527543648416, value=13.41610369311857]. ThingWatcherMessage [timestamp=2018-05-28T21:40:48.447, severity=ERROR, state=ThingWatcherInternalState [internal=OBTAINING_MODEL, external=TRAINING], messageCode=WAT1001E, messageText=Operation exception. {Throwable=[Trainer.TrainingJobErrorException: Training job with id 9 entered into an incomplete state [FAILED] unable to process models. Error message: [UnrecognizedPropertyException: Unrecognized field "code" (class com.thingworx.analytics.results.api.ResultResponse), not marked as ignorable (7 known properties: "status", "tags", "id", "description", "lastModified", "name", "resultUri"])_ at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@6c5d0531; line: 1, column: 12] (through reference chain: com.thingworx.analytics.results.api.ResultResponse["code"])]}]]_com.thingworx.analytics.thingwatcher.exceptions.ThingWatcherOperationException: Error accessing PMML Model URI, cannot download model_ at com.thingworx.analytics.thingwatcher.ThingWatcherInternal.isModelAvailableAfterTraining(ThingWatcherInternal.java:673)_ at com.thingworx.analytics.thingwatcher.ThingWatcherInternal.runStateMachineFor(ThingWatcherInternal.java:410)_ at com.thingworx.analytics.thingwatcher.ThingWatcherInternal.bareMonitor(ThingWatcherInternal.java:302)_ at com.thingworx.analytics.thingwatcher.ThingWatcherInternal.monitor(ThingWatcherInternal.java:229)_ at com.thingworx.analytics.thingwatcher.ThingWatcher.monitor(ThingWatcher.java:57)_ at com.thingworx.system.subsystems.alerts.anomalyalert.AnomalyMonitor.monitor(AnomalyMonitor.java:258)_ at com.thingworx.system.subsystems.alerts.data.Alert.doAnomalyEvaluation(Alert.java:565)_ at com.thingworx.system.subsystems.alerts.handlers.NumberAlert.evaluateAlarm(NumberAlert.java:136)_ at com.thingworx.system.subsystems.alerts.data.AlertList.checkAlerts(AlertList.java:87)_ at com.thingworx.things.Thing.rawSetPropertyVTQ(Thing.java:4045)_ at com.thingworx.things.Thing.rawSetPropertyVTQ(Thing.java:3866)_ at com.thingworx.things.Thing.handleSetPropertyWithoutUpdate(Thing.java:4111)_ at com.thingworx.things.Thing.internalSetPropertyVTQ(Thing.java:4102)_ at com.thingworx.things.Thing.setPropertyVTQ(Thing.java:4224)_ at com.thingworx.things.Thing.forcePropertiesVTQ(Thing.java:4126)_ at com.thingworx.webservices.processors.APIProcessor.writeProperties(APIProcessor.java:236)_ at com.thingworx.webservices.processors.APIProcessor.dispatchRequest(APIProcessor.java:66)_ at com.thingworx.system.subsystems.wsexecution.processor.WSExecutionInstance.run(WSExecutionInstance.java:49)_ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)_ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)_ at java.lang.Thread.run(Thread.java:745)_Caused by: com.thingworx.analytics.thingwatcher.Trainer$TrainingJobErrorException: Training job with id 9 entered into an incomplete state [FAILED] unable to process models. Error message: [UnrecognizedPropertyException: Unrecognized field "code" (class com.thingworx.analytics.results.api.ResultResponse), not marked as ignorable (7 known properties: "status", "tags", "id", "description", "lastModified", "name", "resultUri"])_ at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@6c5d0531; line: 1, column: 12] (through reference chain: com.thingworx.analytics.results.api.ResultResponse["code"])]_ at com.thingworx.analytics.thingwatcher.Trainer.lambda$getPMMLModelUri$1(Trainer.java:69)_ at java.util.Optional.orElseThrow(Optional.java:290)_ at com.thingworx.analytics.thingwatcher.Trainer.getPMMLModelUri(Trainer.java:69)_ at com.thingworx.analytics.thingwatcher.ThingWatcherInternal.isModelAvailableAfterTraining(ThingWatcherInternal.java:654)_ ... 20 more_
Hi
The error you have is the same as in https://www.ptc.com/en/support/article?n=CS270006 .
So you may want to double check you use the right syntax for the file.storage.path property in microservice.properties file as it varies with version.
Hope this helps
Christophe
How I can check this.
I have a thingworx trial edition installed in windows (Docker)
Hi
For TTE, you can look under %USERPROFILE%/twx-analytics/anomalydetection/result-standalone.properties
You might have
file.storage.path=/results/models
in which case change it to
file.storage.path=file:///results/models
then restart TTE
Hope this helps
Kind regards
Christophe