RPG (IBM i / AS/400) · Message ID

CPF4131

What does CPF4131 mean in RPG (IBM i / AS/400)?

Level check on file open. The record format ID for a file does not match the record format ID the program was compiled against. This usually means the file's field or key layout changed after the program was last compiled.

CPF4131IBM i / OS/400

Condition

Level check on file open. The record format ID for a file does not match the record format ID the program was compiled against. This usually means the file's field or key layout changed after the program was last compiled.

Fix

Recompile the program against the current file definition. If level checks already match in every environment you tested, check for a duplicate file earlier in the library list; a forum thread on Code400 traced exactly this cause when a batch job's library list picked up an older copy of the file before the current one.

Related message id