Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


SSIS Package error

Posted on 2011-10-03
Medium Priority
Last Modified: 2012-05-12
I am trying to run a ssis package and I get the following error message :

Failed to lock variable "intDelayTime" for read access with error 0xC0010001 "The variable cannot be found. This occurs when an attempt is made to retrieve a variable from the Variables collection on a container during execution of the package, and the variable is not there. The variable name may have changed or the variable is not being created.".  

I have declared the variable intDelayTime as Int32 in the variable list but still I get the above message. Please help. Thanks.

Question by:Rdichpally
LVL 11

Expert Comment

by:Simone B
ID: 36903950
First thing to do is to check the scope of the variable that you created.
LVL 16

Accepted Solution

vdr1620 earned 1500 total points
ID: 36904067
Click on the task that is giving you this Error and then Go to Variables and check for the variable..If you don't see it in the list then it is a Variable Scope Issue, meaning that the variable is not in scope for the task to use it.. delete the variable and create it globally to be be used in the package
LVL 21

Expert Comment

by:Jason Yousef, MS
ID: 36905391
Check the correct spelling , it's case sensitive.

Also check the scope as other's advised....to change the scope ,either delete and recreate the variable or download BIDS HELPER

Also if you're using a script task, make sure not to forget to add the value as read only or read write..

LVL 21

Expert Comment

by:Alpesh Patel
ID: 36909004
Please make sure the scope of the Variable.

It is for whole package or any of task.

If variable is define for any of task then it will not available outside that task.

Author Closing Comment

ID: 37076888

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question