dbTalk Databases Forums  

Intermittent Failure on Expression Evaluation

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Intermittent Failure on Expression Evaluation in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kris Selden
 
Posts: n/a

Default Intermittent Failure on Expression Evaluation - 01-12-2006 , 03:25 PM






We have a SSIS package that intermittently fails on the deployed server
(works fine on our dev server) with the following error:

"The variable "%1!s!" is already on the read list. A variable may only be
added once to either the read lock list or the write lock list."

Not only does it fail only some of the time it also fails on different
variables, always on an expression and always at the begining.

The variables that are giving the intermittent problems are used in more
than one expression to initialize other variables or properties.

I'm worried it is executing the expressions on more than one thread and
ending up on different processors, and the locking scheme doesn't use a
memory boundary when checking if the variable is already on the readonly list
before adding it.

Here are some examples:

The following is the *first* 4 messages of one failed run:
Beginning of package execution
The variable "User::RefreshFrom" is already on the read list. A variable may
only be added once to either the read lock list or the write lock list.
The expression for variable "DeleteRevenueFactQuery" failed evaluation.
There was an error in the expression.
An error occurred with the following error message: "The expression for
variable "DeleteRevenueFactQuery" failed evaluation. There was an error in
the expression.".

The following is the *first* 3 messages of another failed run:
Beginning of package execution
The variable "User::SqlServer" is already on the read list. A variable may
only be added once to either the read lock list or the write lock list.
The expression "@[User::SqlServer]" on property "ServerName" cannot be
evaluated. Modify the expression to be valid.



Reply With Quote
  #2  
Old   
Kris Selden
 
Posts: n/a

Default RE: Intermittent Failure on Expression Evaluation - 01-27-2006 , 09:36 AM






I was under the impression that as an MSDN subscriber, I was going to get a
response to this in 2 days.

"Kris Selden" wrote:

Quote:
We have a SSIS package that intermittently fails on the deployed server
(works fine on our dev server) with the following error:

"The variable "%1!s!" is already on the read list. A variable may only be
added once to either the read lock list or the write lock list."

Not only does it fail only some of the time it also fails on different
variables, always on an expression and always at the begining.

The variables that are giving the intermittent problems are used in more
than one expression to initialize other variables or properties.

I'm worried it is executing the expressions on more than one thread and
ending up on different processors, and the locking scheme doesn't use a
memory boundary when checking if the variable is already on the readonly list
before adding it.

Here are some examples:

The following is the *first* 4 messages of one failed run:
Beginning of package execution
The variable "User::RefreshFrom" is already on the read list. A variable may
only be added once to either the read lock list or the write lock list.
The expression for variable "DeleteRevenueFactQuery" failed evaluation.
There was an error in the expression.
An error occurred with the following error message: "The expression for
variable "DeleteRevenueFactQuery" failed evaluation. There was an error in
the expression.".

The following is the *first* 3 messages of another failed run:
Beginning of package execution
The variable "User::SqlServer" is already on the read list. A variable may
only be added once to either the read lock list or the write lock list.
The expression "@[User::SqlServer]" on property "ServerName" cannot be
evaluated. Modify the expression to be valid.



Reply With Quote
  #3  
Old   
Darren Green
 
Posts: n/a

Default Re: Intermittent Failure on Expression Evaluation - 01-28-2006 , 05:56 AM



Have you registered your posting alias in the MSDN Subscriber section?
If not then you won't expect a response as they do not know who you are.

"The variable "User::RefreshFrom" is already on the read list. A
variable may only be added once to either the read lock list or the
write lock list." - This error I have seen several times when trying to
run multiple tasks/containers in parallel. Forcing them to run serially
by using precedence constraints has always solved the problem. You may
also try controlling the threads with the MaxConcurrentExecutables
property of the package.

I am certain there is a bug here, but I've never had the time to
investigate seriously and log it.

--
Darren
http://www.sqldts.com
http://www.sqlis.com

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.