I am working on SQL replication and facing some issues. I am now trying to enable output logging for replication by adding the following commands to the Merge agent under SQL Server Agent.
-Output C:\ReplOutput.txt -OutputVerboseLevel 2
However, when I try to run the agent again it fails and gives me below error:
String or binary data would be truncated. [SQLSTATE 22001] (Error 8152)
It works fine when I remove those commands but I need them for error logging and checking issues in my replication.