Skip to main content

6 replies

tsaifee-214-AlexandriteAuthor
14-Alexandrite
February 11, 2019

Here is an updated version of the PDF and XML with some additional troubleshooting.

Translate
15-Moonstone
February 19, 2021

Hello,

 

I am trying to follow the PDF but I am facing few issues. Would you please like to help me? I am using ThingWorx 9.0.0-b9557.

 

1. When I click generate model, I don't see any error and model ID is returned to me. But I don't see any model anywhere. Neither under Analytics builder > Model nor at Analytics Manager > Analytics Model. Same issue is occurring when I am directly using the service in system.

2. When I am clicking on Predict result I am seeing below error:
"Error executing service predictUptake. Message :: TypeError: Cannot read property "rows" from undefined" 

  1. Request Method:
    POST
  2. Status Code:
    500 ( Which mean model is not reachable)


Now I tried to upload the PMML model manually as per attached screen, everything works fine. Can you please help me understand why is this happening?

 

Regards

Shyam

Translate
tsaifee-214-AlexandriteAuthor
14-Alexandrite
February 19, 2021

Hello,

 

1) You cannot see a model anywhere

This is normal, a prediction model that is uploaded through the API is not accessible through Analytics Builder, only through the API.

 

2) Predict Result failing

This could be because the result datashape from service RealtimeScore changed between v8.x and v9.0. Please replace your service code for co2.Helper > predictUptake with the attached code and retry. If you read the attached code you will see the changed result datashape - v8.x commented out on line 43 and v9.0 used on line 45.

 

I hope that helps. Best regards, Tanveer.

Translate