#BI-ERR-UNDEFINED When Using the date.getFullYear Function

Hello everyone,

I am a new user to Sage SEI. I am trying the get the Year and the Month from a DateTime field and I keep getting this #BI-ERR-UNDEFINED when trying to add the calculated field to a view. When I validate the script (necResult=date.getFullYear(MFGITM_CLODAT_0);) it says it is a valid script. I am out of ideas for how to solve the issue. Any guidance would be much appreciated!