Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 1.86 KB

mssql-eng021331.md

File metadata and controls

40 lines (33 loc) · 1.86 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic ms.custom helpviewer_keywords monikerRange
MSSQL_ENG021331
MSSQL_ENG021331
MashaMSFT
mathoma
03/14/2017
sql
replication
reference
updatefrequency5
MSSQL_ENG021331 error
=azuresqldb-mi-current||>=sql-server-2016

MSSQL_ENG021331

[!INCLUDE SQL Server SQL MI]

Message Details

Attribute Value
Product Name SQL Server
Event ID 21331
Event Source MSSQLSERVER
Component [!INCLUDEssDEnoversion]
Symbolic Name
Message Text Failed to copy user script file to the Distributor.(%ls)

Explanation

This error can occur when a subscription is initialized manually, and the scripts generated by replication, or specified in a replication command, cannot be saved to the specified directory. The error can be caused by a permissions issue: when a subscription is initialized without using a snapshot, the account under which the [!INCLUDEssNoVersion] service runs at the Publisher must have write permissions on the snapshot folder at the Distributor.

User Action

Ensure that the correct path has been specified for the snapshot folder and that the account under which the [!INCLUDEssNoVersion] service runs at the Publisher has sufficient permissions.

See Also

Specify Snapshot Options
Errors and Events Reference (Replication)
Initialize a Transactional Subscription Without a Snapshot