Page 1 of 1

The constraing is not working properly in Transformer but wo

Posted: Thu Aug 09, 2007 9:34 am
by rhaddur
In Transformer Stage following the constraint not working Properly


Here
x is varchar
y, z, zz are decimal

Constraint

(x <> "ZZZB" And )
(
((IsNotNull(Y)) AND (Y<>0))
Or ((IsNotNull(z)) AND (z<>0))
Or ((zz)) AND (zz<>0))
)

But Working in Filter Stage

Condition

(x<>'ZZZB' AND
(
((Y Is Not Null) AND (Y<>0))
Or ((z Is Not Null) AND (z<>0))
Or ((zz Is Not Null) AND (zz <>0))))

Kindly let me know what could be the reason it is not working Properly in Transformer Stage

Posted: Thu Aug 09, 2007 9:39 am
by ag_ram
We had a Similar issue and the workaround was splitting the ISNotNull and Comparison clause

Nutshell

If IsNotNull(Y)
Then
If (Y<>0)
<case1>
Else
<case2>
Else
<case1>

Re: The constraing is not working properly in Transformer bu

Posted: Thu Aug 09, 2007 9:44 am
by gateleys
rhaddur wrote:Constraint

(x <> "ZZZB" And )
(
((IsNotNull(Y)) AND (Y<>0))
Or ((IsNotNull(z)) AND (z<>0))
Or ((zz)) AND (zz<>0))
)
Your code looks all over the place. Can you please copy the exact from your transformer?

Posted: Thu Aug 09, 2007 11:18 am
by chulett
Here's a crazy thought - why not explain to us in words what this is supposed to accomplish and then let us know what's not "working properly" about it?