If you want to use persistent targeted e-mail (the TemplateEmailPersister component) with a composite repository, and the primary view is an LDAP repository, you must change the user_id column in the dps_user_mailing table from the following:

varchar(40) references dps_user(id)

to the following:


This change is necessary because when you use a composite repository with LDAP as the primary view, the ID that is stored in this column is the LDAP user ID, not the default Dynamo ID. You can make the change to the database or to the SQL scripts that initialize it.

For more information about the TemplateEmailPersister component, see Stopped E-mail Campaigns.