Error when running SSIS package as a job

  • Hello,

    I've created an SSIS package that collects data from SQL Servers and databases such as CPU, Wait time, database growth, etc. The package runs without any issues in Visual Studio 2019; however, when I run the same package as a job I get this message:

    Keyword not supported: 'provider'.

    How do I fix it?

    Thanks.

     

     

  • What type of SQL connection are you using?

    OLEDB looks like this:

    Data Source=MyDBServer;Initial Catalog=MyDatabase;Provider=SQLNCLI11.1;Integrated Security=SSPI;Auto Translate=False;

    ADO looks like this:

    Data Source=MyDBServer;Initial Catalog=MyDatabase;Integrated Security=True;

    Are you using an ADO source but provided an OLEDB connection string maybe? Do you use environments, did you perhaps configure an ADO connection to use an OLE environment variable?

  • I've tried Native OLE DB, Microsoft OLE DB Provider for SQL Server and Microsoft OLE DB Driver for SQL Server and still was getting the same error.

  • Does it run if you execute it in T-SQL?

    DECLARE @execution_id BIGINT;

    EXEC SSISDB.catalog.create_execution
    @package_name = N'package.dtsx'
    , @execution_id = @execution_id OUTPUT
    , @folder_name = N'folder'
    , @project_name = N'project'
    , @use32bitruntime = False
    , @reference_id = 1
    , @runinscaleout = False;

    SELECT @execution_id;

    DECLARE @var0 SMALLINT = 1;

    EXEC SSISDB.catalog.set_execution_parameter_value
    @execution_id
    , @object_type = 50
    , @parameter_name = N'LOGGING_LEVEL'
    , @parameter_value = @var0;

    EXEC SSISDB.catalog.start_execution @execution_id;
    GO

  • Take a look in the All Executions report and see whether you get a more detailed error there.


  • It returns the value of 176. Not sure what that means

  • ichervin wrote:

    It returns the value of 176. Not sure what that means

    The All Executions report is way more verbose than that.


  • There are no error messages in the All Execution report. I created a table that gets populated when there are any errors when job gets executed. This is where I found this error.

  • ichervin wrote:

    There are no error messages in the All Execution report. I created a table that gets populated when there are any errors when job gets executed. This is where I found this error.

    Are you saying that the All Executions report says that the package completed successfully?


  • Yes that is correct

  • OK, that is surprising.

    What sort of connection are you using (ADO/OLEDB etc)? Can you supply a (redacted as needed) connection string that is failing?


  • Check connection string:

    Sql Connection: Data Source=ServerName;Initial Catalog=DatabaseName;User ID=Username;Password=Password;

    VS

    OleDbConnection: Provider=SQLOLEDB;Data Source=ServerName;Initial Catalog=DatabaseName;User ID=Username;Password=Password;

    If you're using SqlConnection in .NET, the connection string should not include the Provider keyword, as it's specific to OleDbConnection.

     

     

Viewing 12 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic. Login to reply