Oracle Error ORA-32485: element in cycle column list of CYCLE clause must appear in the column alias list of the WITH clause element

Oracle Error Message

ORA-32485: element in cycle column list of CYCLE clause must appear in the column alias list of the WITH clause element

Reason for the Error

An element in the cycle column list of a CYCLE clause that was specified for a recursive WITH query did not appear in the column alias list of the WITH clause element.

Solution

Change the cycle column list to use only names which are listed in the column alias list of the WITH clause element.