Error:
Formula result is data type (JUNCTIONIDLIST(Ids)), incompatible with expected data type (null).

Case.OwnerId or Lead.OwnerId is not supported as it can refer to Queue also. So, use Case.Owner:User.Id and Lead.Owner:User.Id to avoid this issue.
