Data not replicated

Data not replicated

Post by LANG_CB » Fri, 10 Aug 2001 04:01:20



Hi everybody.

I'm having a strange problem.

My configuration is :
SQL Server 7 SP3
Publisher NT4, Subscriber Win98
Merge replication with dynamic filters
Pull (anonymous) subscription

The subscriber connects to the publisher on the Internet via a VPN.
I can merge any changes, so my setup is ok.
I can create a snapshot and insert data and the data is correctly merged.

HOWEVER, if I create the snapshot, insert data and wait for the next
day to do the merge, it says that no data needed to be merged.
No snapshot is scheduled to start for example a night. I have verified
this.

I don't know what's happenning.
Does anyone know how I could correct this problem?

Thanks in advance for your help.
Hugues

 
 
 

Data not replicated

Post by TSVK » Sat, 11 Aug 2001 02:10:51


check to see if the rowguid in MSMerge_contents on the source of the change
belongs to a generation which is greater than the recgen at the destination.
You could find out the recgen value from MSmerge_replinfo on the subscriber.


Quote:> Hi everybody.

> I'm having a strange problem.

> My configuration is :
> SQL Server 7 SP3
> Publisher NT4, Subscriber Win98
> Merge replication with dynamic filters
> Pull (anonymous) subscription

> The subscriber connects to the publisher on the Internet via a VPN.
> I can merge any changes, so my setup is ok.
> I can create a snapshot and insert data and the data is correctly merged.

> HOWEVER, if I create the snapshot, insert data and wait for the next
> day to do the merge, it says that no data needed to be merged.
> No snapshot is scheduled to start for example a night. I have verified
> this.

> I don't know what's happenning.
> Does anyone know how I could correct this problem?

> Thanks in advance for your help.
> Hugues


 
 
 

Data not replicated

Post by LANG_CB » Sun, 12 Aug 2001 01:40:48


Hi.

I checked the numbers and the number at the subscriber was higher than the
number aat the publisher.
To correct the problem I just have to change this number to a lower number.
Your answer saved me a lot of time, I was getting desperate.

So, thanks for your help :)

Hugues


> check to see if the rowguid in MSMerge_contents on the source of the
change
> belongs to a generation which is greater than the recgen at the
destination.
> You could find out the recgen value from MSmerge_replinfo on the
subscriber.



> > Hi everybody.

> > I'm having a strange problem.

> > My configuration is :
> > SQL Server 7 SP3
> > Publisher NT4, Subscriber Win98
> > Merge replication with dynamic filters
> > Pull (anonymous) subscription

> > The subscriber connects to the publisher on the Internet via a VPN.
> > I can merge any changes, so my setup is ok.
> > I can create a snapshot and insert data and the data is correctly
merged.

> > HOWEVER, if I create the snapshot, insert data and wait for the next
> > day to do the merge, it says that no data needed to be merged.
> > No snapshot is scheduled to start for example a night. I have verified
> > this.

> > I don't know what's happenning.
> > Does anyone know how I could correct this problem?

> > Thanks in advance for your help.
> > Hugues

 
 
 

Data not replicated

Post by TSVK » Sun, 12 Aug 2001 03:14:55


There is also another way to handle this.  The merge agent has an
argument -ForceConvergenceLevel
If you use 1 it will evaluate all generations for you.


> Hi.

> I checked the numbers and the number at the subscriber was higher than the
> number aat the publisher.
> To correct the problem I just have to change this number to a lower
number.
> Your answer saved me a lot of time, I was getting desperate.

> So, thanks for your help :)

> Hugues



> > check to see if the rowguid in MSMerge_contents on the source of the
> change
> > belongs to a generation which is greater than the recgen at the
> destination.
> > You could find out the recgen value from MSmerge_replinfo on the
> subscriber.



> > > Hi everybody.

> > > I'm having a strange problem.

> > > My configuration is :
> > > SQL Server 7 SP3
> > > Publisher NT4, Subscriber Win98
> > > Merge replication with dynamic filters
> > > Pull (anonymous) subscription

