Actually only one entry will be in the loop always. Its runs one time and its fails on the delete statement
I tried changing the code and got the error again
Method Invocation docLinks.delete : at Line: 474 : in file: inline evaluation of: ``import java.util.Calendar; import com.sap.odp.api.common.types.TypeFactory; im . . . '' : docLinks .delete ( docLinks .get ( i ) )
Target exception: java.lang.ClassCastException: Cannot cast class com.sap.odp.common.db.ObjectReference to class java.lang.String