Table cursor, <str>, cannot have list cursors because it contains an aggregate or UNION Explanation: The table cursor referenced in the WHERE CURRENT OF clause of a list list cursor was defined using an aggregate or union expression. User Action: Change the table cursor to no specify an aggregate or union expression.