Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5978743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:33:38+00:00 2026-05-22T21:33:38+00:00

I have an SSIS Package that is scheduled to export data on a daily

  • 0

I have an SSIS Package that is scheduled to export data on a daily basis. I have a few Tasks that I’d like to execute only on the first day of the month. It is important that these Tasks are skipped, and that the Package continue to execute if it is not the first of the month.

After doing a bit of searching, I’ve found numerous references to solve this problem by using the method posted in the following blog post:
http://bi-polar23.blogspot.com/2007/05/conditional-task-execution.html

I think, however, there is a simpler solution. Why can’t I just add an expression to each of my 1st-day-of-the-month Tasks which checks the day of the month and sets the “Disabled” property on the Task accordingly?

Using expressions and disabling the Task seems a lot simpler than adding a dummy script before each Task. Does anyone else see or know of a problem with my method for solving this problem? Preliminary tests appear to work, however, I’ve found SSIS to be finicky. I’d rather not do something that is “unconventional” if it might cause problems in the future.

Thanks for any thoughts.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:33:39+00:00Added an answer on May 22, 2026 at 9:33 pm

    I don’t think there is anything unconventional about setting expressions to disable tasks on conditional basis. I have done the same thing in a package that I developed. I would prefer to set the conditions directly on the Disable property on the task using Expressions rather than using Script Task. Refer screenshot #1. In other words, I agree with your approach.

    A note of caution with this approach would be that the next person looking into the package may not be aware why a particular task didn’t execute on a given date (in your case first day of the month). To prevent that, you can add an Annotation stating that there is an Expression set on the Disable property of the task.

    One other thing I would suggest is to calculate the first day of the month value and store it in a variable that has the property EvaluateAsExpression set to true and use this variable in the Expressions of a given task to disable\enable it. This would prevent calculating the value in each of the tasks’ expressions. Screenshot #1 displays that the Disable property is set to assume the value stored in the variable IsFirstDayOfMonth. Expression on this variable can be set to calculate the first day of the month.

    Hope that helps.

    Screenshot #1:

    1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an SSIS exportation package that is used to export data from an
I have an SSIS package that queries data from a view using an SQL
I have written an SSIS package that essentially takes data from multiple sources and
I have an SSIS (2005) package that transforms some XML data and then imports
I have several variables in an SSIS package that I would like inserting into
Are there some way to execute a SSIS Package that I have in a
I have an SSIS Package that is copying data from a column that is
OK...I have my first SSIS package that uses a Scripting object. I clicked the
I have an SSIS package that executes several tasks. I manually added an event
I have an SSIS package that takes data from Tables in an SQL database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.