Error in creation SAML 2.0 Template Authentication Scheme

Document ID : KB000101071
Last Modified Date : 20/06/2018
Show Technical Document Details
Following error occurred when submit of creation of SAML 2.0 template Authentication scheme. 

Error: Task failed. 
Fatal: Failed to execute CreateSAMLv2IdPEvent. ERROR MESSAGE: SmApiWrappedException:Legacy Federation object CA.SM::SAMLv2IdP@21-eb6043d7-cd9a-4a50-8361-7bc278804eb2(SAML-2.0-AuthScheme-test4) cannot be saved; it conflicts with object CA.SM::SAMLv2IdP@21-a5819e12-6f3e-46ba-928f-ab0880415071 which is active

Also following error in server.log.

2018-06-13 15:39:44,936 ERROR [com.netegrity.ims.exception.EventExecuteStateException] (Thread-15526 (HornetQ-client-global-threads-1224361855)) Execution of event: CreateSAMLv2IdPEvent failed. Exception encountered: SmApiWrappedException:Legacy Federation object CA.SM::SAMLv2IdP@21-4a758c6a-9b86-4d2d-a82d-c73fb7a3cb81(SAML-2.0-AuthScheme-test2) cannot be saved&#59; it conflicts with object CA.SM::SAMLv2IdP@21-cee3f12b-7f25-4713-84e2-956a5ef8a7ee which is active 

2018-06-13 15:39:44,936 ERROR [com.netegrity.ims.businessprocess.IMSEventController] (Thread-15526 (HornetQ-client-global-threads-1224361855)) Error during event execution [f7df02a1-0a83ea87-10d248d3-6be2776c] CreateSAMLv2IdPEvent 

06-13 15:41:42,532 ERROR [ims.ui] (default task-16) AttributeNotPresentException: This method requires the presence of an attribute which was not provided. The attribute is named UrlEncodeAttrCookieData. 
at com.netegrity.llsdk6.imsimpl.BaseObject.set( [imsapi6.jar:] 
at ....

CA Single Sign-On r12.7
It looks like that IdP ID which is active is used for SAML 2.0 AUth Scheme. 
Please use IdP ID unique for each SAML 2.0 Authentication Scheme.
Additional Information:
SAML 2.0 Authentication Scheme--General Settings