Share via

How to fix following Error: Query failed because of connection issues to control container or control container failure.

Harinath Reddy A 0 Reputation points
2026-04-11T15:56:31.3766667+00:00

I have a Synapse Lake Database what has tables which were created on csv files stored in adls gen2, Everything has been working fine until now.

Every time I execute a specific query in SSMS or SQL Query of Synapse I get the following error message:

[Query failed because of connection issues to control container or control container failure.]

When I run the same SQL query in a notebook using PySpark with spark.sql, it successfully fetches results.

Azure Synapse Analytics
Azure Synapse Analytics

An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.

0 comments No comments

3 answers

Sort by: Most helpful
  1. SAI JAGADEESH KUDIPUDI 2,625 Reputation points Microsoft External Staff Moderator
    2026-04-13T10:33:00.0066667+00:00

    Hi Harinath Reddy A,

    Thanks for sharing the details — this is helpful.

    Since your query is working fine in PySpark but failing from the SQL endpoint, this usually means the issue is not with the data itself, but with how the serverless SQL pool is trying to access your ADLS Gen2 storage.

    The error you’re seeing:

    “Query failed because of connection issues to control container or control container failure”
    is commonly related to storage access, networking, or sometimes a temporary backend issue.

    **
    **What I’d suggest checking
    1. Storage permissions
    First, please make sure the SQL endpoint has proper access to your storage account:

    • If you’re using Managed Identity → it should have at least Storage Blob Data Reader role
    • If you’re using SAS or credentials → double-check that they are still valid and not expired

    As a quick test, you can try querying the file directly using OPENROWSET. This helps confirm whether the SQL endpoint can actually reach the storage.
    2. Storage networking settings
    If your storage account has firewall rules or private endpoints enabled:

    • Make sure “Allow Azure services” is enabled, or
    • Verify that Synapse is correctly configured with Managed VNet / private endpoint access

    3. External table / file path check
    Since your tables are built on CSV files:

    • Confirm the files are still present in the same location
    • Ensure the path hasn’t changed
    • Check if there were any recent changes to file format or schema

    Since the query works in PySpark, the data and storage are healthy. The issue is isolated to the serverless SQL pool’s access path (permissions, networking, or transient service condition). Following the above steps should help resolve the problem.
    Microsoft Documentation

    Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.

    Please do not forget to "Accept Answer" and "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

  3. Q&A Assist
    2026-04-11T15:56:42.52+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error indicates an internal issue in the serverless SQL pool control plane (control container) rather than a problem with the CSV files or Spark itself. Because the same query works via Spark but fails only in serverless SQL (SSMS / Synapse SQL on-demand), the problem is specific to the serverless SQL pool execution.

    For this class of internal control-container/topology issues, the documented guidance is:

    1. Retry the query after some time, in case it is a transient internal failure.
    2. If the error persists, file a support ticket with Azure Support and include:
      • The exact error text.
      • The workspace name and region.
      • The database and query text (or a minimized repro).
      • The approximate time and correlation IDs (if available from the error details).
      • Any unusual workload conditions (for example, sudden spike in concurrent queries, large wildcard queries, or recent changes to data layout).

    This allows the Azure Synapse team to investigate the control-container failure or topology change on the service side. There is no client-side configuration change documented that resolves this specific control-container error.


    References:

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.