Message Oracle PLS-00364 - loop index variable string use is invalid

ERRORloop index variable string use is invalid
CAUSEAn attempt was made to assign the value of an OUT parameter to
ACTIONUse an IN OUT parameter instead of the OUT parameter. Inside a