MODEL_NOT_FOUND — entity model does not exist
cyoda-go version 0.8.3
errors.MODEL_NOT_FOUND
Section titled “errors.MODEL_NOT_FOUND”MODEL_NOT_FOUND — the referenced entity model (schema) does not exist.
SYNOPSIS
Section titled “SYNOPSIS”HTTP: 404 Not Found. Retryable: no.
DESCRIPTION
Section titled “DESCRIPTION”The entity type or model name specified in the request does not exist in the tenant’s model registry. Occurs on write paths (creating entities with an unknown type, importing data that references a missing model, performing model lifecycle transitions on a model ID that does not exist) and on read paths (list, stats, grouped-stats, and search operations that reference an unregistered model).
Not retryable. Register the model before issuing any operation that references it.
SEE ALSO
Section titled “SEE ALSO”- errors
- crud
- search
- errors.ENTITY_NOT_FOUND
- errors.MODEL_NOT_LOCKED
See also
Section titled “See also”cyoda help errors— Every error response from the Cyoda REST API carries a structurederrorCodein thepropertiesobject. Multiple codes may share the same HTTP status. Programmatic handling keys onerrorCode, not HTTP status.cyoda help crud— Entities are instances of models. Each entity has a UUID, a model reference (entityName,modelVersion), and a lifecycle state managed by the workflow engine. Creating an entity requires the referenced model to be inLOCKEDstate. All write operations run within a Cyoda transaction and return atransactionIdalongside the affected entity IDs.cyoda help search— Search operates against a specific entity model(entityName, modelVersion). Two modes are supported:cyoda help errors ENTITY_NOT_FOUND— No entity with the given ID exists in the tenant’s data store, or the entity existed at a point-in-time that precedes the requested snapshot. Also returned for audit log lookups when the specified event or message cannot be found.cyoda help errors MODEL_NOT_LOCKED— Entity creation and bulk write operations require the model to be in theLOCKEDlifecycle state. Models inDRAFTor unlocked-for-editing state reject writes to prevent schema changes from affecting in-flight data.
Raw formats
Section titled “Raw formats”/help/errors/model_not_found.json— full descriptor (matchesGET /help/{topic}envelope)/help/errors/model_not_found.md— body only