Data Sign Flip based on Account attribute
Summary:
Hi,
I'm writing a SQL map in Accounts to flip the sign of data being imported based on value of an account attribute. If the value for the attribute says 'Flip' then the data for that account should get flipped. This is the query i'm using
AMOUNTX =
CASE
WHEN AccountTypeSignFlip = 'Flip' THEN AMOUNT * -1
ELSE
AMOUNT
END
While importing data, getting below error
ERROR [AIF]: Unexpected error: <type 'java.lang.RuntimeException'>
java.lang.RuntimeException: Invalid column index
Any inputs regarding how to resolve this?
Tagged:
0