In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
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.
SOLVED

Error: Action (12): Parse Error at char(0): Unknown function "IF"

harmeettsiinghsaini
6 - Meteoroid

I am trying to build a standard macro. Here I have an input file which has Player name and its Date of birth. I am trying to add a column called Age.

 

I created an interface with three radio button options. 

- Age By Years

- Age by Months

- Age by Days

 

the action interface is configure as update the formula as 

if (#1) then replace([Destination],"years","days") elseif
(#2) then replace([Destination],"years","months") else
[Destination] endif

 

However I get the error as 

Error: Action (12): Parse Error at char(0): Unknown function "IF"

 

 

 

11 REPLIES 11
atcodedog05
22 - Nova
22 - Nova

Hi @harmeettsiinghsaini 

 

You need to change the configuration of highlighted action tool to below.

atcodedog05_1-1621437602124.png

 

1. Action type: update value

2. Replace value "year". Since you want to replace year.

 

Output:

atcodedog05_0-1621438190421.png

 

This resource might be helpful : https://community.alteryx.com/t5/Interactive-Lessons/Using-Analytic-Applications/ta-p/243106#done

 

Hope this helps 🙂

harmeettsiinghsaini
6 - Meteoroid

That really worked mate!!!

Labels
Top Solution Authors