M204.1702
M204.1702 Uniqueness violation detected for token = token2 in file fileName
The request has attempted to add an occurrence of a fieldname=value pair for a unique field (via ADD, INSERT, CHANGE or STORE RECORD) and that fieldname=value pair already exits in another record in the file. The requested update will not be performed.
This message is issued only when no ON FIELD CONSTRAINT CONFLICT unit exists for the request. The request will be canceled and its active transaction (if any) will be backed out.
Response: Procedures that update unique fields should always contain ON FCC units to handle uniqueness conflicts when they occur. Decisions about how to handle uniqueness conflicts should be made on an application by application basis.
Message attributes:
RETCODEO=0 | Sets online return code |
---|---|
RETCODEB=4 | Sets batch (single user) return code |
CLASS=E | Error class; the message can be suppressed with the X'04' bit setting of the MSGCTL parameter |
AUDITER | Writes the message with line type ER to the audit trail |
COUNT | Increments the error count (ERCNT) parameter |