Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

merge replication - error message when initializing

$
0
0

I am trying to set up a merge replication using code similar to the following for the filtered tables:

exec sp_addmergearticle @publication = N'MaxLoadBalance_Repl', @article = N'INVOICEMATCH', @source_owner = N'dbo', @source_object = N'invoicematch', @type = N'table', @description = N'', @creation_script = N'', @pre_creation_cmd = N'truncate', @schema_option = 0x000000010C034FD1, @identityrangemanagementoption = N'none', @destination_owner = N'dbo', @force_reinit_subscription = 1, @column_tracking = N'false', @subset_filterclause = N'Siteid like ''11%'' and Orgid=''PMV''', @vertical_partition = N'false', @verify_resolver_signature = 1, @allow_interactive_resolver = N'false', @fast_multicol_updateproc = N'true', @check_permissions = 0, @subscriber_upload_options = 0, @delete_tracking = N'true', @compensate_for_errors = N'false', @stream_blob_columns = N'true', @partition_options = 0

and similar to the following for the the tables of some not all columns:

exec sp_mergearticlecolumn @publication = N'MaxLoadBalance_Repl', @article = N'workorder', @column = N'c_pmcounter', @operation = N'add', @force_invalidate_snapshot = 1, @force_reinit_subscription = 1

The snapshot creation completes successfully, but when it's start initializing/sync the subscriber, I'm getting the following error:

Command attempted:
{call sp_MSsetconflicttable (N'A_INVRESERVE', N'MSmerge_conflict_MaxLoadBalance_Repl_A_INVRESERVE', N'TheServer\SQL2014', N'MaxTest', N'MaxLoadBalance_Repl')}

Error messages:
Incorrect syntax near 'actualqty'. (Source: MSSQLServer, Error number: 102)
Get help: http://help/102
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. (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147201001)
Get help: http://help/MSSQL_REPL-2147201001

after that the agent keeps just retrying and retrying.

I have tried to find where is the problem using the profiler, but with no luck. I could not get more details.

What could be the problem? and how it can be solved?


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>