Connectivity: Troubleshoot DB Availability and Connection Errors

Venkata Ramana Reddy Beeram 0 Reputation points
2026-10-13T11:52:52.2+00:00

Job failed due to reason: at Source 'NativeToWorkdayCompany': Cannot connect to SQL database: 'jdbc:sqlserver://azcfasqlp003.database.windows.net;database={CFA}', 'Service Principal ID: 583bea78-xxxxxxxxxxxx'.[SQL Exception]Error Code:40613, Error Message: Database 'CFA' on server '' is not currently available.  Please retry the connection later.  If the problem persists, contact customer support, and provide them the session tracing ID of '{8A7BA5D5-346F-49CE-82F3-xxxxxxxxx}'. ClientConnectionId:17aded4e-0bad-4937-90ad-xxxxxxxxxxxxxxxxx, error stack:shaded.msdataflow.com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:276) shaded.msdataflow.com.microsoft.sqlserver.jdbc.TDSTokenHandler.onEOF(tdsparser.java:329) shaded.msdataflow.com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:137) shaded.msdataflow.com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:42) shaded.msdataflow.com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(SQLSer

Azure SQL Database

1 answer

Sort by: Most helpful
  1. AI answer

    2026-10-13T11:53:08.1733333+00:00

    Error 40613 means the Azure SQL database is currently unavailable. The documented common causes are a transient failover or brief unavailability during a scale operation. In Azure SQL, this error can also appear if a Dedicated Admin Connection (DAC) session is already established for that database, and for serverless databases it can indicate the database is paused and needs time to resume.

    Recommended troubleshooting path:

    1. Retry the connection with backoff.
      • This error is classified as transient.
      • Use retry logic in the client or pipeline.
      • A connection timeout of at least 30 seconds is recommended.
    2. Verify basic connection settings.
      • Confirm the JDBC connection string uses the fully qualified server name.
      • Confirm the SQL port is 1433.
      • Make sure TCP/IP is enabled on the client side.
    3. Check whether the database is serverless and paused.
      • If the database is serverless, 40613 can occur while the database is paused.
      • Wait about one minute, then retry.
    4. Check Azure Portal health information.
      • Review Resource Health for the database/server to see whether there is an ongoing platform issue affecting availability.
    5. If the issue persists for more than a few minutes:
      • Capture the session tracing ID from the error.
      • Contact support with that tracing ID.
    6. If worker/resource pressure is suspected:
      • Error 49918 indicates the service is busy due to insufficient resources.
      • Error 10928 indicates a resource governance limit was reached.
      • In sustained cases, reduce concurrency, shorten long-running operations, or scale up the database or elastic pool.

    If the failure is happening only intermittently in the job, the most likely handling is resilient retry logic. If it continues consistently, check Resource Health and whether the database is serverless or under resource pressure, then escalate with the session tracing ID.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

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.