> > > The subscriber connects to the publisher on the Internet via a VPN.
> > > I can merge any changes, so my setup is ok.
> > > I can create a snapshot and insert data and the data is correctly
> merged.

> > > HOWEVER, if I create the snapshot, insert data and wait for the next
> > > day to do the merge, it says that no data needed to be merged.
> > > No snapshot is scheduled to start for example a night. I have verified
> > > this.

> > > I don't know what's happenning.
> > > Does anyone know how I could correct this problem?

> > > Thanks in advance for your help.
> > > Hugues

 
 
 

Data not replicated

Post by LANG_CB » Wed, 15 Aug 2001 23:10:53


Thanks again for your answer.

However, I'd like to ask you another question.
Where can I find this parameter in Enterprise Manager or anywhere else?
I looked everywhere, even in the books online and on MSDN.
I can't find anything. Please help me :)

Thanks.
Hugues


> There is also another way to handle this.  The merge agent has an
> argument -ForceConvergenceLevel
> If you use 1 it will evaluate all generations for you.



> > Hi.

> > I checked the numbers and the number at the subscriber was higher than
the
> > number aat the publisher.
> > To correct the problem I just have to change this number to a lower
> number.
> > Your answer saved me a lot of time, I was getting desperate.

> > So, thanks for your help :)

> > Hugues



> > > check to see if the rowguid in MSMerge_contents on the source of the
> > change
> > > belongs to a generation which is greater than the recgen at the
> > destination.
> > > You could find out the recgen value from MSmerge_replinfo on the
> > subscriber.



> > > > Hi everybody.

> > > > I'm having a strange problem.

> > > > My configuration is :
> > > > SQL Server 7 SP3
> > > > Publisher NT4, Subscriber Win98
> > > > Merge replication with dynamic filters
> > > > Pull (anonymous) subscription

> > > > The subscriber connects to the publisher on the Internet via a VPN.
> > > > I can merge any changes, so my setup is ok.
> > > > I can create a snapshot and insert data and the data is correctly
> > merged.

> > > > HOWEVER, if I create the snapshot, insert data and wait for the next
> > > > day to do the merge, it says that no data needed to be merged.
> > > > No snapshot is scheduled to start for example a night. I have
verified
> > > > this.

> > > > I don't know what's happenning.
> > > > Does anyone know how I could correct this problem?

> > > > Thanks in advance for your help.
> > > > Hugues

 
 
 

Data not replicated

Post by TSVK » Thu, 16 Aug 2001 02:38:31


YOu can add this to the "run agent" job step of the merge job.
If you goto command prompt and type replmerg.exe -? you will see the help.


> Thanks again for your answer.

> However, I'd like to ask you another question.
> Where can I find this parameter in Enterprise Manager or anywhere else?
> I looked everywhere, even in the books online and on MSDN.
> I can't find anything. Please help me :)

> Thanks.
> Hugues



> > There is also another way to handle this.  The merge agent has an
> > argument -ForceConvergenceLevel
> > If you use 1 it will evaluate all generations for you.



> > > Hi.

> > > I checked the numbers and the number at the subscriber was higher than
> the
> > > number aat the publisher.
> > > To correct the problem I just have to change this number to a lower
> > number.
> > > Your answer saved me a lot of time, I was getting desperate.

> > > So, thanks for your help :)

> > > Hugues



> > > > check to see if the rowguid in MSMerge_contents on the source of the
> > > change
> > > > belongs to a generation which is greater than the recgen at the
> > > destination.
> > > > You could find out the recgen value from MSmerge_replinfo on the
> > > subscriber.



> > > > > Hi everybody.

> > > > > I'm having a strange problem.

> > > > > My configuration is :
> > > > > SQL Server 7 SP3
> > > > > Publisher NT4, Subscriber Win98
> > > > > Merge replication with dynamic filters
> > > > > Pull (anonymous) subscription

