events and documents can not be empty