Index '{0}' is a spatial index. User-defined functions with a spatial index are not supported in a data-tier application. ...