SSIS package error while executing the job from SQL Server Agent

Gani_tpt 1,506 Reputation points
2023-03-30T12:52:55.7166667+00:00

I have developed one SSIS package and trying to make jobs in SQL server agent.

After configuring the packages in SQL Server Agent, When i run the jobs i am getting the below error.

Error : Argument "Excel" for option "connection" is not valid. The command line parameters are invalid. The step failed.

Below is the server settings :

Windows server 2019 - 64-bit version

SQL Server Business Intelligence studio - Microsoft Visual Studio 2008

User's image

pls. tell me where is the problem and how to solve this....?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,713 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,453 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Bjoern Peters 8,781 Reputation points
    2023-03-30T13:41:03.5933333+00:00

    Hi Gani

    You should provide more information about your connection, how it is configured, where you are executing the package during development, whether Excel is installed on that server, etc.

    And maybe it is not the best idea to use such old VS ;-)

    I hope my answer is helpful to you,

    Your

    Bjoern Peters

    If the reply was helpful, please upvote and/or accept it as an answer, as this helps others in the community with similar questions. Thanks!


  2. ZoeHui-MSFT 32,821 Reputation points
    2023-03-31T06:09:03.36+00:00

    Hi @Gani_tpt,

    It seems that the error thrown at your Excel Source.

    Please uncheck the Excel Connection Manager under Data sources tab in SQL Server Agent Job Step. Besides, make sure that you have check the ‘Use 32 bit runtime’ checkbox under Execution options tab in SQL Server Agent Job Step.

    User's image

    Regards,

    Zoe Hui


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


  3. ZoeHui-MSFT 32,821 Reputation points
    2023-03-31T09:31:30.8066667+00:00

    Hi @Gani_tpt,

    Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available.

    This behavior occurs when you try to run the SSIS package by using a different computer or a different user account than the computer and user account that were used to create the SSIS package.

    To resolve this behavior, change the value of the ProtectionLevel property in the SSIS package.

    More details you may refer the official documentations:

    error-loading-message-run-integration-services-package

    access-control-for-sensitive-data-in-packages

    Regards,

    Zoe Hui


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