When enrolling API gateway API Portal (4.5) to an API Gateway (10.0).
The enrollment fails with a UniqueKeyConflict .
<l7:Mapping action="NewOrUpdate" errorType="UniqueKeyConflict" srcId="b4bff64ea3a845db60b78151a87dc1e2" type="POLICY">
<l7:StringValue>(name) (internalTag, type) must be unique</l7:StringValue>
<l7:Mapping action="NewOrExisting" actionTaken="CreatedNew" srcId="e1b68aeecf2e5c477d2fee2096af72cd"
OTK is installed and upgraded to latest version.
There is nothing into the database related to the srcId="b4bff64ea3a845db60b78151a87dc1e2 .
Verify if you are using global policy especially message_recieved
Release : 10.0
Component : API GATEWAY
If there is already a global policy for "message_recieved" the gateway enrollment will fails as there can only be one global policy with this tag.
which relates to the error <l7:StringValue>(name) (internalTag, type) must be unique</l7:StringValue>
You can only have one global policy for type message_recieved, and you have to delete it .