The query cannot be used because the source document does not contain a legal entity field. You must add a legal entity field ...