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.