SharePoint 2016 - SPD 2013 workflow server cannot connect to SP database

Sherazad Ahmed 71 Reputation points
2026-11-30T19:06:13.3566667+00:00

Hello,

I have a SharePoint 2016 environment running SPD 2013 workflows. The workflow server contains the classic workflow version. However it seems that this environment is now broken i.e I cannot see the 2013 worklfows in SPD. I think this happened after a windows patch was installed back in July. Howerver the uninstallation of that patch did not fix the issue.

I am seeing the following error on the worflow server when I try to start the workflow services like the service bus and backend. This is happening across all 3 of my SharePoint enviornments. We have double checked the domain and all is well.

Service cannot be started. System.Data.SqlClient.SqlException (0x80131904): Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.

at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)

at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)

at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions option...

thanks,

Sherazad.

Microsoft 365 and Office | SharePoint Server | For business
0 comments No comments

2 answers

Sort by: Oldest
  1. AI answer

    2026-11-30T19:07:20.8366667+00:00

    Treat the SQL error as the blocking failure: identify which Workflow Manager or Service Bus account SQL Server rejects, then correct that account’s Windows authentication or SQL SPN before re-registering Workflow Manager with SharePoint.

    The patch rollback and general domain checks have already ruled out two broad paths. Error 18452 specifically means SQL Server could not validate the Windows principal presented through Integrated Authentication; it does not by itself prove that the domain trust is broken.^1^

    1. Isolate the rejected identity

    1. Reproduce the failure by starting Service Bus Message Broker, Service Bus Gateway, or Workflow Manager Backend.
    2. On the SQL Server hosting the Workflow Manager and Service Bus databases, open:
      • SQL Server Management Studio → Management → SQL Server Logs → Current
      • Event Viewer → Windows Logs → System
    3. Match the timestamp and record:
      • The rejected login/account.
      • Whether SQL reports error 18452, an SSPI handshake failure, or another error.
      • Any accompanying Windows code, particularly 0x80090311 or 0x80090304.

    Those SSPI codes indicate that no authentication authority could be contacted or that the Local Security Authority could not be contacted. If present, investigate the SQL Server’s DC/LSASS path rather than rebuilding Workflow Manager.^2^

    Then identify the configured Workflow Manager RunAs account from Workflow Manager PowerShell:

    Get-WFFarm |
        Select-Object RunAsAccount, AdminGroup
    
    Get-SBFarm |
        Format-List
    

    Test the reported RunAs account independently from the Workflow Manager server:

    runas /user:CONTOSO\WFMService cmd
    

    In the new command prompt, test a Windows-authenticated connection to the same SQL instance used by the WFM farm. If this fails with 18452, the issue is below SharePoint and independent of the Workflow Manager registration.

    2. Check the SQL SPN configuration

    On a domain-connected administrative workstation or server, inventory the SQL service account’s SPNs:

    setspn -L CONTOSO\SqlService
    setspn -Q MSSQLSvc/sql01.contoso.com:1433
    setspn -Q MSSQLSvc/sql01:1433
    

    Use the actual SQL service account, FQDN, and port. Look for a missing SPN, a duplicate SPN, or an SPN registered against the wrong account.

    For a supported diagnostic, run Microsoft Kerberos Configuration Manager for SQL Server with an account that is an administrator on the SQL host. Connect to the SQL Server, retain the SQL Server selection, and review the SPN tab. Correcting SPNs through the tool requires Validated write to service principal name permission.^3^

    Do not manually delete or rewrite SPNs without confirming their owners; an incorrect change can break authentication for other SQL clients.

    If the SQL log contains 0x80090311 or 0x80090304, also check the SQL Server’s System log for matching Kerberos/LSASS events. Microsoft documents the same “untrusted domain” message when LSASS stops responding and recommends validating the SPNs with setspn -Q and setspn -L.^4^

    Because all three environments are affected, compare their SQL host, SQL service account, Workflow Manager RunAs account, domain controllers, and applied policy. A shared component is the most useful discriminator; avoid rebuilding three workflow farms before finding it.

    3. Validate Workflow Manager after SQL authentication works

    Once all Workflow Manager and Service Bus services start successfully:

    1. On the Workflow Manager server, browse to:
      • https://localhost:12290
    2. From a SharePoint server, browse to the Workflow Manager endpoint by its FQDN.
    3. In Central Administration → Application Management → Manage service applications → Workflow Service Application Proxy, check that the status is connected.

    If the endpoint works but the proxy is disconnected, register it again from a SharePoint server using the existing endpoint and scope:

    Register-SPWorkflowService `
      -SPSite "http://sharepoint.contoso.com" `
      -WorkflowHostUri "https://wfm.contoso.com:12290" `
      -ScopeName "SharePoint2013" `
      -Force
    

    Run this as the Workflow Manager RunAs account or a member of its AdminGroup. Microsoft’s validation procedure requires testing the endpoint from both the workflow server and SharePoint, then confirming the proxy reports connected.^5^

    Do not leave/rejoin the Workflow Manager farm or run its Configuration Wizard while SQL authentication is failing. Those operations cannot repair error 18452 and add certificate-generation-key and database-rejoin risks.

    Longer-term supported upgrade

    Classic Microsoft Workflow Manager cannot be upgraded in place to SharePoint Workflow Manager. That migration requires leaving the existing farm, preserving the certificate generation key, uninstalling the classic components, installing SharePoint Workflow Manager, and reusing the existing databases.^6^

    Treat that as a planned upgrade after restoring the current SQL connectivity—not as the immediate repair for this authentication error.


    References

    1. MSSQLSERVER_18452
    2. Consistent authentication issues in SQL Server
    3. Use Kerberos Configuration Manager to diagnose Kerberos issues in SQL Server
    4. Local security subsystem errors in SQL Server
    5. Upgrade from Workflow Manager to SharePoint Workflow Manager on a new farm
    6. Install and configure workflow for SharePoint Server
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  2. Lin V 2,315 Reputation points Independent Advisor
    2026-11-30T20:38:15.1333333+00:00

    Hi Sherazad,

    You may first try the diagnostic steps suggested in the AI answer, particularly reproducing the failure by starting Workflow Manager Backend or a Service Bus service, then checking SQL Server Management Studio > Management > SQL Server Logs > Current at the same timestamp to identify which account is being rejected.

    You can also confirm the configured accounts with:

    Get-WFFarm | Select-Object RunAsAccount, AdminGroup
    Get-SBFarm | Format-List
    

    Since you mentioned that the issue started around July and you are using Classic Workflow Manager, please also check the SharePoint build/KB currently installed. The July 2026 SharePoint Server 2016 update documentation states that Classic Workflow Manager requires the 53601 debug flag to continue using it.

    I would avoid making changes to SQL SPNs or rebuilding/rejoining the Workflow Manager farm before the authentication failure has been identified.

    If the issue persists, I suggest opening a support request with Microsoft Support, as further troubleshooting may require reviewing the Workflow Manager, SQL authentication, and Kerberos configuration together.

    Was this answer helpful?

    0 comments No comments

Your answer

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