I didn't know whether you put it in the Field Map script or the Transform Script OnBefore.

I found that if I do it in the On Before I get the desired result.

View solution in original post