This blog describes how to deal with the TM1 error message occasionally received when you are trying to deploy an application (TM1 version 10 onwards).

Full error message and details:
The error occurs when you are trying to re-deploy an application from Performance Modeler.
After the deployment is started you will receive the following error message:
Application cannot be deployed as the dimension is already being used.

Cause: TM1 defect

Resolution:
Go to the TM1 Web Portal and click the “Manage Jobs for IBM cognos TM1 application” button (highlighted below).
Cognos TM1 10.2 to 10.2.2 – Application cannot be deployed - Image 1
Delete any processes that are stuck in an “In Process” or “Failed” state.
Restart the relevant TM1 Server in Cognos Configurations.

Open Performance Modeler and connect to the TM1 server.
Ensure the Control objects are visible (Right click the TM1 Server name and select “Show Control Object”).

Find the following Control Object in the Cube folder:
}ElementAttributes_)tp_config

Create a New View of the cube and name it new view (doesn’t really matter what the view is named).
Cognos TM1 10.2 to 10.2.2 – Application cannot be deployed - Image 2

Set the “ApplicationMaintenanceRunning” attribute to “N” and press enter to save the changes.
Cognos TM1 10.2 to 10.2.2 – Application cannot be deployed - Image 3

Next, find the following Control Object in the Dimension folder:
}tp_applications

Create a new subset on the dimension of all the elements.
Cognos TM1 10.2 to 10.2.2 – Application cannot be deployed - Image 4
Set the “IsRunningMaintenance” attribute to “N”.
In the subset, copy the Name of the element that is the application you wish to delete, it is not obvious which row this is but you should be able to deduce this by looking at the “CubeViews“ column and comparing them to the view set up in your application e.g. {7b912a88-240e-4bd3-81d5-9ff08050c03a}.
Cognos TM1 10.2 to 10.2.2 – Application cannot be deployed - Image 5

Note:- Within the Control Objects you will see there are many Dimensions and Cubes that are named with a post fix of the Application ID’s e.g. }ElementAttributes}tp_tasks{7b912a88-240e-4bd3-81d5-9ff08050c03a}. It is these objects that need to be removed.
Cognos TM1 10.2 to 10.2.2 – Application cannot be deployed - Image 6

In the Processes folder, find the process “}tp_application_remove”, right click and select “Execute Process”, you will be prompted as below:

Paste your Application ID over “MyApp” and change “N” to “Y”
Example shown below:

Enter OK.
The Application objects should now have been removed.
Restart the server so the TM1 services are restarted correctly. The issue should now be resolved.

Back to blog