> > > > > The subscriber connects to the publisher on the Internet via a
VPN.
> > > > > I can merge any changes, so my setup is ok.
> > > > > I can create a snapshot and insert data and the data is correctly
> > > merged.

> > > > > HOWEVER, if I create the snapshot, insert data and wait for the
next
> > > > > day to do the merge, it says that no data needed to be merged.
> > > > > No snapshot is scheduled to start for example a night. I have
> verified
> > > > > this.

> > > > > I don't know what's happenning.
> > > > > Does anyone know how I could correct this problem?

> > > > > Thanks in advance for your help.
> > > > > Hugues

 
 
 

Data not replicated

Post by LANG_CB » Thu, 30 Aug 2001 01:51:20


Hi.
I still have two questions :)

First question :

Is the argument -ForceConvergenceLevel specific to SQL Server 2000?
Is there something special I got to install or configure to use this
argument...?
The argument does no seem to exist... Here are the arguments I can use :

(Sorry for the long list....)

replmerg [-?]
-Publisher server_name[\instance_name]
-PublisherDB publisher_database
-Publication publication
-Subscriber server_name[\instance_name]
-SubscriberDB subscriber_database
[-Continuous]
[-DefinitionFile def_path_and_file_name]
[-Distributor server_name[\instance_name]]
[-DistributorAddress distributor_address]
[-DistributorLogin distributor_login]
[-DistributorNetwork distributor_network]
[-DistributorPassword distributor_password]
[-DistributorSecurityMode [0|1]]
[-DownloadGenerationsPerBatch download_generations_per_batch]
[-DownloadReadChangesPerBatch download_read_changes_per_batch]
[-DownloadWriteChangesPerBatch download_write_changes_per_batch]
[-ExchangeType [1|2|3]]
[-FastRowCount [0|1]]
[-FileTransferType [0|1]]
[-FtpAddress ftp_address]
[-FtpPassword ftp_password]
[-FtpPort ftp_port]
[-FtpUserName ftp_user_name]
[-HistoryVerboseLevel [1|2|3]]
[-Hostname host_name]
[-LoginTimeOut login_time_out_seconds]
[-Output]
[-OutputVerboseLevel [0|1|2]]
[-PollingInterval polling_interval]
[-ProfileName profile_name]
[-PublisherAddress publisher_address]
[-PublisherLogin publisher_login]
[-PublisherNetwork publisher_network]
[-PublisherPassword publisher_password]
[-PublisherSecurityMode [0|1]]
[-QueryTimeOut query_time_out_seconds]
[-SubscriberDatabasePath subscriber_path]
[-SubscriberDBAddOption [0|1|2|3]]
[-SubscriberLogin subscriber_login]
[-SubscriberPassword subscriber_password
[-SubscriberSecurityMode [0|1]]
[-SubscriberType [0|1|2|3|4|5|6|7|8]]
[-SubscriptionType [0|1|2]]
[-UploadGenerationsPerBatch upload_generations_per_batch]
[-UploadReadChangesPerBatch upload_read_changes_per_batch]
[-UploadWriteChangesPerBatch upload_write_changes_per_batch]
[-Validate [0|1|2|3]]
[-ValidateInterval validate_interval]

I need your help to find this argument.

Second question :

I also have another problem. Maybe you could help me.
The problem is in the same merge replication.

Here are the steps :

1. I created a snapshot on the publisher.
2. I inserted data on the publisher.
3. The subscriber merged the data (with a dynamic filter). Only some rows of
the data inserted were merged (because of the filter).
4. I changed data at the publisher. I modified rows that caused rows that
were not merged to be merged.
5. I started the merge again and some rows that should be replicated are
not.
Some of the rows inserted in step 2 should now be filtered and merged.

It seems that the rows that were not transfered during a merge will never be
transfered even if some conditions in the filters suppose that they should
be transfered.

Example :

Tables :
T_Students : Table containing students of a language school.
T_Tutor : Table containing tutors.
T_Susbstitutes : Table that's used to say "this tutor replaces this other
tutor".

When a distant tutor merges with the publisher database, the merge transfers
his students... However, when the tutor replaces another tutor (when he his
sick), we want to transfer the students that belong to the other tutor. It
does not work properly, because the T_Student table has already been
filtered.

However, if this is the first merge and the tutor replaces another tutor,
the data is transfered.

The problem seems to be that we can not retrieve data changes made before
the last merge, even if the filter tells that they should be merged now.

I could reinitialize the subscription before each merge... but it's not the
perfect way to do this....

Is there another way to avoid this problem...?

Thanks a lot for your precious help.

Hugues


> YOu can add this to the "run agent" job step of the merge job.
> If you goto command prompt and type replmerg.exe -? you will see the help.



> > Thanks again for your answer.

> > However, I'd like to ask you another question.
> > Where can I find this parameter in Enterprise Manager or anywhere else?
> > I looked everywhere, even in the books online and on MSDN.
> > I can't find anything. Please help me :)

> > Thanks.
> > Hugues



> > > There is also another way to handle this.  The merge agent has an
> > > argument -ForceConvergenceLevel
> > > If you use 1 it will evaluate all generations for you.



> > > > Hi.

> > > > I checked the numbers and the number at the subscriber was higher
than
> > the
> > > > number aat the publisher.
> > > > To correct the problem I just have to change this number to a lower
> > > number.
> > > > Your answer saved me a lot of time, I was getting desperate.

> > > > So, thanks for your help :)

