# Cant execute the EnergyData sample from predictiveAnalytics.Error loading the PMML file

**URL:** <https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223>\
**Category:** Forum\
**Tags:** analytics, Streaming-Analytics-Apama\
**Created:** [March 6, 2017, 7:38pm UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223 "2017-03-06T19:38:46Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fernando\_GonA\_alves](https://avatars.discourse-cdn.com/v4/letter/f/8e7dd6/32.png) [@Fernando\_GonA\_alves](https://community.cumulocity.com/u/Fernando_GonA_alves)\
**Post date:** [March 6, 2017, 7:38pm UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223/1 "2017-03-06T19:38:46Z")

</div>

I’m evaluating Apama , to , maybe , consider it as a predictive analytics solution.

When running the sample EnergyData , from the PredictiveAnalytics directory , and during the load of the pmm l file(at least it seems so) I get :

Failed to import PMML file 1.pmml, error null

…and further down the road , when trying to send the events (I’ve sent only in this example ) :

8\<-----------------------8\<-----------------------8\<-----------------------  
2017-03-03 00:42:43.186 ERROR [140551031355136] - com.apama.pa.pmml.sample.PredictiveAnalytics\_EnergyData\_Sample [2] Expected 15.39768434, but received NA  
2017-03-03 00:42:43.186 INFO [140551031355136] - com.apama.pa.pmml.sample.PredictiveAnalytics\_EnergyData\_Sample [2] {“ADAPA\_Error”:“Discarding request(s) to process data for model Linear\_Regression\_Model, Model doesn’t exist or No Models available”}  
8\<-----------------------8\<-----------------------8\<-----------------------

Can anyone give me a hint on this please ?

Thank you ,

Best Regards

---

<div class="post-metadata">

**Author:** ![Gimkala\_Madhavi](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@Gimkala\_Madhavi](https://community.cumulocity.com/u/Gimkala_Madhavi)\
**Post date:** [March 7, 2017, 9:24am UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223/2 "2017-03-07T09:24:39Z")

</div>

Hi,  
Can you please share below files to analyze how the sample is started ?

1. correlator log
2. 1.pmml

Regards,  
Madhavi

---

<div class="post-metadata">

**Author:** ![Yogesh\_Bhandari](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/yogesh_bhandari/32/3397_2.png) [@Yogesh\_Bhandari](https://community.cumulocity.com/u/Yogesh_Bhandari)\
**Post date:** [March 7, 2017, 10:04am UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223/3 "2017-03-07T10:04:56Z")

</div>

Hi,

Is there any event file injected in your project ? As per the error message, Seems like it is expecting some value in field but you are passing null.

Can you please check ?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [March 8, 2017, 4:37am UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223/4 "2017-03-08T04:37:36Z")

</div>

Hi Fernando,

I was able to execute the EnergyData monitor demo application successfully. It is not clear to me how you are running the sample monitor program. Please get in touch with me at the contact info below and I’m sure I can help you.

Eddie Soong  
Global Sr. Presales Engineer  
T: +1 (571)-262-7714  
M: +1 (437)-997-3938  
E: [eddie.soong@softwareag.com](mailto:eddie.soong@softwareag.com)

---

<div class="post-metadata">

**Author:** ![Senthilkumar\_Chinnathambi](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@Senthilkumar\_Chinnathambi](https://community.cumulocity.com/u/Senthilkumar_Chinnathambi)\
**Post date:** [February 13, 2019, 3:36pm UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223/5 "2019-02-13T15:36:47Z")

</div>

Hi

I am also facing the same issue, I am unable to load the pmml in to apama,.

error:-  
2019-02-13 22:20:15.477 INFO [12312:processing] - \<Instance\_1\> Importing model(s) from C:\Users\senthil\workspace101\EnergyData Sample\model\EnergyDataModel.pmml  
2019-02-13 22:20:15.489 ERROR [12312:processing] - \<Instance\_1\> Failed to import PMML file EnergyDataModel.pmml, error null  
2019-02-13 22:20:15.490 ERROR [12312:processing] - \<Instance\_1\> Failed to import PMML file EnergyDataModel.pmml, error null  
2019-02-13 22:20:15.492 INFO [12312] - com.apama.pa.pmml.sample.PredictiveAnalytics\_EnergyData\_Sample [1] Loaded models:

---

<div class="post-metadata">

**Author:** ![Sandeep\_Komarneni](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/sandeep_komarneni/32/18273_2.png) [@Sandeep\_Komarneni](https://community.cumulocity.com/u/Sandeep_Komarneni)\
**Post date:** [February 13, 2019, 3:43pm UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223/6 "2019-02-13T15:43:52Z")

</div>

Can you check if you installed the license file for Zementis/Predictive Analytics Engine ?

---

<div class="post-metadata">

**Author:** ![Senthilkumar\_Chinnathambi](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@Senthilkumar\_Chinnathambi](https://community.cumulocity.com/u/Senthilkumar_Chinnathambi)\
**Post date:** [February 13, 2019, 4:05pm UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223/7 "2019-02-13T16:05:47Z")

</div>

Hi Sandeep,

Thanks for reply.

The license is installed in my APAMA\_WORK/ directory. Do I need to run the Zementis(Adapa app)?

---

<div class="post-metadata">

**Author:** ![Sandeep\_Komarneni](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/sandeep_komarneni/32/18273_2.png) [@Sandeep\_Komarneni](https://community.cumulocity.com/u/Sandeep_Komarneni)\
**Post date:** [February 13, 2019, 4:13pm UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223/8 "2019-02-13T16:13:03Z")

</div>

You would need to install the license file to APAMA\_WORK/license or SAG\_HOME/Zementis/adapa-bundle/lib folder. The later being the preferred location

---

<div class="post-metadata">

**Author:** ![Senthilkumar\_Chinnathambi](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@Senthilkumar\_Chinnathambi](https://community.cumulocity.com/u/Senthilkumar_Chinnathambi)\
**Post date:** [February 13, 2019, 4:22pm UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223/9 "2019-02-13T16:22:15Z")

</div>

Thanks Sandeep.

I have install the license already in the APAMA\_WORK and i dont see any error message relate to license.

---

<div class="post-metadata">

**Author:** ![Sandeep\_Komarneni](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/sandeep_komarneni/32/18273_2.png) [@Sandeep\_Komarneni](https://community.cumulocity.com/u/Sandeep_Komarneni)\
**Post date:** [February 13, 2019, 4:28pm UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223/10 "2019-02-13T16:28:23Z")

</div>

Are you sure you installed “zementis.license” to APAMA\_WORK/license ? Please note that this license file is a bit different to Software AG standard license format (i.e. not xml)

If you are using a license downloaded from solution book, then you would need to use the license file named ‘PATPA\_PredictiveAnalyticsEngine\_LicenseKey-\*.lic’ and rename it to zementis.license

---

<div class="post-metadata">

**Author:** ![Senthilkumar\_Chinnathambi](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@Senthilkumar\_Chinnathambi](https://community.cumulocity.com/u/Senthilkumar_Chinnathambi)\
**Post date:** [February 13, 2019, 4:32pm UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223/11 "2019-02-13T16:32:36Z")

</div>

Yes I have installed zemantis.license file not the standard xml file.

---

<div class="post-metadata">

**Author:** ![Sandeep\_Komarneni](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/sandeep_komarneni/32/18273_2.png) [@Sandeep\_Komarneni](https://community.cumulocity.com/u/Sandeep_Komarneni)\
**Post date:** [February 13, 2019, 4:36pm UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223/12 "2019-02-13T16:36:22Z")

</div>

can you confirm if you installed the license file to APAMA\_WORK folder or APAMA\_WORK/license folder?

It should be installed to APAMA\_WORK/license

---

<div class="post-metadata">

**Author:** ![Senthilkumar\_Chinnathambi](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@Senthilkumar\_Chinnathambi](https://community.cumulocity.com/u/Senthilkumar_Chinnathambi)\
**Post date:** [February 13, 2019, 4:43pm UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223/13 "2019-02-13T16:43:18Z")

</div>

Yes Sandeep,

---

<div class="post-metadata">

**Author:** ![Sandeep\_Komarneni](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/sandeep_komarneni/32/18273_2.png) [@Sandeep\_Komarneni](https://community.cumulocity.com/u/Sandeep_Komarneni)\
**Post date:** [February 14, 2019, 7:10am UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223/14 "2019-02-14T07:10:59Z")

</div>

Did you mean Yes for APAMA\_WORK or Yes for APAMA\_WORK/license ?

Can you share details about which version of Apama you are using and share the full correlator log?

---

<div class="post-metadata">

**Author:** ![Senthilkumar\_Chinnathambi](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@Senthilkumar\_Chinnathambi](https://community.cumulocity.com/u/Senthilkumar_Chinnathambi)\
**Post date:** [February 14, 2019, 7:20am UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223/15 "2019-02-14T07:20:45Z")

</div>

Hi Sandeep,

I resolved the issue, the issue with license file invalid. I have replaced the license file and it working now.

I am using 10.1 version.

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [April 2, 2021, 3:38pm UTC](https://community.cumulocity.com/t/cant-execute-the-energydata-sample-from-predictiveanalytics-error-loading-the-pmml-file/4223/16 "2021-04-02T15:38:02Z")

</div>


