Similar question asked and answered here…
You might want to put the transform value into a variable first. Or as Rich suggested, use a try/catch.