> > > > Hugues



> > > > > check to see if the rowguid in MSMerge_contents on the source of
the
> > > > change
> > > > > belongs to a generation which is greater than the recgen at the
> > > > destination.
> > > > > You could find out the recgen value from MSmerge_replinfo on the
> > > > subscriber.



> > > > > > Hi everybody.

> > > > > > I'm having a strange problem.

> > > > > > My configuration is :
> > > > > > SQL Server 7 SP3
> > > > > > Publisher NT4, Subscriber Win98
> > > > > > Merge replication with dynamic filters
> > > > > > Pull (anonymous) subscription

> > > > > > The subscriber connects to the publisher on the Internet via a
> VPN.
> > > > > > I can merge any changes, so my setup is ok.
> > > > > > I can create a snapshot and insert data and the data is
correctly
> > > > merged.

> > > > > > HOWEVER, if I create the snapshot, insert data and wait for the
> next
> > > > > > day to do the merge, it says that no data needed to be merged.
> > > > > > No snapshot is scheduled to start for example a night. I have
> > verified
> > > > > > this.

> > > > > > I don't know what's happenning.
> > > > > > Does anyone know how I could correct this problem?

> > > > > > Thanks in advance for your help.
> > > > > > Hugues

 
 
 

Data not replicated

Post by Michael Hote » Thu, 30 Aug 2001 03:40:09


-ForceConvergenceLevel exists only on SQL Server 2000.

While I'm not surprised on the dynamic filter, what you are seeing should
not be happening.  Can you get me a script and steps to reproduce the
problem?  I'm working on several dozen potential bugs with dynamic filters
at the moment.

--
Please post ALL replies to the newsgroups unless specifically directed
otherwise.
Mike Hotek
SQL Server MVP
http://www.mssqlserver.com
"Aim high. you can never achieve more than you aspire to." Al Ries

 
 
 

Data not replicated

Post by LANG_CB » Thu, 30 Aug 2001 03:36:43


Maybe my last message was not very clear...

To be sure if it should or should not happen, it will explain it again in
other words.

The steps I followed :

1. Created a snapshot on the publisher.
2. Inserted data on the publisher.
3. Merged changes. Only a part of the data inserted was merged to the
subscriber. This is normal, the rows where filtered.
4. Added new data at the publisher. This data was supposed to make the
filter change, so it could transfer a few rows inserted in step 2.
5. Merged the changes with the subscriber. The subscriber received the data
added on step 4, but it did not receive data inserted on step 2. Previously
in step 3, I said that only a part of the data was inserted at the
subscriber. The rest of the data should have been transfered on step 5
because the filter should have returned them.

