E-PE0002 — Unspecified enum value in serialized model

Error Type

Protobuf Error

Phase

loading a model via protobuf (from_protobuf)

Python exception

jijmodeling.ProtobufError

Message

Unspecified enum value for `{enum_name}` in the `{message_name}` message.

The serialized model is incomplete or corrupted.

Cause

A protobuf enum field in the serialized model was left at its default “unspecified” value. This indicates the bytes are incomplete, corrupted, or were not produced by JijModeling’s serializer.

Fix

Verify that the bytes passed to from_protobuf are exactly what JijModeling’s to_protobuf produced (no truncation, binary-safe transfer), and re-export the model from the source if needed.