Event ID - 21331

Event Id21331
SourceMSSQLServer
DescriptionFailed to copy user script file to the Distributor.(%ls)
Event InformationCAUSE:
This error occurs when the scripts generated by replication, or specified in a replication command, cannot be saved to the specified directory.
Under certain circumstances you may see this error when manually executing sp_repladdcolumn even if you do not intentionally specify the @schema_change_script argument.

RESOLUTION:
Follow these steps:
1. If you are executing the replication stored procedures directly, doublecheck that all the parameters are correct.
2. If the calling process executes as sysadmin, check the permissions of the SQL Server startup account to create files in the snapshot folder or other specified directories. Otherwise, check the permissions of the SQL Server startup account to create files in the snapshot folder or other specified directories.
Reference LinksMicrosoft product: SQL Server Version: 2000.80.760.0 Event Source: MSSQLServer Event ID: 21331

Catch threats immediately

We work side-by-side with you to rapidly detect cyberthreats
and thwart attacks before they cause damage.

See what we caught

Did this information help you to resolve the problem?

Yes: My problem was resolved.
No: The information was not helpful / Partially helpful.