When looking at the validation view in CAST Management Studio (CMS), an error is seen about Duplicated User Defined Modules name as shown in the below screenshot:
These duplicated modules are not visible in CAST Management Studio.
Release | Yes/No |
---|---|
8.2.x | |
8.1.x | |
8.0.x | |
7.3.x |
RDBMS | Yes/No |
---|---|
Oracle Server | |
Microsoft SQL Server | |
CSS2 |
Below is the step-by-step scenario leading to the problem:
- Open CAST Management Studio
- Examine the Validation View.
This issue prevent all actions in CAST Management Studio : you cannot run :
- The Snapshot or analysis
- The synchronization
- The Add version
Since the duplicated modules are not visible in CAST Management Studio, check what are the duplicated modules by running the below query :
SELECT * FROM <your_mngt_db>.cms_portf_module WHERE object_name IN ( SELECT object_name FROM <your_mngt_db>.cms_portf_module GROUP BY object_name HAVING count(object_name)>1)
In the above example the type of Module is a UnionContentModuleType. The object_id This type of module is not visible in CAST Management Studio.Close CAST Management Studio
Run the following query to rename the duplicated :
UPDATE <your_mngt_db>.cms_portf_module SET definitiontype = 'UserDefinedModuleType', object_name = object_id || object_name || 'OLD_DUPLICATE' WHERE object_id IN ( SELECT object_id FROM <your_mngt_db>.cms_portf_module WHERE object_name IN ( SELECT object_name FROM <your_mngt_db>.cms_portf_module GROUP BY object_name HAVING count(object_name)>1))
- Open CAST Management Studio
- Go to the Module tab. You will see new modules with their name finishing with OLD_DUPLICATE. Select these modules and delete them.
- Click Save all (Ctrl + S) in the top left side of CAST Manage ment Studio
- Now, you can proceed to do any action in CAST Management Studio (Add version or Run snapshot or run analysis or etc...)
- If the above points do not help you to resolve the issue, contact CAST Technical Support and provide Relevant Input.