Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 2.86 KB

File metadata and controls

50 lines (38 loc) · 2.86 KB
title MSSQL_REPL027056
description MSSQL_REPL027056
author MashaMSFT
ms.author mathoma
ms.date 09/25/2024
ms.service sql
ms.subservice replication
ms.topic reference
ms.custom
updatefrequency5
helpviewer_keywords
MSSQL_REPL027056 error
monikerRange =azuresqldb-mi-current||>=sql-server-2016

MSSQL_REPL027056

[!INCLUDE SQL Server SQL MI]

Message Details

Attribute Value
Product Name SQL Server
Event ID 27056
Event Source MSSQLSERVER
Component [!INCLUDEssDEnoversion]
Symbolic Name
Message Text The merge process was unable to change generation history at the '%1'. When troubleshooting, restart the synchronization with verbose history logging and specify an output file to which to write.

Explanation

This error is typically raised as a result of contention in merge replication system tables that have grown excessively large. Large system tables are typically caused by a long publication retention period, because metadata must be stored in these tables until the retention period is reached.

User Action

To resolve the issue:

  1. Decrease the value of the -DownloadGenerationsPerBatch and -UploadGenerationsPerBatch parameters for the Merge Agent to allow processing to continue while you address the underlying issue causing the error. Agent parameters can be specified in agent profiles and on the command line. For more information, see:

  2. Specify the lowest setting possible for the publication retention period. For more information, see Subscription Expiration and Deactivation.

  3. As part of maintenance for merge replication, occasionally check the growth of the system tables associated with merge replication: MSmerge_contents, MSmerge_genhistory, and MSmerge_tombstone, MSmerge_current_partition_mappings, and MSmerge_past_partition_mappings. Periodically re-index these tables. For more information, see Reorganize and Rebuild Indexes.

Related content