If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > SQL Server 2000 Merge Replication Problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-09-03, 10:09
ElocFSU ElocFSU is offline
Registered User
 
Join Date: Sep 2003
Posts: 4
Angry SQL Server 2000 Merge Replication Problem

Hello.

I am trying to set up merge replication over the internet between two machines running Windows 2000 Server and SQL Server 2000 Service Pack 3a.

I can register the machines with each other, no problem. I can set up my first machine as its own distributor and create a publication, no problem. The snapshot agent runs and finishes without error. I can push a subscription to my second machine, no problem. Everything looks to be set up correctly and ready to go.

However, the merge agent behaves strangely. Sometimes, when I edit data in one of the replicated tables on one of the machines, the changes are quickly propagated to the other machine without error. Other times, however, an error occurs, and the merge agent remains in "Failed" status until manually restarted.

Details on the error are as follows (from Enterprise Manager):

Error: The process could not change generation history at the 'Subscriber'

Last command: {call sp_MSupdategenhistory (?,?,?,?) }

Error details:
The process could not change generation history at the 'Subscriber'.
(Source: Merge Replication Provider (Agent); Error number: -2147200995)
---------------------------------------------------------------------------------------------------------------
Unknown token received from SQL Server
(Source: NFWB_SERVER (Data source); Error number: 0)
---------------------------------------------------------------------------------------------------------------



Notes:
- Sometimes, I add rows to a replicated table and they propagate to the second machine without error. Other times, it errors out with the message above. But, even when the error occurs, the new data is still moved from machine 1 to machine 2.
- Once it fails, it remains in Failed state and doesn't seem to pick up again. However, if I right-click the failed merge agent and click "Start Agent", it quickly reconnects, reports that "No data needed to be merged.", and returns to "Idle" status.
- The default "On Failure" action of the merge agent's "Run agent" job step is to "Goto next step." If I change this to "Goto step: [1] Startup Merge Agent", it begins to retry after failure. Thus, after failing, it reconnects and then succeeds and returns to Idle state. Of course, this doesn't seem like a good way to solve the problem.

Has anyone seen this sort of behavior before? Thoughts? Thanks in advance for your help.

Cole Cranford
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On