I'm trying to get merge replication working with a small test database with just one table.
- I've setup the distributor, publisher(local distributor), created merge publications and publication snapshots. When I run the snapshot agent, I can see that the snapshots are getting created in the share.
- I've setup IIS based on the instructions for IIS7 and the Web URL is working fine.
- Created a merge pull subscription and agent at the subscriber.
But when the merge agent run I get following error consistently,
The table schema seems to copied over but no data comes thru. I've run the merge agent with verbose output level. Can anyone please see what I'm doing wrong. The following in the snippet from the merge agent output file, I have the full output file also,
if someone needs it.
...
...
2013-09-23 21:17:57.317 Bulk copying data into table 'demo'
2013-09-23 21:17:57.319 Disconnecting from OLE DB Subscriber 'REPORTDB'
2013-09-23 21:17:57.321 The merge process was unable to deliver the snapshot to the Subscriber. If using Web synchronization, the merge process may have been unable to create or write to the message file. When troubleshooting, restart the synchronization with
verbose history logging and specify an output file to which to write.
2013-09-23 21:17:57.324 OLE DB Subscriber 'REPORTDB': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2013-09-23 21:17:57.335 Percent Complete: 100
2013-09-23 21:17:57.337 The merge process was unable to deliver the snapshot to the Subscriber. If using Web synchronization, the merge process may have been unable to create or write to the message file. When troubleshooting, restart the synchronization with
verbose history logging and specify an output file to which to write.
2013-09-23 21:17:57.339 Percent Complete: 0
2013-09-23 21:17:57.341 Category:NULL
Source: Merge Replication Provider
Number: -2147201001
Message: The merge process was unable to deliver the snapshot to the Subscriber. If using Web synchronization, the merge process may have been unable to create or write to the message file. When troubleshooting, restart the synchronization with verbose history
logging and specify an output file to which to write.
2013-09-23 21:17:57.344 Percent Complete: 0
2013-09-23 21:17:57.345 Category:AGENT
Source: REPORTDB
Number: 20037
Message: The process could not bulk copy into table '"dbo"."MSmerge_tombstone"'.
2013-09-23 21:17:57.345 Percent Complete: 0
2013-09-23 21:17:57.347 Category:NULL
Source: Microsoft SQL Server Native Client 10.0
Number: 0
Message: End of file reached, terminator missing or field data incomplete
2013-09-23 21:17:57.349 Percent Complete: 0
2013-09-23 21:17:57.351 Category:NULL
Source: Microsoft SQL Server Native Client 10.0
Number: 0
Message: Batch send failed
2013-09-23 21:17:57.353 Percent Complete: 0
2013-09-23 21:17:57.355 Category:NULL
Source: Microsoft SQL Server Native Client 10.0
Number: 515
Message: Cannot insert the value NULL into column 'rowguid', table 'simpledb_repl.dbo.MSmerge_tombstone'; column does not allow nulls. INSERT fails.
2013-09-23 21:17:57.357 Percent Complete: 0
2013-09-23 21:17:57.360 Category:NULL
Source: Microsoft SQL Server Native Client 10.0
Number: 3621
Message: Failed to send batch after max errors
2013-09-23 21:17:57.364 Disconnecting from OLE DB Subscriber 'REPORTDB'