Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

SQL Server Error 1427: Server Instance Could Not Act As

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Error 1427 ("The server instance could not act as") is a SQL Server replication error, and the practical fix is almost always about permissions and identity rather than the network. It appears when a replication agent or the Distributor cannot impersonate or authenticate as the account it needs to act as — typically during snapshot generation, subscription setup, or when the Distributor is configured to use a Windows account that the Publisher or Subscriber cannot verify. The shortest working path is: confirm which account the agent is running under, make sure that account has a valid login on the instance it is reaching, grant it the replication roles it needs, and restart the agent. Everything below expands that sequence and covers the cases where the obvious fix does not stick.

What You'll Need

  • Membership in the sysadmin fixed server role on the Publisher, Distributor and Subscriber, or an account delegated equivalent rights.
  • The SQL Server Agent service account name on each instance involved (check Services in Windows, or the Agent properties in SQL Server Management Studio).
  • The exact error text and the agent job name from the replication monitor or the job history — the message usually names the account it failed to act as.
  • Access to SQL Server Management Studio (SSMS) on the instance where the error was raised.
  • A maintenance window if you need to restart SQL Server Agent or reinitialise a subscription.

Step-by-Step

  1. Read the full error, not just the number. Open Replication Monitor (in SSMS, right-click the Replication folder on the Publisher) or the SQL Server Agent job history for the failing agent job. Error 1427 is nearly always followed by a second line naming the login or the linked server it could not act as. That name is your starting point; without it you are guessing.
  2. Identify the account the agent runs under. Snapshot Agent, Log Reader Agent and Distribution Agent jobs run under a Windows account — by default the SQL Server Agent service account, but each job step can be edited to use a proxy. In SSMS, expand SQL Server Agent > Jobs, open the failing job's properties, and look at the Run as value on the step. Labels vary slightly between SSMS versions, but the job step editor always shows the account.
  3. Check that the account has a login on every instance it touches. On the Publisher, Distributor and each Subscriber, run a query against sys.server_principals for that Windows account, or look under Security > Logins in Object Explorer. A Windows account that exists in Active Directory but has no SQL Server login cannot be impersonated, which is exactly the condition error 1427 describes.
  4. Create the missing login if needed. In SSMS, Security > Logins > New Login, choose Windows authentication, and enter the domain account. If the agent connects with SQL authentication instead, confirm the SQL login exists, is enabled, and that the password has not expired.
  5. Grant the replication roles. The snapshot and distribution agents need membership in the db_owner role in the publication and subscription databases, and the account used for the PAL (publication access list) needs a valid login at the Publisher. The log reader agent account needs db_owner in the publication database. Add the role membership under the database's Security > Users properties rather than granting sysadmin as a shortcut.
  6. Verify the Distributor link. On the Publisher, right-click Replication > Distributor Properties and check the Publisher and Distributor connection settings. If the Distributor is on a remote instance, the account must be able to authenticate to that instance — a mismatch between the account stored in the distribution database and the account the job actually runs under is a common cause of 1427.
  7. Restart the agent job. Stop the failing job in SQL Server Agent, then start it again. For a snapshot failure, you usually need to regenerate the snapshot before restarting the distribution agent; use the Replication Monitor's Start Snapshot Agent option or sp_startpublication_snapshot.
  8. Re-test with a small subscription. If you reinitialise, do it on one subscription first and confirm the agent completes before touching the rest. Reinitialisation drops and recreates the subscription's snapshot objects, so any changes made directly to the subscriber tables since the last snapshot are lost — check for that before you proceed.

Common Mistakes

Granting sysadmin to make the error go away. It works, and it hides the real problem: the account mismatch will resurface on the next instance or after a failover. Grant the specific replication roles instead.

Changing the Agent service account without updating the jobs. If a job step is pinned to a proxy account, changing the service account does nothing. Always check the job step's Run as value.

Assuming the error is on the Subscriber. Error 1427 is raised on the instance that cannot act as the requested server, which is often the Distributor or the Publisher during snapshot generation. Read the error's source instance before editing logins.

Forgetting the PAL. The publication access list is separate from server logins; an account can have a valid login and still be rejected because it is not in the PAL.

Reinitialising everything at once. It multiplies the blast radius if the underlying permission problem is still there.

Tips

Use a dedicated domain account for replication agents rather than the SQL Server Agent service account, so permission changes do not affect unrelated jobs. Document which account each publication uses — a simple table of publication, agent, account and instance saves hours later. Test permission changes on a non-production publication first. Keep the SQL Server error log and the agent job history long enough to compare a working run against a failing one; the difference in the account name is often the whole answer. If the instances are in different domains or workgroups, confirm the accounts can authenticate across that boundary before you start changing SQL Server settings.

Troubleshooting

The error persists after adding the login. The account may be cached in the distribution database's agent profile. Drop and recreate the agent profile, or restart SQL Server Agent so the job picks up the new identity.

It fails only on one Subscriber. Compare the login and database user on that instance with a working one. A database user mapped to a different login (a common result of restoring a database from another server) will fail even when the server login is correct — check the user's login mapping in the database's Security > Users properties.

It fails after a failover or a server rename. The Distributor's stored server name no longer matches. Use sp_dropdistributor and reconfigure distribution, or update the @@SERVERNAME value, then regenerate the snapshot.

Authentication succeeds but the agent still stops. Check the SQL Server Agent error log for a preceding login failure — 1427 is sometimes a downstream symptom of an earlier authentication error that the job history truncates.

Nothing in the logs makes sense. Increase the agent's output verbosity in the agent profile, rerun, and read the full agent log file in the SQL Server instance's Log folder. Revert the verbosity afterwards.

Frequently Asked Questions

Is error 1427 a network problem?

No. It is an identity and permission error. The instance could not act as the requested server or account, which means authentication or role membership failed, not that the connection was refused.

Does this error only affect replication?

It is overwhelmingly a replication error, raised by snapshot, log reader or distribution agents, or by linked-server style impersonation during replication setup.

Can I fix it without restarting SQL Server Agent?

Sometimes — if the job step runs under the service account and you only added a login, stopping and starting the individual job is usually enough. If you changed the account or a proxy, restart the Agent service.

Will reinitialising the subscription lose data?

Yes, potentially. Reinitialisation replaces the subscriber's copy with a fresh snapshot, so any changes made directly on the subscriber since the last snapshot are discarded. Take a backup first if that data matters.

Do I need sysadmin to fix this?

You need enough rights to create logins and add role members, which normally means sysadmin or a delegated security administrator. A login with only db_owner rights cannot create server logins.

Why does it work in test but fail in production?

The usual reason is that the two environments use different agent accounts or different domains, so the account that authenticates fine in test has no login in production.