This error occurs when you place an exclude operation in a position other than the last step of a traversal or the step before an object remapping or closure remapping step.In this example, the exclude step is used before the Out<Knows> step which is not allowed.