When trying to remove a partnership using the AdminUI (12.52SP1CR1) you may have an error :
Error deleting partnership XXXXX
Checking the adminui server.log there are more details on the errors:
ERROR [com.ca.federation.adminui.backingbean.federation.PartnershipListBean] (http-***.YY.ZZ.QQ-8443-5)
**ERROR** com.ca.fedxps.api.remote.FedXPSException during UI operation.
com.ca.fedxps.api.remote.FedXPSException: com.ca.federation.client.XPSException: Cannot delete a related record.
>> Problem is that there is some AuthContextMapping defined for other partnership and could not be removed because they are also used.
You need to use XPSExplorer tool to delete the partnership
1)Go to partnership
2)Navigate to dproblematic partnership that you want to delete
3)Type W to get a writable copy
4)Look for attribute number of AuthnContextURIsLink(it should be 10)
5)Enter B to blank out the attribute
6)Type V to validate the record.
7)Type U o update it.
8)Type Q to come out of it.
9)Finally, delete the partnership itself in XPSexplorer
>> Restart the policy server / Restart the AdminUI