M204.1702

From m204wiki
Jump to navigation Jump to search

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=0Sets online return code
RETCODEB=4Sets batch (single user) return code
CLASS=EError class; the message can be suppressed with the X'04' bit setting of the MSGCTL parameter
AUDITERWrites the message with line type ER to the audit trail
COUNTIncrements the error count (ERCNT) parameter

Back to list of messages