Cause
Sequence CURRVAL was selected before sequence NEXTVAL.
Action
Select NEXTVAL from the sequence before selecting CURRVAL.
Error Message
Sequencestring.CURRVAL is not yet defined in this session.
Sequence CURRVAL was selected before sequence NEXTVAL.
Select NEXTVAL from the sequence before selecting CURRVAL.