Forum Discussion

Pupic's avatar
Pupic
Frequent Visitor
8 months ago
Solved

Error HYT00 in notebook

Hello

I have a python notebook in a Fabric workspace that contains also a warehouse and runs on a F8 Fabric Capacity.

The notebook has different cells that use T-SQL to drop and recreate tables in the warehouse, one cell for each table.

This notebook has been working correctly for about 6 month now. Yesterday, when executing I received this error:

I saw this post https://community.fabric.microsoft.com/t5/Data-Engineering/Pyodbc-Connect-to-Warehouse-Endpoint-timing-out/td-p/4269231 and checked my secrets but they are still valid and expire in 2027.

 

I tried stopping and restarting my F8 capacity but the error is still there.

I also tried switching to the Trial Capacity and with that the notebook works without any error.

 

Note that I have the same setup for the production environment (notebook and warehouse in the same workspace, but different from the development one) and this notebook still works perfectly also with the F8 Capacity.

 

Do you have any suggestions?

Thank You

  • Pupic's avatar
    Pupic
    8 months ago

    Hi,

    unfortunately, your solution didn't help.

    We are now using a Stored Procedure task instead of the notebook since we weren't able to solve this issue. 

    Thank you.

7 Replies

  • Hi Pupic,

    Thank you for your inquiry on the Microsoft Fabric Community Forum.

    Based on my understanding, the behavior is not related to notebook logic, pyodbc configuration, or credentials. The issue appears to be a capacity level SQL endpoint connectivity problem on the affected F8 capacity. The HYT00 error occurs before authentication completes, indicating that the warehouse SQL endpoint is unable to accept new connections within the timeout window due to capacity side resource constraints or transient backend issues. The fact that the Trial capacity works confirms that the problem is isolated to the specific capacity and not to the workload.

    Please follow the steps below, which may help resolve the issue:

    1. Avoid creating a new ODBC connection in each notebook cell. Use a single connection per run and explicitly close it.
    2. Check SQL usage, concurrency, and queue duration in the Capacity Metrics app to confirm whether the capacity is under pressure.
    3. Temporarily scale the capacity or move the workspace to a different capacity to confirm that the issue is capacity specific.

    Additionally, please refer to the links below:
    How to use notebooks - Microsoft Fabric | Microsoft Learn
    What Is Data Warehousing in Microsoft Fabric? - Microsoft Fabric | Microsoft Learn
    What is the Microsoft Fabric Capacity Metrics app? - Microsoft Fabric | Microsoft Learn
    Scale your Fabric capacity - Microsoft Fabric | Microsoft Learn

    We hope the information provided helps to resolve the issue. Should you have any further queries, please feel free to contact the Microsoft Fabric Community.

    Thank you.

  • Hi Pupic,

    We would like to follow up and see whether the details we shared have resolved your problem. If you need any more assistance, please feel free to connect with the Microsoft Fabric community.

    Thank you.

    • Pupic's avatar
      Pupic
      Frequent Visitor

      Hi,

      unfortunately, your solution didn't help.

      We are now using a Stored Procedure task instead of the notebook since we weren't able to solve this issue. 

      Thank you.

  • Hi Pupic,

    Thankyou for the update.

    Based on my understanding, using a Stored Procedure task instead of a notebook in Microsoft Fabric is a valid approach and often more reliable, since the logic runs directly within the Warehouse SQL engine rather than depending on client side ODBC connections. If this method is now executing consistently and meets your requirements, you may continue using it.

    Because the original notebook issue could not be resolved through configuration changes and required a workaround, it appears to be related to a capacity specific backend SQL endpoint problem. To prevent similar issues, we request that you raise a Microsoft support ticket using the link:Microsoft Fabric Support and Status | Microsoft Fabric

    Should you have any further queries, please feel free to contact the Microsoft Fabric community.

    Thank you.

    • Pupic's avatar
      Pupic
      Frequent Visitor

      Hi, yes at the moment the SP is still working correctly.

  • Hi Pupic,

    Thank you for the update. We are pleased to note that the SP is functioning correctly. Should you have any further queries, please feel free to contact the Microsoft Fabric community.

    Thank you.