Issue:
What to do if you get the following error when trying to add a “Data Aggregator” data source to CAPC:
“Adding Data Source failed
Data source is already registered to another Performance Center”
This happened when I uninstalled and reinstalled CAPC without removing the data sources first.
Environment:
IM 2.5
Linux 6
Workaround:
The following details how to update the data repository using the Google Rest Client.
<Please see attached file for image>

Once the client is loaded, Select Tools/Options/Etc. and make sure all three boxes are selected.
<Please see attached file for image>

<Please see attached file for image>

Under Method tab, select Get, and at the bottom, select Body and click the to run the Get. You should see output in the body such as this:
To continue, you will need the value that is in the <ID>#</ID> field. In this case it is “4”.
<Please see attached file for image>

Go to the Method tab and change to “Post”.
<Please see attached file for image>

Next, click the “Body” tab near the top of the client.
<Please see attached file for image>

Select “String Body” from the list.
<Please see attached file for image>

Select Edit Content Type and Character Set Button
<Please see attached file for image>

Make sure that “application/xml” and UTF-8 are selected.
<Please see attached file for image>

Change back to the “Body” tab.
<Please see attached file for image>

Copy and paste the following XML lines into the body section (Ctrl-C and Ctrl-V work):
<DataAggregatorInfo version="1.0.0">
<NpcSyncIncrementTime>0</NpcSyncIncrementTime>
<NpcSyncBaseTime>0</NpcSyncBaseTime>
<NpcID></NpcID>
<NpcPushSyncIncrementTime>0</NpcPushSyncIncrementTime>
<NpcPushSyncBaseTime>0</NpcPushSyncBaseTime>
<NpcHostName>""</NpcHostName>
<NpcConnectionUID>""</NpcConnectionUID>
</DataAggregatorInfo>
<Please see attached file for image>

Change the URL to include the “ID #” that was located earlier. In this case it was “4”. Your URL should now look something like this:
http://<dataaggretor name or IP>:8581/rest/dataaggregator/4
Change back to the “Method” tab.
Change the Method to “Put”.
Click the button.
<Please see attached file for image>

This will update the repository and remove any information about the previous Data Collector. You can go back to:
http://<dataaggretor name or IP>:8581/rest/dataaggregator
and run a Get method and your XML should be blank now.
You can now add your data collector the CAPC again.