"errorCode": "2200", "message": "ErrorCode=UserErrorFailedToConnectOdbcSource

Muhammad Tayyab Majeed 0 Reputation points
2024-10-07T09:04:29.3966667+00:00

I was hoping you could help me solve this error which is happening for a couple of days.
I'm taking data from Access Live Db using a synapse Pipeline when I checked in Monitor, a few of copy activities have ran successfully while a couple had this below error and failed. There were also a few which showed timeout. I Just recently created ODBC connection and pipeline worked fine for a couple days.
{ "errorCode": "2200", "message": "ErrorCode=UserErrorFailedToConnectOdbcSource,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=,Source=Microsoft.DataTransfer.Runtime.GenericOdbcConnectors,''Type=System.Data.Odbc.OdbcException,Message=,Source=,'", "failureType": "UserError", "target": "Copy Data", "details": [] }

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.
5,378 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Muhammad Tayyab Majeed 0 Reputation points
    2024-10-08T08:21:19.73+00:00

    Apologies', I want to render my mistake that Source is not an Access DB but sage.
    and secondly, I have already mentioned that the copy activity is working fine for a few tables inside For Each activity but then fails for a couple and time out for the remaining.
    Timeout is already at 15 min.
    Those copy activities that have been successfully executed took at most 30s.
    So Authentication won't be a problem as if it was a connection won't be established for the selective few either.

    0 comments No comments

  2. Amira Bedhiafi 33,631 Reputation points Volunteer Moderator
    2024-10-10T19:25:42.42+00:00

    The error you're encountering in Azure Synapse Analytics when attempting to connect to an Access Live DB using an ODBC connection suggests an intermittent failure in the connection between Synapse and the ODBC source. The error message ErrorCode=UserErrorFailedToConnectOdbcSource typically points to issues such as network connectivity, ODBC driver configuration, or timeout settings.

    Here are a few steps you can take to troubleshoot this:

    1. ODBC Driver Stability: Ensure that the ODBC driver you're using is stable and up-to-date. Sometimes, driver issues can cause intermittent connectivity problems. Check for any available updates and apply them.
    2. ODBC Connection Timeout: Review the timeout settings in the ODBC connection and Synapse pipeline. Increase the timeout if necessary, as longer queries or network instability can cause timeouts.
    3. Network Issues: Intermittent network issues can cause some copy activities to succeed and others to fail. Ensure there is consistent network connectivity between Synapse and the ODBC source.
    4. Retry Logic: Implement retry logic in your Synapse pipeline to handle intermittent connection failures. This can help mitigate temporary disruptions.
    5. Logging and Monitoring: Enable verbose logging to capture more detailed information about the failed connections, which can help pinpoint the issue.
    6. Resource Limits: Check if your Access DB or network infrastructure is hitting any resource or connection limits, which might explain why some jobs run successfully while others fail.

    By following these steps, you should be able to narrow down the cause of the connection failures and either resolve the issue or provide more diagnostic information for further troubleshooting.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.