Hi @payne4handsome, Could you please try after removing @count directive for arith_name? A similar code worked at my end after removing that index. @upsert uses indices to detect mechanism and I believe @count is adding some indexes that are creating conflicts.
Please let us know.