The operation can only be executed within a batch context