SSIS Package Stuck at “Created Execution” Status

前端 未结 3 1688
醉梦人生
醉梦人生 2021-01-12 06:11

I recently deployed a update to one of my SSIS projects, and ever since the project has failed it\'s scheduled runs.

The SSIS package appears to be stuck at the \"Cr

3条回答
  •  醉梦人生
    2021-01-12 06:44

    For someone that had this issue with a development team triggering 1000+ bad SSIS Executions through the stored procedures we had set up on the Database Administrator side causing a memory overload... Can't do much for not following documentation.

    To set parameters in your package if they remain unset. see reference

    EXEC [SSISDB].[catalog].[set_execution_parameter_value] id, object_type, parameter_name, parameter_value

    If you wish to start it and get it to run after setting up the parameters.

    EXEC [SSISDB].[catalog].[start_execution] id

    If and only if status of the package is left in the status = 1 state. see reference

    There is also if the package is already running to stop it

    EXEC [catalog].[stop_operation] id

    And if you need to do it bulk for what I had (setting parameters up properly) create a cursor and do what you need to do based on the status and issue in the packages if there are valid ones that need to run and invalid ones that need to end their existence.

    DECLARE id BIGINT

    DECLARE < cursor > CURSOR FAST_FORWARD FOR
      SELECT * FROM [SSISDB].[catalog].[executions] WHERE [status] = 1

    OPEN < cursor >
     FETCH NEXT FROM < cursor > INTO id

     WHILE @@fetch_status=0
     BEGIN
      ...
      Code for changes to SSIS packages
      ...
     END

    CLOSE < cursor >
    DEALLOCATE < cursor >

提交回复
热议问题