title: Getting failed id's from for all save exceptions
body: <p>I am trying to update salary of employees using forall. Whenever any error occurs while updating I need to save for which employee id error has occurred. 
  But it gives following error while compiling 
  Error(14,24): PLS-00201: identifier 'INDX' must be declared</p>
  
  <p>Below is my code</p>
  
  <pre><code>PROCEDURE PROC1 (V_EMP_ID DBMS_SQL.NUMBER_TABLE)
  IS
       lv_error_string VARCHAR2(4000);
  BEGIN
      FORALL INDX IN V_EMP_ID.FIRST..V_EMP_ID.LAST SAVE EXCEPTIONS
      EXECUTE IMMEDIATE 'UPDATE EMPLOYEES SET SALARY=SALARY+10000 WHERE EMP_ID=:1'
      USING V_EMP_ID(INDX);
  EXCEPTION
      WHEN OTHERS 
      THEN
      FOR J IN 1 .. SQL%BULK_EXCEPTIONS.COUNT
      LOOP
         lv_error_string:=lv_error_string
                      ||sqlerrm (-sql%bulk_exceptions(j).error_code)
                      || ' for'||V_EMP_ID(INDX);
      END LOOP;
  END;
  </code></pre>