Problem with calculation of work function

When I want to create chart with work function between two surfaces in periodic slab during analysis of results (CASTEP) I'm receiving  information:

" Import potential: Failure: Property value is undefined for this object. (when getting the property value 'FermiLevel')".

This is problem with my calculation or with software ?

Best regards,