GEN: Unknown Variable '%Family' On App Gen and Build

Hi All

i get the following error when i do a generate and build on some of my apps.
GEN: Unknown Variable ‘%Family’

If i go into a procedure and recompile it seems to go away but then will come back after i go add some code or edit a window etc.

I cant seem to find a common thread between the apps that have the issue , does anyone have any ideas?