Oracle Error ORA-48263: Currval not set yet – use nextval

Oracle Error Message

ORA-48263: Currval not set yet – use nextval

Reason for the Error

References to currval can’t occur until a nextval is done

Solution

Remove the reference