Digital Exchange

 View Only
last person joined: yesterday 

This community is a place to discuss Blue Prism DX assets and development.

Expand all | Collapse all

ODBC Timeout Error

  • 1.  ODBC Timeout Error

    Posted 04-17-2023 15:13

    Hi All,

    I am using an ODBC Connection to run a SQL query against Snowflake.

    I am using the object from the Digital Exchange.

     

    When I open the connection there is a timeout being set:

     

    However, this doesn't seem to be carrying through to the execution of the query:

     



    ------------------------------
    Eoin McAndrew
    N/A
    Laya Healthcare
    Europe/London
    ------------------------------


  • 2.  RE: ODBC Timeout Error

    Posted 04-18-2023 17:14

    Hi Eoin,

    In the calculation stage, does it need an equals sign between Timeout and 1000?  i.e. Timeout=1000;



    ------------------------------
    Charlie Kovacs
    Sr. Digital Exchange Engineer
    Blue Prism
    Austin, USA
    ------------------------------



  • 3.  RE: ODBC Timeout Error

    Posted 04-19-2023 09:50

    Thanks Charlie, I have tried that but no luck



    ------------------------------
    Eoin McAndrew
    N/A
    Laya Healthcare
    Europe/London
    ------------------------------



  • 4.  RE: ODBC Timeout Error

    Posted 04-19-2023 19:33

    Hi Eoin,

    I am not well-versed in Snowflake, but I have a couple of ideas.

    1. Does it work if you use query_timeout instead of timeout in the connection string? The Snowflake docs seem to suggest that may be the preferred keyword for an ODBC connection. https://docs.snowflake.com/en/developer-guide/odbc/odbc-parameters (Connection Parameters > Additional Connection Parameters)

    2. It appears the timeout can be set in two places for Snowflake - for a single session or for the overall warehouse. It may be worth checking what the timeout is for the warehouse, because Snowflake apparently will use whichever value is lower.

    I suspect the solution ultimately lies with Snowflake. I reviewed the ODBC object in Blue Prism again, and I am not seeing any indication that it truncates or overrides the timeout or any values within the connection string.

    Cheers



    ------------------------------
    Charlie Kovacs
    Sr. Digital Exchange Engineer
    Blue Prism
    Austin, USA
    ------------------------------



  • 5.  RE: ODBC Timeout Error

    Posted 04-20-2023 16:46

    Hi Charlie, 
    So in relation to query 1 it has not made a difference.

    In relation to query 2 Snowflake uses a 15 minute timeout in our company as the default.

    I have discovered if I reduce the amount of columns I get results but if I query more then 5 I get a different error to the one here? (This has been following some changes we made)

    The error now is 

    ERROR [HY000] [Snowflake][Snowflake] (25) 
      Result download worker error: Worker error: [Snowflake][Snowflake] (4) 
      REST request for URL https://sfc-ie-ds1-7-customer-stage.s3.eu-west-1.amazonaws.com/I've removed rest of URL for security reasons failed: CURLerror (curl_easy_perform() failed) - code=35 msg='SSL connect error' osCode=9 osMsg='Bad file descriptor'.


    ------------------------------
    Eoin McAndrew
    N/A
    Laya Healthcare
    Europe/London
    ------------------------------



  • 6.  RE: ODBC Timeout Error

    Posted 04-20-2023 21:59

    Hi Eoin,

    The ODBC object in Blue Prism is very lightweight in the sense that it only forwards a connection string or query to a database system, and it returns either result sets or error messages generated by the underlying database system.

    A few things I could recommend checking:
    1. Validate your connection string is correct for Snowflake - the screenshot in the first post looks more like a connection string for a SQLite system.
    2. Validate the Snowflake ODBC driver you installed is a) 32-bit and b) configured correctly. Do you have a database team or DBA that could verify this or validate ODBC connectivity outside of Blue Prism?



    ------------------------------
    Charlie Kovacs
    Sr. Digital Exchange Engineer
    Blue Prism
    Austin, USA
    ------------------------------



  • 7.  RE: ODBC Timeout Error

    Posted 04-24-2023 11:16

    I'm a bit confused here Charlie, as the smaller query works. If it was a connection issue wouldn't it be a case that none of them would work?



    ------------------------------
    Eoin McAndrew
    N/A
    Laya Healthcare
    Europe/London
    ------------------------------



  • 8.  RE: ODBC Timeout Error

    Posted 04-25-2023 18:18

    I would agree with that same idea, but the larger query returning an "SSL connect error" message leads me to believe there is a connection issue even if it is intermittent or varies from query to query. Maybe it is outside of the ODBC driver and connection string. It could be the larger query's URL is getting blocked somewhere in your network.

    The reason I question the connection string is there are SQLite keywords mixed into it. I think validating the connection string and ODBC driver settings would be worthwhile to at least rule them out.




    ------------------------------
    Charlie Kovacs
    Sr. Digital Exchange Engineer
    Blue Prism
    Austin, USA
    ------------------------------



  • 9.  RE: ODBC Timeout Error

    Posted 21 days ago

    @Eoin McAndrew 

    FYI - We've just uploaded a new version of the Data - ODBC VBO which includes a new optional input parameter on both the Execute and ExecuteNonQuery actions which allows you to set the timeout of the underlying .NET objects that are used to run the query. This may help with your timeout issue. The default timeout in .NET is 30 seconds, so you could try increasing it to say 60 seconds.

    Cheers,



    ------------------------------
    Eric Wilson
    Director, Integrations and Enablement
    Blue Prism Digital Exchange
    ------------------------------



  • 10.  RE: ODBC Timeout Error

    Posted 20 days ago

    Thanks @Eric Wilson , I have deployed this but I keep getting an error with the execute of object reference not set to an instance of the object ?



    ------------------------------
    Eoin McAndrew
    N/A
    Laya Healthcare
    Europe/London
    ------------------------------



  • 11.  RE: ODBC Timeout Error

    Posted 20 days ago

    Hi @Eoin McAndrew 

    Apologies for that. We've addressed that issue. Please download the .bprelease file again.

    Cheers,



    ------------------------------
    Eric Wilson
    Director, Integrations and Enablement
    Blue Prism Digital Exchange
    ------------------------------



  • 12.  RE: ODBC Timeout Error

    Posted 19 days ago

    Thanks @Eric Wilson the newer version is running, however, I'm still getting my error and seems to be an issue with Snowflake and a URL being inaccessible.

    Regards



    ------------------------------
    Eoin McAndrew
    N/A
    Laya Healthcare
    Europe/London
    ------------------------------



