Oracle Error OCI-21709: cannot refresh an object that has been modified

Oracle Error Message

OCI-21709: cannot refresh an object that has been modified

Reason for the Error

User attempted to refresh an object that has been marked for delete, update or insert (new).

Solution

User should unmark the object before refreshing it.