As the title says, I have 1 subscription (out of a total 17 subscriptions) with 35 articles that will not upload all changes from the subscriber. This subscription has no problems downloading data, making schema changes or handling deletes from the
subscriber. This is a pull subscription with no filters and all articles are bidirectional.
Subscriber 2008R2 SP2 SQL Express on Windows 7
Publisher/Distributor 2008R2 SQL Server on Windows Server 2008
Not all 35 articles get updated at once, but they are related. Depending on the amount of data that needs to be uploaded to the distributor, I can get different amounts of data moved up. Regardless of the amount of data moving up to the server,
I get an error.
I can replicate with either RMO or REPLMERG.EXE, I have been testing now with replemerg so I can easily change parameters.
With replemerge, here is part of the ouput:
Percent Complete: 0
2013-08-21 05:06:13.592 The request message was sent to 'https://www.mysite.com/SQLreplication/replisapi.dll'
2013-08-21 05:06:13.595 Repl Agent Status: 3
2013-08-21 05:06:14.668 OLE DB Subscriber 'my-PC\sqlexpress': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2013-08-21 05:06:14.675 Percent Complete: 0
2013-08-21 05:06:14.676 Downloaded a total of 3 chunks.
2013-08-21 05:06:14.681 Repl Agent Status: 3
2013-08-21 05:06:14.686 OLE DB Subscriber 'my-PC\sqlexpress': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2013-08-21 05:06:14.695 Percent Complete: 0
2013-08-21 05:06:14.697 The response message was received from 'https://www.mysite.com/SQLreplication/replisapi.dll' and is being processed.
2013-08-21 05:06:14.699 Repl Agent Status: 3
2013-08-21 05:06:14.704 OLE DB Subscriber 'my-PC\sqlexpress': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2013-08-21 05:06:14.713 Percent Complete: 0
2013-08-21 05:06:14.715 The merge process could not enumerate changes at the 'Subscriber'. When troubleshooting, restart the synchronization with verbose history logging and specify an output file to which to write.
2013-08-21 05:06:14.717 Repl Agent Status: 6
From subscriber replmerg.log:
DatabaseReconciler , 2013/08/21 05:06:13.092, 7624, 7663, S2, :T:,30,0,0,33214,33214,efcc975a-d0c4-47d9-8423-c7262afb2ef1,240,,,,
DatabaseReconciler , 2013/08/21 05:06:13.284, 7624, 25088, S2, INFO: [WEBSYNC_PROTOCOL] Sending client ReconcilerPhase WebSyncReconcilerPhase_LastRegularUpload
WinHttpClient , 2013/08/21 05:06:13.296, 7624, 1205, S2, INFO: Exchange ID = B2860342-D297-4AB6-A945-80166CF068E9.
DatabaseReconciler , 2013/08/21 05:06:14.742, 7624, 20229, S2, :T:,110,0,6,,,,,,,
DatabaseReconciler , 2013/08/21 05:06:14.742, 7624, 20236, S2, INFO: Session Highlights: FAIL, WEBSYNC_CLIENT,
CReconcilerTask , 2013/08/21 05:06:14.787, 7624, 645, S1, INFO: =============== ENDING OF MERGE =================
From websync.log at the publisher:
DatabaseReconciler , 2013/08/21 05:06:35.806, 5788, 7663, S2, :T:,30,4005,0,33214,24957,efcc975a-d0c4-47d9-8423-c7262afb2ef1,0,,,,
Msgprox.dll , 2013/08/21 05:06:35.866, 4248, 3665, S1, ERROR: The merge process could not enumerate changes at the 'Subscriber'. When troubleshooting, restart the synchronization with
verbose history logging and specify an output file to which to write., hr = 0x80045019.
Msgprox.dll , 2013/08/21 05:06:35.866, 4248, 4690, S1, ERROR: ErrNo = 0x80045019, ErrSrc = <null>, ErrType = 8, ErrStr = The merge process could not enumerate changes at the 'Subscriber'.
When troubleshooting, restart the synchronization with verbose history logging and specify an output file to which to write.
CommitBatchedInserts , 2013/08/21 05:06:35.873, 1360, 13892, S1, CommitBatchedInserts failed.
Replprov.dll , 2013/08/21 05:06:35.876, 1360, 17605, S1, ERROR: ErrNo = 0x80045022, ErrSrc = <null>, ErrType = 8, ErrStr = The merge process could not replicate one or more INSERT statements
to the 'Publisher'. A stored procedure failed to execute. Troubleshoot by using SQL Profiler.
CommitBatchedInserts , 2013/08/21 05:06:36.086, 2940, 13892, S1, CommitBatchedInserts failed.
Replprov.dll , 2013/08/21 05:06:36.087, 2940, 17605, S1, ERROR: ErrNo = 0x80045022, ErrSrc = <null>, ErrType = 8, ErrStr = The merge process could not replicate one or more INSERT statements
to the 'Publisher'. A stored procedure failed to execute. Troubleshoot by using SQL Profiler.
DatabaseReconciler , 2013/08/21 05:06:36.213, 5788, 20229, S2, :T:,110,4005,10,,,,,,,
DatabaseReconciler , 2013/08/21 05:06:36.213, 5788, 20236, S2, INFO: Session Highlights: FAIL, WEBSYNC_SERVER,
Replprov.dll , 2013/08/21 05:06:36.213, 5788, 17605, S1, ERROR: ErrNo = 0x80045645, ErrSrc = <null>, ErrType = 8, ErrStr = The merge process was unable to update last synchronization
information at the Publisher.
I get these errors no matter how much data moves from the subscriber to the publisher. I can re-run the merge, it will move a bit more data up, but it will throw the same errors. If I run again, data will not move up at all. I can then delete
the new data at the subscriber and the publisher has no problems deleteing.
Fixes attempted, other info:
From my subscriber, I can access both replisapi.dll and replisapi.dll?diag sites. The ?diag has no errors.
I am not sending IMAGE columns, sometimes as little as 300 rows of data.
I am not throwing any idendentity errors, regardless I moved most of my IDs to GUIDs to make sure.
I changed my merge agent profile to slow link.
Ran DBCC CHECKDB, no errors.
Reinitialized subscription.
Deleted subscription and re-created.
In SQL profiler, I do not see anything going wrong, until the error. I cannot tell what procedure failed to execute. I will run the last procedure before the error without a problem.
I added the -T106 to replemerg, I didn't see anything new to the above errors.
I increased the subscription's timeout property.
I need help, I am completed flustered due to the fact I can get some records at the publisher.