Adding new custom function - "An error occurred while loading."

Adding new custom function - "An error occurred while loading."

Hi,

I'm trying to write my own custom function but I just receive the message "An error occurred while loading" - is anyone else experiencing this issue?  

Thanks
Beth