Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
natex8
Frequent Visitor

ODBC & OLE DB Timeout Errors

Given the pain that I have been through over the past couple of weeks, I figured I would document the a description of my failure as well as the solution I put in place to address the issue:

 

For several weeks, my large ODBC queries against an AS400 data warehouse (IBM - i Series) worked well.  Then all of a sudden they failed to updated and 

ODBC Failure:

  • HYT00 - Login Timeout Expired
  • In my example, I have 9 different Queries that timeout after trying to shake hands and authenticate with the server
  • In a cascading manner, all the 9 of the queries fail after the HYT00 code is triggered
  • ODBC Power BI FailureODBC Power BI Failure

OLE-DB Failure:

  • CWBCO1051 - User Specified Timeout
  • Similar to the the ODBC documented above, all queries fail after the code is triggered
  • ODBC Power BI Failure
  • OLE-DB Power BI FailureOLE-DB Power BI Failure

Solution Option 1:

  • Add timeout parameter to connection string
  • ;Connect Timeout=xx  (xx = seconds)

  • The connection string update can be used for both ODBC & OLE DB configurations
  • image.png

Solution Option 2:

  • Add timeout parameter to Query argument within M Code / Advanced Editor
  • [Query="SELECT ...", CommandTimeout =#duration(0,1,0,0)]

I prefer Option 1, because the user will lose the ability to edit the Source Query within the UI as shown in Option 1.  All updates to the source query will have to made through the Advanced editor after that point, which can be rather cumbersome with complex statements.

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@natex8,

 

Thanks for the sharing.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.