CK Language 2 Compiler Messages
The compiler and the engine report CK language 2 problems with the message numbers below (Error 112 types/types.yaml: ...). The same checks run when a compiled model is resolved — on publish and on import into a tenant — so a model that bypassed the compiler is refused as well. All messages are errors unless marked warning.
Numbers 111 and 114–117 are reserved and not in use. The compatibility gate codes OCTO-CK200–OCTO-CK204 are described in the versioning rules. The deprecation warning OCTO-CK300 (warning, never an error) is logged when a build still sets the MSBuild property or environment variable OctoCkRangeRetention or passes octo-ckc -rr: range retention is the compiler default and the value is ignored. Messages 70–77 belong to Secret attributes.
Language Version and Engine
| Code | Key | Meaning | Fix |
|---|
| 90 | CkLanguageFeatureRequiresV2 | A CK language 2 key (interfaces, implements, methods, access, visibility, derivable, targetCkInterfaceId, writeAccess) is used in a model without ckLanguage: 2. | Add ckLanguage: 2 to ckModel.yaml (mind the derivable default) or remove the key. |
| 91 | CkLanguageNotSupported | A compiled model — or one of its dependencies — declares a ckLanguage this engine does not support. Dependents of such a dependency are skipped. On import into a tenant the refusal is reported as an import error with the same text (not as a numbered message). | Use an engine that supports the model's CK language version. |
| 126 | CkModelRequiresNewerEngine | The compiled model's (or a dependency's) minEngineVersion is above the running engine version (major.minor.patch; ckLanguage: 2 models require 3.5.1; engines below 1.0 skip the check). See Engine version contract. | Update the service/tool before importing or compiling against the model. |
Interfaces
| Code | Key | Meaning | Fix |
|---|
| 92 | CkInterfaceIdNotUnique | The same interface id is declared twice. Named-1 and Named-2 are different ids. | Remove the duplicate or give it a new element version. |
| 93 | CkInterfaceNameCollidesWithType | An interface has the name of a type of the same model (they share the GraphQL type namespace). | Rename the interface or the type. |
| 94 | CkInterfaceAttributeUnknown | An attribute member references an unknown attribute. | Fix the id or add the dependency that defines the attribute. |
| 95 | ImplementsUnknownCkInterface | An implements entry names an unknown interface. | Fix the id or add the dependency. |
| 96 | CkInterfaceMemberMissing | A type implementing an interface does not assign a required attribute member (own or inherited). | Assign the attribute with the member's id and name. |
| 97 | CkInterfaceMemberMultiplicityMismatch | A required member is assigned with isOptional: true. | Make the assignment required. |
| 98 | CkInterfaceMemberNameMismatch | The member's attribute is assigned under another name. | Use the member's name. |
| 99 | CkInterfaceMemberHidden | A member is assigned with access: Hidden. | Interface members must be visible; use another access value. |
| 118 | CkInterfaceExtendsInvalid | An extends entry is unknown, the interface itself, or part of a cycle. | Fix the reference; remove the cycle. |
| 119 | CkInterfaceMemberConflict | Across an interface and its parents one name stands for two attributes, or one attribute appears under two names. | Align the members with the parent interfaces. |
| 120 | CkInterfaceAssociationInvalid | An association member has an unknown role or target, or not exactly one of targetCkTypeId / targetCkInterfaceId. | Set exactly one known target and a known role. |
| 121 | CkInterfaceAssociationMissing | A type implementing the interface lacks an outbound association with the member's role, a compatible target and a multiplicity at least as strict. | Add or narrow the association on the type (or a base type). |
| 122 | CkInterfaceMethodConflict | A type redeclares an interface method with a different invocation contract: kind, the parameters (by name: type, record/enum, isOptional, sensitive), the result or the set of error codes. Descriptions, authorization, execution and the order of parameters and errors may differ — the type's own authorization and execution apply. | Remove the redeclaration or align its invocation contract. |
| 123 | CkInterfaceHasNoMembers | An interface has no attribute, association or method member and extends nothing. | Add a member or an extends entry. |
| 124 | CkInterfaceDeprecated | Warning. implements, extends, an interface association target or a targetCkInterfaceId references a deprecated: true interface. | Move to the successor version (Named-2). |
| 110 | CkElementsInWrongFolder | Warning. A file declares elements under a root key that is only read from another folder (e.g. interfaces: in a file under types/). The elements are ignored. | Move them into the expected folder (interfaces/, types/, attributes/, ...). |
| 127 | CkInterfaceMemberNotUnique | An interface declares the same attribute twice, or two members with the same name (case-insensitive). | Remove the duplicate. |
| 128 | UnknownTargetCkInterfaceOfAssociation | A type association's targetCkInterfaceId names an unknown interface. | Fix the id or add the dependency. |
Methods
| Code | Key | Meaning | Fix |
|---|
| 100 | CkMethodIdNotUnique | A method id appears twice on a type, or a type redeclares an inherited method id (no overrides). | Rename or remove the method; publish a changed signature as a new version. |
| 101 | CkMethodParameterInvalid | Unknown record/enum reference, duplicate parameter name, or Record/Enum without (or another value type with) valueCkRecordId/valueCkEnumId. | Fix the parameter or result definition. |
| 102 | CkMethodNameReserved | The method is named Create, Update or Delete (case-insensitive). | Choose another name. |
| 103 | CkMethodErrorCodeInvalid | Duplicate error code, or a code starting with METHOD_ (reserved for platform errors). | Rename the error code. |
| 104 | CkMethodAuthorizationInvalid | allowSelf: true on a Static method, or an invalid role or scope name (allowed: letters, digits and _ - . : /, starting with a letter or digit). | Remove allowSelf or make the method Instance; rename the role or scope. |
| 125 | CkMethodGeneratedNameCollision | Two methods of the model produce the same generated C# name (User + ChangePassword vs. UserChange + Password). | Rename one of the types or methods. |
Access and Hidden Attributes
| Code | Key | Meaning | Fix |
|---|
| 105 | RestrictedAttributeInDerivedRule | A display rule or Text index path reaches a Hidden attribute, or an ownerAttributePath reaches a Hidden or MethodOnly one — those values are readable through rtDisplayName, filters or search. | Remove the attribute from the rule/index/owner path. |
| 106 | HiddenAttributeIndexed | A non-text index (Unique, UniqueNotDeleted, Ascending, ...) reaches a Hidden attribute; a unique index reveals values through duplicate-key errors. | Remove the index or the Hidden access. |
| 107 | HiddenAttributeAutoCompleteValues | A Hidden assignment declares autoCompleteValues (they are published in the model). | Remove the values or the Hidden access. |
| 108 | HiddenAttributeOnAssociationRole | An association-role attribute is Hidden (association attributes have no access guard). | Use ReadOnly/MethodOnly, or move the attribute to a type. |
| 109 | UnknownIndexAttributePath | In a ckLanguage: 2 model an index path segment names no attribute of the type or of the record it traverses. Paths are matched case-insensitively; paths starting with Rt/CkTypeId (system fields) are exempt. | Fix the index path. |
Visibility and Derivability
| Code | Key | Meaning | Fix |
|---|
| 112 | CkReferenceToInternalElement | Another model references a visibility: Internal element (base type/record, attribute assignment, value record/enum, implements, extends, association role/target, method parameter/result). | Make the element Public in its model, or stop referencing it. |
| 113 | CkElementNotDerivable | A type or record derives from a type/record of another model whose effective derivable is Model. | The base model declares derivable: Any on that element, or derive from another base. |
| 129 | CkInconsistentVisibility | A public element references an internal element of its own model (base type/record, implements, assigned attribute, association role/target/target attributes, value record/enum, extends, interface member, method parameter/result of a public method); a public interface declares an internal method; or a type redeclares a public interface's method as internal. | Make the referenced element Public, or make the referring element Internal. |
| 130 | InvalidCompatibilityAcknowledge | An entry of compatibility.acknowledge in ckModel.yaml has an empty change, a wildcard, an empty reason or repeats a key. In a ckLanguage 1 model the section is message 90. | Use the exact change key printed by OCTO-CK203, give a reason, list each change once. |
| 131 | CkMethodHandlerInvalid | The execution.handler of a method is not service or pipeline (exact, lower-case), a pipeline method has no explicit timeoutSeconds, or pipeline is declared on an interface method. The message names the method id. | Use service or pipeline; give a pipeline method an explicit timeoutSeconds; declare handler: pipeline on the implementing type instead of on the interface. |
| 132 | CkMethodPipelineSensitiveParameter | A method with execution.handler: pipeline has at least one parameter marked sensitive: true. A pipeline execution stores its input, so such a method must be a service handler. The message names the method id, the type and the sensitive parameters. | Use handler: service (or omit the key) for the method, or remove sensitive from the parameter if it is not a secret. |
| 133 | CkMethodReplacesGenericCreateInvalid | replacesGenericCreate: true is set on a method that is not Static, on an interface method, on a method of an abstract type, or a concrete type has more than one such method (own or inherited). The message names the method id, the type and the reason; tools read the stable reason parameter, not the text. In a ckLanguage 1 model the key is message 90. | Declare the flag on one Static method of the concrete type; remove it from the other methods. |
| 134 | CkMethodPipelineSensitiveResult | A method with execution.handler: pipeline has a result marked sensitive: true. A pipeline execution stores its output, so such a method must be a service handler. The message names the method id and the type. It is reported in addition to 132 when a parameter is sensitive as well. | Use handler: service (or omit the key) for the method, or remove sensitive from the result if it is not a secret. |
| 135 | CkMethodDataAccessInvalid | authorization.dataAccess is Read on a method with replacesGenericCreate: true (creating an entity is a write), or the value is neither Read nor Write. The message names the method id, the type and the reason. | Remove dataAccess or use Write on the method that replaces the generic create; use Read or Write only. |
| 142 | CkMethodModeInvalid | The execution.mode of a method is not sync or async (exact, lower-case), async is combined with handler: pipeline (a pipeline handler answers synchronously only), or the key is used in a model without ckLanguage: 2. The message names the method id and the type. async with idempotent: true is allowed. | Use sync or async; use handler: service (or omit the key) for an asynchronous method; declare ckLanguage: 2. See Execution mode. |
Type Write Restriction
Message 143 comes from the compiler; message 144 is raised at runtime when a write is refused (GraphQL, REST, a user-started ImportRt), not by the compiler. See Write restriction.
| Code | Key | Meaning | Fix |
|---|
| 143 | CkTypeWriteAccessInvalid | The writeAccess block of a type lists neither principals nor channels, has an empty list, a principal kind other than Interactive or Client, a channel that is not <namespace>/<name>, or the same entry twice. The message names the type and the reason. In a ckLanguage 1 model the block is message 90. | Fix the value; remove the block if the type should not be restricted. |
| 144 | RtTypeWriteAccessDenied | A write of an entity (create, update, replace, delete, or an association with the entity at either end) is refused because the writeAccess block of its type, or of a base type, does not admit the caller. The parameters are operation, rtId, ckTypeId, restrictingCkTypeId (the type whose block refused), principalKind (Interactive, Client or Unknown), channel (none when the session has none), principals and channels (what the block admits). Nothing is written; an import lists one message per refused entity or association. | Write as an admitted principal kind, or through the service that owns the channel. A caller whose kind the service does not know (Unknown) is refused unless it writes on a listed channel. |
Machine-Readable Message Parameters
Every message carries its placeholder values as named parameters next to the number, the location and the text. Tools (CLI, CK editors, CI checks) branch on the message number and these parameters. The message text is for people and may be reworded at any time; do not parse it.
Message 133: the reason token
Message 133 always has the parameters methodId, ckTypeId, reason and explanation. reason is one of four stable tokens; the tokens are never renamed or reused. explanation is the human-readable sentence, not a contract.
reason | Violation |
|---|
instanceMethod | The method is not kind: Static; an instance method needs an existing entity. |
interfaceMethod | The method is declared on an interface; an interface has no entities of its own. |
abstractType | The method is declared on an abstract type, which is never instantiated. |
multipleMethods | A concrete type has more than one such method (own or inherited). One message is reported per flagged method declared on the type; the explanation lists all competing methods. |
If a method violates several rules, only the first matching token in the order interfaceMethod, instanceMethod, abstractType is reported.
Message 138: the parameters
| Parameter | Value |
|---|
ckElementId | The type or record of the compiled model that declares the record-valued attribute |
attributeName | The record-valued attribute |
ckRecordId | The record that contains the member (for a nested record, the innermost one) |
memberPath | Dot-separated path from the attribute to the member, e.g. States.ExternalId |
memberOwnership | The member's effective ownership: RuntimeState or Secret |
Export of Records
Raised by the compiler as a warning for the model being compiled. A model with this warning compiles and publishes unchanged; the warning points at data the runtime export (ExportRt) would lose.
| Code | Key | Meaning | Fix |
|---|
| 138 | ExportedRecordDropsRequiredMember | Warning. A Record or RecordArray attribute of a type or record of this model is exported (SeedOwned or TenantOwned), but the record has a required member without a default value whose ownership is excluded from export (RuntimeState or Secret). The export drops that member from every exported record, so the record is incomplete and cannot be imported again. The record is walked wherever it is declared, also in a dependency model, and through nested records. One message per member; the parameters name the declaring element, the attribute, the record, the member path and the member's ownership (see Message 138). Not reported: optional members, members with a default value, and everything below a record-valued attribute or member that is itself RuntimeState or Secret (it is left out as one unit). | Give the member the same ownership as the record-valued attribute (SeedOwned or TenantOwned, on the attribute definition or as an override on the record's attribute assignment), make the member optional, give it a default value, or make the record-valued attribute RuntimeState as a whole. See Attribute ownership. |
Blueprint Apply
Raised when a blueprint is applied to a tenant, not by the compiler. The message is registered here so that all numbers live in one table.
| Code | Key | Meaning | Fix |
|---|
| 136 | BlueprintSeedCreateReplacedByMethod | The seed data of a blueprint, the diff of a blueprint update or the Add step of a blueprint migration would create a new entity of a type whose static method declares replacesGenericCreate (own or inherited). Nothing is written. The message names the rtId, the type, the qualified method id and the reason GENERIC_CREATE_REPLACED_BY_METHOD; there is one message per entity. See Blueprints. | Create the entity through the method after the apply, or remove it from the seed. An entity whose rtId already exists is not refused. |
Runtime Import
Raised when a user starts a runtime import (ImportRt), not by the compiler. The import fails as a whole with one error that lists every refused entity.
| Code | Key | Meaning | Fix |
|---|
| 137 | ImportRtCreateReplacedByMethod | The import file would create a new entity of a type whose static method declares replacesGenericCreate (own or inherited). Nothing is written. The message names the rtId, the type, the qualified method id and the reason GENERIC_CREATE_REPLACED_BY_METHOD; there is one message per entity. Pipeline nodes refuse the same inserts with the error GENERIC_CREATE_REPLACED_BY_METHOD, see Pipelines that insert entities. See ImportRt. | Create the entity through the method, or remove it from the file. An entity whose rtId already exists is not refused. |
Attribute Access on Write
Raised when a runtime import, a blueprint apply or a blueprint migration step tries to set an attribute with access: Hidden or access: MethodOnly, not by the compiler. Only a method may write such an attribute. Nothing is written; every value is reported.
| Code | Key | Meaning | Fix |
|---|
| 139 | RtAttributeWriteRestricted | An ImportRt file (YAML or JSON, user-initiated or by a service), the seed data of a blueprint, the diff of a blueprint update or a step of a blueprint migration (Add, Update, Transform) sets an attribute that only a CK method may write (access: Hidden or MethodOnly), also as a member of a record. The parameters are rtId, ckTypeId and attributePath (Profile.Token for a record member, Credentials[1].Token for a record array element); there is one message per value. In a migration Update or Transform step the rtId is all zeros, because a step addresses many entities. ReadOnly and ReadWrite attributes are not refused. See Access Modifiers. | Remove the value from the file, the seed or the step; change the attribute through its method. Do not import a file that was exported with MethodOnly values without removing them. |
| 140 | RtIdentityOwnedWriteRestricted | A user-started ImportRt file contains a relation that only the Identity Service writes (role assignment, group membership or nesting, impersonation, data-permission role grant), on whichever entity of the file. The parameters are rtId, ckTypeId and path (association <role> -> <target rtId>); there is one message per relation, and nothing is written. Until System.Identity 2.30.0 this message also covered the identity-owned fields of System.Identity/User (TwoFactorEnabled, EmailConfirmed, Claims, ...); since 3.0.0 they are MethodOnly and refused with message 139. Blueprint seeds and imports started by a service are not checked. See Fields Only the Identity Service Writes. | Remove the value or relation from the file and change it through the Identity Service REST API or the identity methods. |
| 141 | RtRecordMemberNotPreservable | A user-started ImportRt file upserts a record array whose record declares no usable record key (none, or the key member is itself MethodOnly or Hidden), while a stored element holds a value in a member that only a CK method may write (access: Hidden or MethodOnly), also in a nested record. The elements cannot be matched, so the value would be lost. The parameters are rtId, ckTypeId and path (Credentials[0].Token); nothing is written. With a usable record key the member is carried over instead. See Access Modifiers. | Declare a recordKey that callers may write on the record, or leave the record array out of the file. |
Interface Query
Raised when a query by CK interface (GetRtEntitiesByInterfaceAsync, GraphQL runtime.byInterface) is refused. There is one number; the case is the reason token (also the parameter reason), the other parameters are machine-readable. In GraphQL the error has the code INTERFACE_QUERY_REFUSED, see Querying by interface.
| Code | Key | Meaning | Fix |
|---|
| 7019 | InterfaceQuery | The interface query is not supported or exceeds a limit. Reasons: UnknownInterface, TextSearchNotSupported, AggregationNotSupported, NavigationNotSupported, TooManyCollectionRoots (more than 64), PageTooLarge (skip + take above 1000), UnknownMember (filter or sort path is no member of the interface). | Remove the unsupported part of the query, filter instead of paging deep, or sort on an interface member. |
| Code | Meaning |
|---|
| 27 | Schema validation error — e.g. ckLanguage: 3, lowercase visibility: internal, an interfaceId without element version. |
| 66 | Multiple versions of one model resolved in a compile — see Range retention. |
See Also