An 'AS ...' clause is required in the header of a REPEAT OVER loop in this context.

#2166   Compile-time error

An 'AS ...' clause is required in the header of a REPEAT OVER loop in this context.

Explanation

When repeat over is applied to an anonymous object (e.g., a shelf literal, a record field shelf, or a shelf-class function) an alias must be assigned to the current shelf item. Add the AS clause to the repeat over action, followed by the shelf item alias.