TaskMan trace shows: Comment: insertSorted The cause for the internal error when building the job container is duplicate records in the usd_applic table in the database, for one or more agents included in the job container. There are various root causes and contributing factors for how an agent might create a duplicate record in usd_applic. Development has mitigated some of those root causes, however all cases have not been addressed as of the publication of this article.
TaskMan trace shows: Comment: no name The cause for this scenario is an agent included in the job container that is not linked to a scalability server. Sort the group of target agents by "Scalability Server" in DSM Explorer. If any agent has a BLANK value for a scalability server, it will cause the job container to fail to evaluate or build. The solution for this scenario is to exclude that agent from the software job, or force the agent to re-register, to fix the linkage to an available scalability server.
Resolution
Method 1: SQL Studio Attached to the technical document is a SQL script, known as "CleanApps". This script will remove all duplicate records from the usd_applic table. It is recommended, but not required, to stop CAF while the script is executed. Once completed, terminate and recreate the job container, and it should build successfully now.
Method 2: Interactive WinOffline Download the latest copy of the WinOffline from the Client Automation Community page: https://communities.ca.com/community/ca-client-management-solutions
Copy WinOffline to the ITCM Domain Manager and navigate to the built-in CleanApps utility:
Step 1: Press the "Connect SQL" button. When running WinOffline from the domain manager, the SQL connection info for that domain manager will be populated automatically.
Step 2: It is recommended to stop CAF for the cleanup. Use the "Stop CAF" button, and the progress will be shown in the output window.
Step 3: Press the "Run CleanApps" button, and progress/output will be displayed to the window.
Step 4: Restart CAF, using the button in WinOffline or from command line. Whatever you prefer.
Method 3: Command-line WinOffline WinOffline can also perform this procedure from the command line: