The Merge Agent failed to update replication state information in the '%1' database. When troubleshooting, use SQL Profiler ...

The Merge Agent failed to update replication state information in the '%1' database. When troubleshooting, use SQL Profiler or restart the agent with a higher value for -HistoryVerboseLevel and check the output log file for errors. Correct any database engine conditions that may be causing internal replication stored procedures to fail.