ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

I am getting a parse error at char: unmatched

Lauramaria
5 - Atom

if contains([product_group],"XX") AND contains([marketing], "YY") then "XXYY" elseif contains ([product_group],"AA") AND contains([marketing], "BB") then "AABB" elseif contains ([product_group],"CC") AND contains([marketing], "DD") then "CCDD" elseif contains  ([marketing], "Proj A") then "Project A" elseif contains([marketing], "Proj B") then "Project B" elseif contains([marketing], "Suppt") then "Support team" elseif contains([marketing], "ABC") AND contains([marketing], "mgmt") and contains([marketing], "ABCDE") then "CONSULTING"

elseif ([product_group])

endif

1 REPLY 1
JagdeeshN
12 - Quasar
12 - Quasar

Hi @Lauramaria ,

 

You are missing the 'else' clause which results in this error.

 

Please find below a modified statement with the else.

 

if contains([product_group],"XX") AND contains([marketing], "YY") then "XXYY" elseif contains ([product_group],"AA") AND contains([marketing], "BB") then "AABB" elseif contains ([product_group],"CC") AND contains([marketing], "DD") then "CCDD" elseif contains ([marketing], "Proj A") then "Project A" elseif contains([marketing], "Proj B") then "Project B" elseif contains([marketing], "Suppt") then "Support team" elseif contains([marketing], "ABC") AND contains([marketing], "mgmt") and contains([marketing], "ABCDE") then "CONSULTING"

else ([product_group])

endif

 

Hope this helps.

 

Best,

Jagdeesh

Labels
Top Solution Authors