Yes. Why the Distributor agent does not skip these errors? Is there another
setting somewhere else.
You can specify this on the profile or on the commandline. Pls try adding
the -SkipErrors parameter to the commandline of the job and run the job
manually.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com .
georgeg - 30 Jan 2007 15:47 GMT
Paul,
I did specify it on the profile, and keep getting the errors and replication
stops and then continues again after a timeout.
I look Error details and notice that it uses the bcp commands to insert the
records. For example
bcp RYS_Historian.dbo.code in code_8#1.bcp -e "errorfile"
How can you add -skiperrors on the bcp command?
Thanks again.

Signature
George Gopie
> You can specify this on the profile or on the commandline. Pls try adding
> the -SkipErrors parameter to the commandline of the job and run the job
> manually.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com .
Paul Ibison - 30 Jan 2007 19:28 GMT
OK - I haven't used the -SkipErrors for the initialization process before.
I'll try to repro tomorrow.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com .
georgeg - 30 Jan 2007 16:04 GMT
Paul,
Here is the Full Error mEssage
Error messages:
The process could not bulk copy into table '"dbo"."Code"'. (Source:
MSSQL_REPL, Error number: MSSQL_REPL20037)
Get help: http://help/MSSQL_REPL20037
Batch send failed
Violation of PRIMARY KEY constraint 'Code_PK'. Cannot insert duplicate key
in object 'dbo.Code'. (Source: MSSQLServer, Error number: 2627)
Get help: http://help/2627
To obtain an error file with details on the errors encountered when
initializing the subscribing table, execute the bcp command that appears
below. Consult the BOL for more information on the bcp utility and its
supported options. (Source: MSSQLServer, Error number: 20253)
Get help: http://help/20253
bcp "RYS_Historian"."dbo"."Code" in
"\\sprs77\rysrepldata\unc\SPRS77_RYS_RYS_SPRS77_PUBL\20070129112777\Code_8#1.bcp"
-e "errorfile" -t"\n<x$3>\n" -r"\n<,@g>\n" -m10000 -SSPRS77 -T -w (Source:
MSSQLServer, Error number: 20253)

Signature
George Gopie
> You can specify this on the profile or on the commandline. Pls try adding
> the -SkipErrors parameter to the commandline of the job and run the job
> manually.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com .