Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8031333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:04:20+00:00 2026-06-05T01:04:20+00:00

After adding FilterClause, delete is not working anymore. JuneT said filter on tracking table

  • 0

After adding FilterClause, delete is not working anymore.

JuneT said filter on tracking table which is Users_tracking

However, I do not see IsPublished column in Users_tracking; I only see UserId.

Thank you for your help!

private static void ProvisionLocal(
   SqlConnection sqlLocalConn, DbSyncScopeDescription scopeDesc)
{
   var Users = SqlSyncDescriptionBuilder
     .GetDescriptionForTable("Users", sqlLocalConn);

   scopeDesc.Tables.Add(Users);

   var sqlLocalProv = new SqlSyncScopeProvisioning(sqlLocalConn, scopeDesc);
   sqlLocalProv.CommandTimeout = 3600;

   sqlLocalProv.Tables["Users"].AddFilterColumn("IsPublished");
   sqlLocalProv.Tables["Users"].FilterClause = 
      string.Format("[side].[IsPublished] = {0}", 1);

   if (!sqlLocalProv.ScopeExists("TestScope"))
   {
     sqlLocalProv.Apply();
   }
}

private static void ProvisionRemote( 
   SqlConnection sqlRemoteConn, DbSyncScopeDescription scopeDesc)
{
   var sqlRemoteProv = new SqlSyncScopeProvisioning(sqlRemoteConn, scopeDesc);
   sqlRemoteProv.CommandTimeout = 3600;

   if (!sqlRemoteProv.ScopeExists("TestScope"))
   {
     // Apply the scope provisioning.
     sqlRemoteProv.Apply();
   }
}

public void Synchronize()
{    
   var sqlSourceConn = new SqlConnection("...");
   var sqlDestinationConn = new SqlConnection("...");

   var scopeDesc = new DbSyncScopeDescription("TestScope");

   ProvisionLocal(type, sqlSourceConn, scopeDesc);
   ProvisionRemote(type, sqlDestinationConn, scopeDesc);

   // Prepare for synchronization
   var localProvider = new SqlSyncProvider("TestScope", sqlSourceConn);

   var remoteProvider = new SqlSyncProvider("TestScope", sqlDestinationConn);
   remoteProvider.ApplyChangeFailed += RemoteProvider_ApplyChangeFailed;

   var orch = new SyncOrchestrator();
   orch.RemoteProvider = remoteProvider;
   orch.LocalProvider = localProvider;
   orch.Direction = SyncDirectionOrder.Upload;

   SyncOperationStatistics stats = orch.Synchronize();

   sqlDestinationConn.Close();
   sqlSourceConn.Close();
}

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:04:21+00:00Added an answer on June 5, 2026 at 1:04 am

    the IsPublished column is at the bottom of your tracking table…

    is your table part of another scope? are you adding another scope?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My horizontal links are not working properly after adding an auto-slider using JQuery except
after adding the OCMock framework i got that strange error... :( ld: file not
After adding the link options: -lssl and -lcrypto, my program was correctly compiled. However,
After adding plone.app.async, I cannot start my production instances normally using 'bin/instance start'. However,
After adding ASIHTTPRequest to my project (which incidentally I've now removed) I get linking
After adding an audio track (recorded with AVAudioRecorder) to a composition AVPlayer will not
I am not able to call a web service even after adding kSOAP 2
I'm working from this example and I am running into this error after adding
I'm using .net framework 3.5 SP1. After adding a column to one table in
After adding OpenFeintX, I had to change my AppDelegate to (.mm). Not sure f

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.