Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 Precedence Constraint Expression Error

Author  Topic 

LOOKUP_BI
Constraint Violating Yak Guru

295 Posts

Posted - 2010-04-09 : 12:02:40
I need to ensure the following conditions are True prior to executing the 2nd sequence container

I have 2 variables @InputCount & @ActiveCount both int

The condition is only if @InputCount !=0 AND @ActiveCount!=0 AND @InputCount == @ActiveCountthen execute the next sequence container

I have no problem if I just have "@InputCount !=0" as part of my expression BUT I need to include it as above.

Im getting the following error mssg

Error at Constraint: Attempt to parse the expression "(@[User::InputCount]!=0) AND (@[User::ActiveCount]!=0 ) AND
@[User::InputCount] == @[User::ActiveCount] " failed. The expression might contain an invalid token, an incomplete token, or an invalid element. It might not be well-formed, or might be missing part of a required element such as a parenthesis.

LOOKUP_BI
Constraint Violating Yak Guru

295 Posts

Posted - 2010-04-09 : 13:06:58
Solved it, replaced AND with &&
Go to Top of Page
   

- Advertisement -