I have a value such as "xxxxx - 123456". In workflow, I want to extract out the number from this string. I am using a Token Calculator activity with a function of "IF(FIND("-", %(Entry Name)) = -1, 0, NUMBERVALUE(CHOOSEA(2,SPLIT(%(Entry Name),"-"))))" The problem is if the string is not formatted correctly where the dash does not exist, then a second entry does not exist and an exception occurs. I was expecting it to just return a 0 since the FIND should return -1.
What is the easiest way to resolve this issue?