SQL Server Replication Error: SQLServerAgent Error - Job already running from request by User sa

kevin stani 25 Reputation points
2024-09-02T06:10:37.6866667+00:00

I'm encountering an issue with SQL Server replication. After setting up a publication on my CampusNet2 database and attempting to synchronize it with CampusNet, I'm seeing errors related to the SQL Server Agent. Specifically, when trying to view the synchronization status, I receive the following error:
image3

I successfully generated a snapshot for the publication on CampusNet2.
image2

Below is the structure:
image1

I'm looking for guidance on resolving this error, specifically understanding why the SQLServerAgent job is being refused due to it being already in progress. How can I troubleshoot this issue to ensure that the replication process completes successfully?

SQL Server Other
{count} votes

1 answer

Sort by: Most helpful
  1. MikeyQiaoMSFT-0444 3,300 Reputation points
    2024-09-03T03:34:03.32+00:00

    Hi,kevin stani

    The cause of this issue may be due to the SQL Server Agent job running longer than the interval between executions. Perform the following configuration, and if the problem persists, try setting it to 60 minutes.

    USE master
    GO
    
    exec sp_changedistributor_property 
            @property = 'heartbeat_interval', 
            @value = 30;
    
    
    

    Regards

    Mikey Qiao


    If you're satisfied with the answer, don't forget to "Accept it," as this will help others who have similar questions to yours.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.