SQL Server 2014 Availability Group – Profile Name Not Valid

availability-groupssql serversql server 2014

I tried creating an availability group but keep encountering this error during the validation checks

Create failed for Database 'HADR Seeding Test
2d074a6f-c035-4046-ae4e-045436ca56c5'.

An exception occurred while executing a Transact-SQL statement or
batch. (Microsoft.SqlServer.ConnectionInfo)

profile name is not valid (Microsoft SQL Server, Error: 14607)

Best Answer

As @Nic rightly suggested, the secondary replica had a trigger to send emails on CREATE DATABASE statements which was set to use an incorrect profile name. I corrected that and validation checks completed successfully.