Can anyone explain why this error is occuring?

See my answer at Reference to non-existent field ‘affine’ .