I hope this will help you understand my problem...

Please, give me your opinion and comments.

Hugues

P.S. Do you think using SQL Server 2000 with -ForceConvergenceLevel set to 1
could fix the problem?


Quote:> -ForceConvergenceLevel exists only on SQL Server 2000.

> While I'm not surprised on the dynamic filter, what you are seeing should
> not be happening.  Can you get me a script and steps to reproduce the
> problem?  I'm working on several dozen potential bugs with dynamic filters
> at the moment.

> --
> Please post ALL replies to the newsgroups unless specifically directed
> otherwise.
> Mike Hotek
> SQL Server MVP
> http://www.mssqlserver.com
> "Aim high. you can never achieve more than you aspire to." Al Ries

 
 
 

Data not replicated

Post by TSVK » Thu, 30 Aug 2001 03:57:45


Yes forceconvergencelevel is for 2000 only.  Sorry for assuming that.
Yes as Mr.Hotek says, get us the scripts and steps to reproduce and we could
help.


Quote:> -ForceConvergenceLevel exists only on SQL Server 2000.

> While I'm not surprised on the dynamic filter, what you are seeing should
> not be happening.  Can you get me a script and steps to reproduce the
> problem?  I'm working on several dozen potential bugs with dynamic filters
> at the moment.

> --
> Please post ALL replies to the newsgroups unless specifically directed
> otherwise.
> Mike Hotek
> SQL Server MVP
> http://www.mssqlserver.com
> "Aim high. you can never achieve more than you aspire to." Al Ries

 
 
 

Data not replicated

Post by Michael Hote » Fri, 31 Aug 2001 01:21:56


SQL Server 2000 will fix many of the problems, but I haven't found this
problem with 2000 yet.  But, I'm still trying to get a dynamic subscription
up and running.

--
Please post ALL replies to the newsgroups unless specifically directed
otherwise.
Mike Hotek
SQL Server MVP
http://www.mssqlserver.com
"Aim high. you can never achieve more than you aspire to." Al Ries

 
 
 

Data not replicated

Post by Michael Hote » Fri, 31 Aug 2001 01:23:39


What we need to reproduce this is as follows:

1. Script for your database schema or just the tables involved.
2. Some sample data/transactions
3. A script to create a publication the way you have it setup.
4. Instructions in the process that you have gone through, what you have
tried, and what the results were.

--
Please post ALL replies to the newsgroups unless specifically directed
otherwise.
Mike Hotek
SQL Server MVP
http://www.mssqlserver.com
"Aim high. you can never achieve more than you aspire to." Al Ries

 
 
 

1. Data not replicating, over Internet (Urgent)

HI,
I have set replication over the Internet. On the subscriber the status of
the Pull Subscriptin is showing as 'Succeeded', but data is not being
replicated.
Subscriber is using Anonymous for FTP and Anonmouse is enabled for pull
subscriptions on the publisher.

My '\SQLServer\REPLDATA' is the snapshot folder and
'\SQLServer\REPLDATA\FTP' is the Home Directory for FTP.

So is there anything wrong with my settings or something else?

Thanks in advance.

Joga

2. CABLE BOX DESCRAMBLER BUILD YOUR OWN DESCRAMBLER FAST CHEAP AND EASY

3. To Replicate or Not To Replicate

4. CDR and DEC

5. Some tables are replicated and some of then are Not replicated

6. Year 2000 tools wanted

7. Visual Fox Pro Application does not see new replicated data

8. Question about multiple users aliased to 'dbo'

9. Replicate structure changes and SP's, but not data

10. FIX: Dynamic Filtered Tables Do Not Replicate Data From Joined Tables to SQL Server CE Subscribers

11. Merge Replicated Data NOT saving!

12. Replicated column does not receive data in subscriber.

13. Replicate schema alone and not data