Clients have reported that the following may help resolve the issue:
· Make sure the report field sourced with the formula is wide enough to accept the output.
· Try making the function return a CHAR type.