# Internal occured while trying to activate the model in analytics builder

**URL:** <https://community.cumulocity.com/t/internal-occured-while-trying-to-activate-the-model-in-analytics-builder/415>\
**Category:** Forum\
**Tags:** Streaming-Analytics-Apama, cumulocity\
**Created:** [November 11, 2022, 9:40am UTC](https://community.cumulocity.com/t/internal-occured-while-trying-to-activate-the-model-in-analytics-builder/415 "2022-11-11T09:40:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![prathyusha.kanda](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@prathyusha.kanda](https://community.cumulocity.com/u/prathyusha.kanda)\
**Post date:** [November 11, 2022, 9:40am UTC](https://community.cumulocity.com/t/internal-occured-while-trying-to-activate-the-model-in-analytics-builder/415/1 "2022-11-11T09:40:08Z")

</div>

#### What product/components do you use and which version/fix level are you on?

latest

#### Is your question related to the free trial, or to a production (customer) instance?

production

#### What are you trying to achieve? Please describe it in detail.

#### Do you get any error messages? Please provide a **full error** message screenshot and log file.

I am trying activate the model in the production mode and I received the below error.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/3/f/3f278e8fcdea1ed291b85b3ad1e53e13e2be9502.png)

#### Have you installed all the latest fixes for the products and systems you are using?

yes

---

<div class="post-metadata">

**Author:** ![Robert\_Neale](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/robert_neale/32/31965_2.png) [@Robert\_Neale](https://community.cumulocity.com/u/Robert_Neale)\
**Post date:** [November 11, 2022, 10:07am UTC](https://community.cumulocity.com/t/internal-occured-while-trying-to-activate-the-model-in-analytics-builder/415/2 "2022-11-11T10:07:42Z")

</div>

Which tenant?

---

<div class="post-metadata">

**Author:** ![prathyusha.kanda](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@prathyusha.kanda](https://community.cumulocity.com/u/prathyusha.kanda)\
**Post date:** [November 11, 2022, 10:31am UTC](https://community.cumulocity.com/t/internal-occured-while-trying-to-activate-the-model-in-analytics-builder/415/3 "2022-11-11T10:31:29Z")

</div>

Tenant id: t129954457

---

<div class="post-metadata">

**Author:** ![Robert\_Neale](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/robert_neale/32/31965_2.png) [@Robert\_Neale](https://community.cumulocity.com/u/Robert_Neale)\
**Post date:** [November 11, 2022, 11:41am UTC](https://community.cumulocity.com/t/internal-occured-while-trying-to-activate-the-model-in-analytics-builder/415/4 "2022-11-11T11:41:30Z")

</div>

What is the tenant URL?

---

<div class="post-metadata">

**Author:** ![prathyusha.kanda](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@prathyusha.kanda](https://community.cumulocity.com/u/prathyusha.kanda)\
**Post date:** [November 11, 2022, 11:59am UTC](https://community.cumulocity.com/t/internal-occured-while-trying-to-activate-the-model-in-analytics-builder/415/5 "2022-11-11T11:59:53Z")

</div>

[https://medmix.emea.cumulocity.com](https://medmix.emea.cumulocity.com)

---

<div class="post-metadata">

**Author:** ![Robert\_Neale](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/robert_neale/32/31965_2.png) [@Robert\_Neale](https://community.cumulocity.com/u/Robert_Neale)\
**Post date:** [November 11, 2022, 12:18pm UTC](https://community.cumulocity.com/t/internal-occured-while-trying-to-activate-the-model-in-analytics-builder/415/6 "2022-11-11T12:18:08Z")

</div>

If the model in question is ‘Live\_Packges\_Count’ I suspect the size of it is causing the timeout.

---

<div class="post-metadata">

**Author:** ![prathyusha.kanda](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@prathyusha.kanda](https://community.cumulocity.com/u/prathyusha.kanda)\
**Post date:** [November 11, 2022, 3:18pm UTC](https://community.cumulocity.com/t/internal-occured-while-trying-to-activate-the-model-in-analytics-builder/415/7 "2022-11-11T15:18:32Z")

</div>

I created a duplicate copy of the model application and deleted many models inside and I am facing same issue.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/8/d/8d87dda7d7f0ae6ce65050370a7c0c751f9b78ff.png)

---

<div class="post-metadata">

**Author:** ![Robert\_Neale](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/robert_neale/32/31965_2.png) [@Robert\_Neale](https://community.cumulocity.com/u/Robert_Neale)\
**Post date:** [November 14, 2022, 3:16pm UTC](https://community.cumulocity.com/t/internal-occured-while-trying-to-activate-the-model-in-analytics-builder/415/9 "2022-11-14T15:16:02Z")

</div>

Your problem has found an issue the Analytics builder.

The issue is occurring when there exist a chain of the PRODUCTION models and while all models are deployed, a copy of one of the models is deployed in the TEST mode and then un-deployed.

In this case, models “Live\_Packges\_Count #1” and “aggregation” were deployed in PRODUCTION mode, forming a chain: “Live\_Packges\_Count #1” → “aggregation”  
Later model Live\_Packges\_Count is deployed in the TEST mode. The model “Live\_Packges\_Count” had input and output blocks similar to the model “Live\_Packges\_Count #1”. When the model “Live\_Packges\_Count” is un-deployed it creates problem. After this once model “Live\_Packges\_Count #1” or “aggregation” are un-deployed, then cannot be deployed again.

We have restarted the Apama microservice and you should avoid deploying models in TEST mode which has input or output blocks similar to one of the existing already deployed model.

R&D have a task to fix the issue.

---

<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:** [May 13, 2023, 3:16pm UTC](https://community.cumulocity.com/t/internal-occured-while-trying-to-activate-the-model-in-analytics-builder/415/10 "2023-05-13T15:16:08Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
