SQL Replicator stops syncing in both Live or Scheduled modes, 18.1

SUGGESTED

Hey everyone,

First time poster here because we are in desperate need for assistance. Here's the rundown...

- We had been using Sage 17.1 for 2 years until Nov. 2019. With it, we have the SQL Replicator running all the time, and though  "Scheduled" mode was the only option with 17.1, it would replicate close to real time (every 15 mins best guess). I did not set this up, but it ran beautifully for 2 years with no issues.

- We use replicator to send PSQL data to a SQL database that we run BI reports off of via ODBC to gather important accounting information.

- We upgraded to Sage 18.1 in Nov., at which time, Sage added the "Live" replication option. I thought this was weird because ours of seemingly live already, but based on Sage's recommendation, we set the replicator to "Live" replication.

- Since this upgrade, we've had NOTHING BUT PROBLEMS with the replicator. At first, we found it failed to replicate the database fully, and we were missing data. After a week and endless hours of working with Sage support, we successfully rebuilt the SQL database and got replication to work Live. After about a week, we found replication would randomly stop and we'd have to manually restart the replication service (which takes up to 60 mins to fully come back) multiple times a day.

- We have since tried to change it to Scheduled replication mode and have it run every 30 mins, and this worked for a day, then all of the sudden, it stops working again. The odd thing about this setup is that it will try to sync every 30 mins, but not always get data into SQL. Sometimes the sync works, other times, it does not. For example, yesterday, no new data made it into SQL, but today as of 9:30am, things finally started to populate. The replicator sync logs show NO ERRORS...

Our goal is to replicator our changes Live, maximum amount of wait time being 30 mins for new changes. Does anyone have any recommendations? Anyone else experiencing this headache?

Steven

Parents
  • 0

    Since this seems to be the place where all the Replicator stuff is going I am going to throw out one more issue I have seen.  I created a local sql user, read only, so another part of our company can access the replicated data to run their own reports.  Worked great until the first time I hit the sync security button after creating a new user in Sage.  It took this sql only user and put a red x beside it though it is not actually disabled.  I have tried several things to get the user to reactivate but have not found the fix yet.....it seems the sync security piece destroys access for any none Sage based user except the sa account. 

  • 0 in reply to Jeff Rudacille

    Jeff, I had something like this occurring and am interested if you or someone finds a cause/solution. This issue actually is what led to us stopping our SQL Replicator and the Mobile Dashboards setup over replication issues. Our setup is a little complex with domain trusts and such. Possibly because of this troubleshooting with support got us little results. I was able to identify failed SQL logins, but with the replicator running I did not ever get this functional. Looking forward to finding any further info.

  • 0 in reply to jstone1

    Hey Jstone-

    Will just list out what I have found so far as it is so convoluted I am not sure I have it all down yet:

    1-Any non Sage/Windows based users are disabled in some manner when a sync security is run.

    2-I am finding that even new Sage/Windows based users do not work just from the sync.  Their user account is created in SQL but the password does not work (and I did log into Sage as them first per the instructions) so I have to go into Sage Studio and set their password.  In addition it does not add the proper settings to the Securables section of their account so I have to manually copy what is in another users that is working.

    3-As I have stated before when the sync is running the database becomes inaccessible because all the user accounts seem to be rewritten from new each time.  If you go into Sage Studio while a sync is running you will see all users have the red x on them. 

    4-It seems that any further security changes do not break the manually fixed accounts from step 2 so fingers cross we have a sort of duct taped solution to use it for now.

    So in summary I have it working knowing that when I create a new Sage user (they require Windows accounts as well and that is documented in the Replicator setup) I have to log into Sage as them first, then go back to the server and do a Replicator sync then go into Sage Studio and fix the stuff that is not right from the sync.  After doing all this it works as expected.

    Testing all this is EXTREMELY time consuming since syncs take between 50 and 70 minutes each. 

Reply
  • 0 in reply to jstone1

    Hey Jstone-

    Will just list out what I have found so far as it is so convoluted I am not sure I have it all down yet:

    1-Any non Sage/Windows based users are disabled in some manner when a sync security is run.

    2-I am finding that even new Sage/Windows based users do not work just from the sync.  Their user account is created in SQL but the password does not work (and I did log into Sage as them first per the instructions) so I have to go into Sage Studio and set their password.  In addition it does not add the proper settings to the Securables section of their account so I have to manually copy what is in another users that is working.

    3-As I have stated before when the sync is running the database becomes inaccessible because all the user accounts seem to be rewritten from new each time.  If you go into Sage Studio while a sync is running you will see all users have the red x on them. 

    4-It seems that any further security changes do not break the manually fixed accounts from step 2 so fingers cross we have a sort of duct taped solution to use it for now.

    So in summary I have it working knowing that when I create a new Sage user (they require Windows accounts as well and that is documented in the Replicator setup) I have to log into Sage as them first, then go back to the server and do a Replicator sync then go into Sage Studio and fix the stuff that is not right from the sync.  After doing all this it works as expected.

    Testing all this is EXTREMELY time consuming since syncs take between 50 and 70 minutes each. 

Children
  • 0 in reply to Jeff Rudacille
    SUGGESTED

    Hell Jeff,

         We are using SQL Replicator 18.3.1 and I have the same 4 issues you have reported.  I am comforted to see that I am not the only one logging onto Sql Management Studio to manually set passwords for users so that they can access reports when SQL is enabled.  Not all users require manually synchronizing their SQL account password with their Sage password, but there are enough that I have to make this part of my process for transitioning report to using SQL vs PSQL.  

         I have also had some complaints about SQL reports returning with no data.  I found this article on the Sage Knowledgebase referencing a defect ID 542119.  As a workaround, I have been creating a new report instance that uses the same report file but has the SQL option enabled so that when the SQL report fails the PSQL report can be run.  

         I was previously running the synchronization using the Live option, but we are changing to this to a scheduled nightly replication to see how that impacts SQL report performance.  The decision to use the scheduled replication is also related to records being locked by the replication process when we run payroll. This is not an optimal solution since our users will want the most current data, which they will have get by using PSQL which takes almost twice as long to run vs SQL reports.