Occasional error for a SQL Server Agent job that calls SSIS packages to read SAP data - error code 0xC0014009

pmscorca 1,052 Reputation points
2023-06-07T13:57:09.69+00:00

Hi,

I’m monitoring a SQL Server Agent job that calls some SSIS packages deployed on the SSIS catalog, in order to load SAP data into a SQL staging via ODBC. This job goes in error one time each 4-5 runs with success.

In particular, the error is “The AcquireConnection method call to the connection manager SAP_HANA_ODBC failed with error code 0xC0014009”.

The ODBC driver for SAP HANA is HDBODBC32 vers. 2.4.194; I cannot use the 64-bit one because it doesn’t function, and so the job steps run to 32-bit.

The version/edition of SQL Server is Microsoft SQL Server 2017 (RTM-CU31) (KB5016884) - 14.0.3456.2 (X64) Sep 2 2022 11:01:50 Copyright (C) 2017 Microsoft Corporation Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2019 Datacenter 10.0 <X64> (Build 17763: ) (Hypervisor).

Each job step runs as a proxy based on a credential with the identity having the sysadmin role in SQL Server. The job owner is the credential identity.

The related ODBC data source tested from the ODBC administrator always connects to SAP with success and uses an ad-hoc SAP user.

No evidencies in the SQL Server log, the SQL Server Agent log and the system event viewer.

Now, any suggests to me in order to run this job with success always? Any incompatibilities between SQL Server 2017 and the ODBC for SAP HANA? Any permissions to add for the above identity credential? Other?
Many thanks

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,703 questions
SQL Server | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 41,491 Reputation points
    2023-06-08T02:12:53.4933333+00:00

    Hi @pmscorca,

    There is no more error message for us to narrow down the issue.

    Please try to set Delay Validation property of Data Flow tasks to TRUE.

    If this does not work, could you please enable logging to catch more details?

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.


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.