Previous Topic: The Contractual User Type Attribute in the Account License Data Tab does not Work for all License Types

Next Topic: Siebel

Duplicate Email Entry when Modifying Email Attribute and Using Weak Synchronization

Symptom:

I assigned a provisioning role to a user with a SAP account template with weak synchronization enabled and modified the email attribute. As a result, a duplicate email entry was added to the SAP account. One value contains the modifications, but the other value does not.

Example: Modifying the Email attribute on a SAP Account Template with Weak Synchronization Enabled

This example shows what happens when you modify the email attribute on SAP account template with weak synchronization enabled.

In this example, the account template has the following rule:

Email address

Default

Description

home

%AC%@company.com

true

Use during business hours

false

As a result, Bob Jones has the following email address:

bobjones@company.com,default,Used during business hours,not_home

If you change the description capability attribute and update the template, for example,

%AC%@company.com,default=yes,description=Use during EST business hours,home=no

Bobs account now has two email addresses, one with the modified attribute and one without:

bobjones@company.com,not_default,Used during business hours,not_home
bobjones@company.com,default,Used during EST business hours,not_home

Solution:

Weak synchronization only adds capabilities to accounts, and does not remove them, therefore this behaviour is expected when you use weak synchronization and modify the email attribute. If you want to continue to use weak synchronization when modifying the email attribute on SAP account templates, consider using the SAPEmailWeakSyncConverter. The converter prevents the addition of duplicate email entries to SAP accounts when you modify the email attribute and use weak synchronization.

The SAPEmailWeakSyncConverter is disabled by default. To enable the convertor, edit the SAP Connectors Connector.xml file.

Note: For more information about overriding a connector, see Connector Configuration File in the Java CS Implementation Guide.

To enable the SAPEmailWeakSyncConverter

  1. Navigate to the following directory:
    jcs_home/conf/override/sap/
    
  2. Open the SAMPLE.connector.xml file, and navigate to the converters section.
  3. After the FLEXI_STR:SAPDate entry, add the following:
    <entry key="FLEXI_STR:SAPEmail">
    <bean class="com.ca.jcs.sap.converter.SAPEmailWeakSyncConverter"></bean>
    </entry>
    
  4. Navigate to the validators section and add the following after the SAPDate validator entry:
    <entry key="FLEXI_STR:SAPEmail">
    <bean class="com.ca.jcs.sap.validator.SAPEmailAttributeValidator"></bean>
    </entry>
    
  5. Rename the Sample.Conenctor.xml to connector.xml.
  6. Restart the Java CS.

    The convertor is enabled and duplicate email entries are not added to SAP accounts when you modify the email attribute SAP account templates and you use weak synchronization.