I'm trying to extract the substring trackingCode to the point of the delimiter ~~. So for example:
www.test.com~~34235645463544563554
I wish to return:
www.test.com
i am using:
SUBSTRING(trackingCode,1,FINDSTRING(trackingCode,"~~",1) - 1)
But it is not working and I'm getting an error:
Error: 0xC0049067 at aw import from file, Derived Column [1562]: An error occurred while evaluating the function.
any ideas? if I replace the FINDSTRING with a numeric then it works.