Welcome to the Blue Prism Digital Exchange Community!

The Blue Prism Digital Exchange is a "shop window" for new and emerging technologies—a platform that puts powerful RPA and AI capabilities into the hands of business leaders. Users can find and apply pre-built AI capabilities, in the form of downloadable integrations and Visual Business Objects (VBOs), to automated processes. These assets connect and integrate Digital Workers, existing systems and processes to Blue Prism's technology partners, creating a solid foundation of AI-enabled Intelligent Automation that's scalable and sustainable.

Blue Prism Digital ExchangeDX Asset IdeasContact DX Support

FAQs

The Blue Prism Digital Exchange (DX) is an online marketplace where businesses can instantly access, apply and share pre-built AI, cognitive and advanced RPA technologies from best-in-class providers. These assets easily connect to existing digital workers, systems and processes to enhance automation capabilities.
The Digital Exchange is free to all users. Most of the content on the DX is free to download but there are some submissions that do have a cost associated. The submissions with a cost are advertised on the asset card and profile. No unwanted costs will be applied to any users.
You can visit and browse the Digital Exchange here. If you would like to consume or download any material it is necessary to create an account on the Blue Prism Portal first.
Everyone can access the Digital Exchange and consume the assets on it. If you would like to contribute to the marketplace it is necessary that you create an account and sign up as a partner.