# OpenCTI errors

> The functional errors a user or an API client can meet in OpenCTI in this version, by area, and what to do for the most common ones, generated from the code.

- URL: https://filigran.io/docs/lts/7.260811-lts/reference/opencti/errors/
- Products: OpenCTI 7.260811.0-lts.1
- OpenCTI line: 7.260811 LTS · 7.260811.0-lts.1
- For: developers, administrators, platform engineers
- Type: Reference
- Generated from the OpenCTI 7.260811.0-lts.1 source code

**Diagram: An error raised in OpenCTI goes back to the client in the GraphQL answer, with its message, its error type and its data**

- Request: User or API client (Interface or script)
- OpenCTI: GraphQL API (Runs the operation), Area of the code (Domain, database, modules)
- Answer to the client: Message (Parts in braces computed at run time), Error type (extensions.code, such as FORBIDDEN_ACCESS), Data attached (extensions.data)

Connections:

- User or API client → GraphQL API: query or mutation
- GraphQL API → Area of the code: calls
- Area of the code → Message: raises
- Area of the code → Error type: raises
- Area of the code → Data attached: attaches

The 659 error messages OpenCTI 7.260811.0-lts.1 can answer to a user or an API client, by the area of the code that raises them. The GraphQL answer carries the message, the error type in `extensions.code` and the data attached in `extensions.data`; `{name}` marks a part computed at run time. Listed: the 18 error types `ACCESS_REQUIRED`, `ALREADY_DELETED_ERROR`, `AUTH_FAILURE`, `AUTH_REQUIRED`, `DATABASE_ERROR`, `DRAFT_LOCKED`, `FORBIDDEN_ACCESS`, `FUNCTIONAL_ERROR`, `LOCK_ERROR`, `LTS_REQUIRED_ACTIVATION`, `MISSING_REFERENCE_ERROR`, `OTP_REQUIRED`, `OTP_REQUIRED_ACTIVATION`, `PASSWORD_CHANGE_REQUIRED`, `RESOURCE_NOT_FOUND`, `UNSUPPORTED_ERROR`, `VALIDATION_ERROR`, `WORK_NOT_ALIVE`. Left out: the server failures the code classes as technical with a status 500 (`ComplexSearchError`, `ConfigurationError`, `DatabaseError`, `FilesystemError`, `UnknownError`), the code of startup, migrations, background managers and inference rules (a few of their messages also answer the API, such as applying a rule or running a playbook on an entity), messages held entirely in a variable and developer guards (*unexpected*, *not implemented*, schema registration). Read the platform logs as [Troubleshooting](https://filigran.io/docs/lts/7.260811-lts/deploy/operate/troubleshoot/) explains.

## Common errors and what to do {#common-errors-and-what-to-do}

| Message | Error type | What to do |
| --- | --- | --- |
| Bad login or password | `AUTH_FAILURE` | Check the login and password, or the two-factor code. An account without a local password gets the same message. |
| Cannot execute request in a draft that is not in an open state | `DRAFT_LOCKED` | The draft named by the `opencti-draft-id` header is being validated or was validated: send the request outside the draft, or in an open draft. |
| Element(s) not found | `MISSING_REFERENCE_ERROR` | The input references ids the platform does not know or the user cannot see; `unresolvedIds` in the error data lists them. Create the referenced elements first, or check their markings. |
| Execution timeout, too many concurrent call on the same entities | `LOCK_ERROR` | Other operations hold a lock on the same entities (often several workers updating one container): retry the operation; connectors retry on their own. |
| Restricted entity already exists, you can request access | `ACCESS_REQUIRED` | An entity with the same identity exists but the user cannot see it; `entityIds` in the error data lists it. Request access to it, as [Request access](https://filigran.io/docs/lts/7.260811-lts/opencti/administer/request-access/) explains. |
| This attribute is mandatory | `VALIDATION_ERROR` | The input lacks an attribute the entity customization makes mandatory; `field` in the error data names it. Fill it, or change the setting in Settings > Customization. |
| Work is no longer alive, no request can be done within the context of this work | `WORK_NOT_ALIVE` | The connector work the request belongs to was deleted or is no longer running: start the import again from a new work. |
| You are not allowed to do this. | `FORBIDDEN_ACCESS` | The user lacks the capability the operation requires, or cannot access the element (markings, organization, authorized members). Give the user a group whose role grants the capability, as [Roles and capabilities](https://filigran.io/docs/lts/7.260811-lts/opencti/administer/roles/) explains. |
| You must activate your account with 2FA. | `OTP_REQUIRED_ACTIVATION` | The platform makes two-factor authentication mandatory and the user has not set it up yet: set it up when the login screen asks for it. |
| You must activate your LTS license. | `LTS_REQUIRED_ACTIVATION` | This LTS version is blocked until its license is validated: an administrator enters a valid license in Settings. |
| You must be logged in to do this. | `AUTH_REQUIRED` | The request carries no valid credentials: send an `Authorization: Bearer <API token>` header with the token of an active user, or log in again when the browser session has expired. |
| You must validate your account with 2FA. | `OTP_REQUIRED` | Two-factor authentication is active for this user: enter the code of the authenticator application to finish the login. |

## Raised in several areas {#raised-in-several-areas}

Messages that several areas of the platform raise, such as the default message of an access refusal.

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Already deleted elements | `ALREADY_DELETED_ERROR` | `internalDeleteElementById` (database/middleware), `deleteWorkForConnector` (domain/work), `notificationDelete` (modules/notification/notification-domain) and 1 more | `connectorId`, `id`, `notificationId`, `organizationId` |
| Bad login or password | `AUTH_FAILURE` | `login` (domain/user), `otpUserActivation` (domain/user), `otpUserLogin` (domain/user) and 2 more |  |
| Cannot delete non draft imports in draft | `UNSUPPORTED_ERROR` | `deleteFile` (database/file-storage), `deleteImport` (domain/file), `stixCoreObjectImportDelete` (domain/stixCoreObject) | `fileName` |
| Cant find element to update | `FUNCTIONAL_ERROR` | `updateAttribute` (database/middleware), `connectorTriggerUpdate` (domain/connector), `containerEditAuthorizedMembers` (domain/container) and 1 more | `entityId`, `id`, `type` |
| Could not find draft workspace | `DRAFT_LOCKED` | `userEditField` (domain/user), `checkDraftInContext` (http/httpServer-draft) |  |
| Could not parse CSV mapper configuration | `FUNCTIONAL_ERROR` | `consumeQueueCallback` (connector/importCsv/importCsv-connector), `csvMapperTest` (modules/internal/csvMapper/csvMapper-domain), `csvMapperTest` (modules/internal/csvMapper/deprecated/csvMapper-domain) and 1 more | `error` |
| Execution timeout, too many concurrent call on the same entities | `LOCK_ERROR` | `loadDraftElement` (database/engine), `createRelationRaw` (database/middleware), `draftInternalDeleteElement` (database/middleware) and 12 more | `inputIds`, `participantIds` |
| Invalid version of the platform. Please upgrade your OpenCTI. Minimal version required: 6.6.0 | `FUNCTIONAL_ERROR` | `csvFeedAddInputFromImport` (modules/ingestion/ingestion-csv-domain), `csvMapperAddInputFromImport` (modules/internal/csvMapper/csvMapper-domain), `jsonMapperImport` (modules/internal/jsonMapper/jsonMapper-domain) | `reason` |
| This attribute is mandatory | `VALIDATION_ERROR` | `deleteRelationsByFromAndTo` (database/middleware), `validateMandatoryAttributes` (schema/schema-validator) | `attribute`, `field` |
| This is not a valid CVSS2 vector | `FUNCTIONAL_ERROR` | `addVulnerability` (domain/vulnerability), `generateVulnerabilitiesUpdates` (utils/vulnerabilities) | `vector` |
| This is not a valid CVSS3 vector | `FUNCTIONAL_ERROR` | `addVulnerability` (domain/vulnerability), `generateVulnerabilitiesUpdates` (utils/vulnerabilities) | `vector` |
| This is not a valid CVSS4 vector | `FUNCTIONAL_ERROR` | `addVulnerability` (domain/vulnerability), `generateVulnerabilitiesUpdates` (utils/vulnerabilities) | `vector` |
| WIDGET_EXPORT_NOT_FOUND | `FUNCTIONAL_ERROR` | `exportCustomViewWidget` (modules/customView/customView-domain), `generateWidgetExportConfiguration` (modules/workspace/workspace-domain) | `customView`, `widget`, `workspace` |
| You are not allowed to do this. | `FORBIDDEN_ACCESS` | `createRelationRaw` (database/middleware), `deleteRelationsByFromAndTo` (database/middleware), `internalCreateEntityRaw` (database/middleware) and 34 more |  |
| You have not chosen a user responsible for data creation | `FUNCTIONAL_ERROR` | `managedConnectorAdd` (domain/connector), `addIngestionCsv` (modules/ingestion/ingestion-csv-domain) |  |
| You must be logged in to do this. | `AUTH_REQUIRED` | `authDirectiveTransformer` (graphql/authDirective), `didResolveOperation` (graphql/graphql), `checkAuthenticationFromRequest` (http/httpTaxii) and 1 more |  |

## database {#database}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| \[STIX\] Missing relation definition | `UNSUPPORTED_ERROR` | `isRelationBuiltin` (database/stix) | `from`, `to`, `type` |
| \`options.ttl\` must be a number or function. | `UNSUPPORTED_ERROR` | `getTTL` (database/sessionStore-memory) |  |
| A file already exists with this name | `FUNCTIONAL_ERROR` | `upload` (database/file-storage) |  |
| A filter key must be defined | `FUNCTIONAL_ERROR` | `buildLocalMustFilter` (database/engine) | `key` |
| Aggregation computing use an unsupported field | `FUNCTIONAL_ERROR` | `elAggregationRelationsCount` (database/engine) | `field` |
| Cache configuration type not supported | `UNSUPPORTED_ERROR` | `getEntitiesFromCacheFn` (database/cache) | `type` |
| Can apply avg on non numeric attribute | `UNSUPPORTED_ERROR` | `createRuleDataPatch` (database/middleware) |  |
| Can apply max on non numeric or date attribute | `UNSUPPORTED_ERROR` | `createRuleDataPatch` (database/middleware) |  |
| Can apply min on non numeric or date attribute | `UNSUPPORTED_ERROR` | `createRuleDataPatch` (database/middleware) |  |
| Can apply sum on non numeric attribute | `UNSUPPORTED_ERROR` | `createRuleDataPatch` (database/middleware) |  |
| Cannot access all entities for merging | `FUNCTIONAL_ERROR` | `mergeEntities` (database/middleware) |  |
| Cannot access initial instance | `FUNCTIONAL_ERROR` | `mergeEntities` (database/middleware) | `targetEntityId` |
| Cannot access merged instance | `FUNCTIONAL_ERROR` | `mergeEntities` (database/middleware) | `targetEntityId` |
| Cannot convert relation without a resolved from: {fromId} | `UNSUPPORTED_ERROR` | `checkInstanceCompletion` (database/stix-2-1-converter), `checkInstanceCompletion` (database/stix-converter-utils) |  |
| Cannot convert relation without a resolved to: {toId} | `UNSUPPORTED_ERROR` | `checkInstanceCompletion` (database/stix-2-1-converter), `checkInstanceCompletion` (database/stix-converter-utils) |  |
| Cannot delete an individual corresponding to a user | `FUNCTIONAL_ERROR` | `verifyCanDeleteIndividual` (database/data-consistency) | `id` |
| Cannot delete an organization that has an administrator. | `FUNCTIONAL_ERROR` | `verifyCanDeleteOrganization` (database/data-consistency) | `id` |
| Cannot delete an organization that has members. | `FUNCTIONAL_ERROR` | `verifyCanDeleteOrganization` (database/data-consistency) | `id` |
| Cannot delete element: cannot access all related relations | `FUNCTIONAL_ERROR` | `elDeleteElements` (database/engine) |  |
| Cannot delete the organization. | `FUNCTIONAL_ERROR` | `verifyCanDeleteOrganization` (database/data-consistency) | `id` |
| Cannot delete the platform organization. | `FUNCTIONAL_ERROR` | `verifyCanDeleteOrganization` (database/data-consistency) |  |
| Cannot delete unsupported element in draft context | `UNSUPPORTED_ERROR` | `elMarkElementsAsDraftDelete` (database/engine) | `elements` |
| Cannot index unsupported element in draft context | `UNSUPPORTED_ERROR` | `validateElementsToIndex` (database/engine) |  |
| Cannot merge all files in draft | `UNSUPPORTED_ERROR` | `moveAllFilesFromEntityToAnother` (database/file-storage) |  |
| Cannot merge an entity on itself | `FUNCTIONAL_ERROR` | `mergeEntitiesRaw` (database/middleware) | `dest`, `source` |
| Cannot merge builtin vocabularies | `FUNCTIONAL_ERROR` | `mergeEntities` (database/middleware) |  |
| Cannot merge entities of different types | `FUNCTIONAL_ERROR` | `mergeEntitiesRaw` (database/middleware) | `dest`, `source` |
| Cannot merge entities, same ID detected in source and destination | `FUNCTIONAL_ERROR` | `mergeEntities` (database/middleware) | `sourceEntityIds`, `targetEntityId` |
| Cannot merge inferred entities | `FUNCTIONAL_ERROR` | `mergeEntitiesRaw` (database/middleware) | `inferences` |
| Cannot merge vocabularies of different category | `FUNCTIONAL_ERROR` | `mergeEntitiesRaw` (database/middleware) | `categories` |
| Cannot recognize stream name | `UNSUPPORTED_ERROR` | `convertStreamName` (database/redis-stream) |  |
| Cannot remove linked elements from draft | `UNSUPPORTED_ERROR` | `elRemoveElementFromDraft` (database/draft-engine) | `id` |
| Cannot update an individual corresponding to a user | `FUNCTIONAL_ERROR` | `updateAttributeMetaResolved` (database/middleware) | `id` |
| Cant add another relation on single ref | `UNSUPPORTED_ERROR` | `createRelationRaw` (database/middleware) | `doc_code: SELF_REFERENCING_RELATION`, `from`, `relationshipType` |
| Cant ask a deletion on element not inferred by this rule | `UNSUPPORTED_ERROR` | `deleteInferredRuleElement` (database/middleware) | `rule` |
| Cant find element references for commit | `FUNCTIONAL_ERROR` | `createRelationRaw` (database/middleware), `internalDeleteElementById` (database/middleware), `updateAttributeMetaResolved` (database/middleware) | `id`, `references` |
| Cant find element to resolve | `FUNCTIONAL_ERROR` | `internalCreateEntityRaw` (database/middleware), `upsertElement` (database/middleware) | `id` |
| Cant find updated instance relation ref from key | `FUNCTIONAL_ERROR` | `updateAttributeMetaResolved` (database/middleware) |  |
| Cant generated mapping | `UNSUPPORTED_ERROR` | `attributeMappingGenerator` (database/engine) | `type` |
| Cant generated string mapping | `UNSUPPORTED_ERROR` | `attributeMappingGenerator` (database/engine) | `format` |
| Cant prepare attribute for update | `UNSUPPORTED_ERROR` | `prepareAttributesForUpdate` (database/middleware) | `name`, `type` |
| Cant resolve attribute | `UNSUPPORTED_ERROR` | `buildChanges` (database/data-changes), `humanizeChangeValues` (database/data-changes) | `entityType`, `field` |
| Cant update undefined element | `FUNCTIONAL_ERROR` | `updateAttributeFromLoadedWithRefs` (database/middleware) |  |
| Cant upsert inferred entity. Too many entities resolved | `UNSUPPORTED_ERROR` | `internalCreateEntityRaw` (database/middleware) | `doc_code: MULTIPLE_REFERENCES_FOUND`, `entityIds`, `input` |
| Change build error, unknown attribute | `UNSUPPORTED_ERROR` | `convertAttribute` (database/data-changes) | `attribute` |
| Composite vocab only support single definition | `FUNCTIONAL_ERROR` | `inputResolveRefsFn` (database/middleware) | `field` |
| Converter was declared without a conversion function | `UNSUPPORTED_ERROR` | `convertToStix_2_0` (database/stix-2-0-converter), `convertToStix_2_1` (database/stix-2-1-converter) | `type` |
| convertInstanceToStix must be used with opencti fully loaded instance | `UNSUPPORTED_ERROR` | `convertStoreToStix_2_0` (database/stix-2-0-converter), `convertStoreToStix_2_1` (database/stix-2-1-converter) |  |
| CreatedBy relation must be an Identity entity | `FUNCTIONAL_ERROR` | `inputResolveRefsFn` (database/middleware) | `entityType` |
| CreatedBy relation must be an Identity entity. | `FUNCTIONAL_ERROR` | `validateCreatedBy` (database/middleware) | `createdBy` |
| Data URI image exceeds max size ({maxImageSizeBytes} bytes) | `FUNCTIONAL_ERROR` | `parseDataUriImage` (database/markdown-embedded-images) |  |
| Data URI image payload is empty | `FUNCTIONAL_ERROR` | `parseDataUriImage` (database/markdown-embedded-images) |  |
| Data URI image payload must be base64 encoded | `FUNCTIONAL_ERROR` | `parseDataUriImage` (database/markdown-embedded-images) |  |
| Data URI images exceed max total size ({maxTotalSizeBytes} bytes) | `FUNCTIONAL_ERROR` | `parseDataUriImage` (database/markdown-embedded-images) |  |
| Distribution entities does not support relation aggregation field | `FUNCTIONAL_ERROR` | `distributionEntities` (database/middleware), `distributionHistory` (database/middleware) | `field` |
| Draft operation not recognized | `UNSUPPORTED_ERROR` | `elRemoveElementFromDraft` (database/draft-engine) | `id`, `operation` |
| Element(s) not found | `MISSING_REFERENCE_ERROR` | `inputResolveRefsFn` (database/middleware) | `doc_code: ELEMENT_NOT_FOUND`, `input`, `reason`, `unresolvedIds` |
| Engine execution fail, some shards are not available, please check your engine status | `DATABASE_ERROR` | `elRawSearchFn` (database/engine) | `shards` |
| Fail to compute indices for unknown type | `UNSUPPORTED_ERROR` | `computeQueryIndices` (database/engine) | `type` |
| Failed to load exclusion list cache. | `FUNCTIONAL_ERROR` | `checkObservableValue` (database/exclusionListCache) | `exclusionListCache` |
| Failed to process markdown embedded images in descriptions | `FUNCTIONAL_ERROR` | `rewriteEmbeddedDataUriImagesInDescriptions` (database/middlewareEmbeddedImages) | `cause`, `entityId`, `entityType` |
| File body is null or undefined | `UNSUPPORTED_ERROR` | `downloadFile` (database/raw-file-storage), `downloadFileRange` (database/raw-file-storage) | `fileId` |
| File listing directory must end with a / | `FUNCTIONAL_ERROR` | `loadedFilesListing` (database/file-storage) |  |
| File listing directory must not start with a / | `FUNCTIONAL_ERROR` | `loadedFilesListing` (database/file-storage) |  |
| File not found or restricted | `FUNCTIONAL_ERROR` | `loadFile` (database/file-storage) | `filename` |
| File path not specified | `FUNCTIONAL_ERROR` | `loadFile` (database/file-storage) |  |
| Filter is not supported as an aggregation | `FUNCTIONAL_ERROR` | `fullEntitiesThoughAggregationConnection` (database/middleware-loader) | `filter` |
| Filter must have only one field | `UNSUPPORTED_ERROR` | `buildLocalMustFilter` (database/engine) | `keys`, `operator` |
| Filter script is not allowed | `UNSUPPORTED_ERROR` | `buildLocalMustFilter` (database/engine) | `filter` |
| Find multiple vocabularies for single one | `FUNCTIONAL_ERROR` | `inputResolveRefsFn` (database/middleware) | `data`, `key` |
| Hashes collision | `VALIDATION_ERROR` | `hashMergeValidation` (database/middleware) | `algorithm`, `field` |
| Id loading expected only one response | `UNSUPPORTED_ERROR` | `elLoadBy` (database/engine) | `size` |
| Incompatible type | `UNSUPPORTED_ERROR` | `assertType` (database/stix-converter-utils) | `instanceType`, `type` |
| Incorrect AI configuration | `UNSUPPORTED_ERROR` | `queryChatGpt` (database/ai-llm), `queryMistralAi` (database/ai-llm) | `enabled`, `endpoint`, `model`, `type` |
| Incorrect AI configuration for NLQ | `UNSUPPORTED_ERROR` | `queryNLQAi` (database/ai-llm) | `enabled`, `endpoint`, `model`, `type` |
| Input resolve refs expect single value | `UNSUPPORTED_ERROR` | `inputResolveRefsFn` (database/middleware) | `doc_code: ELEMENT_ID_COLLISION`, `key`, `values` |
| Instance is not inferred, cant be deleted | `UNSUPPORTED_ERROR` | `deleteInferredRuleElement` (database/middleware) | `id` |
| Invalid attribute resolution | `UNSUPPORTED_ERROR` | `inputResolveRefsFn` (database/middleware) | `doc_code: ELEMENT_NOT_FOUND`, `key`, `type` |
| Invalid base64 payload in data URI image | `FUNCTIONAL_ERROR` | `parseDataUriImage` (database/markdown-embedded-images) |  |
| Invalid data URI image format | `FUNCTIONAL_ERROR` | `parseDataUriImage` (database/markdown-embedded-images) |  |
| Invalid filter configuration | `UNSUPPORTED_ERROR` | `buildLocalMustFilter` (database/engine) |  |
| Invalid relationship schema | `FUNCTIONAL_ERROR` | `checkRelationshipRef` (database/stix) | `data`, `from`, `to`, `type` |
| Invalid schema pointer for partial update | `UNSUPPORTED_ERROR` | `isObjectPathTargetMultipleAttribute` (database/utils) | `path` |
| Invalid stix data conversion | `FUNCTIONAL_ERROR` | `convertStoreToStix_2_0` (database/stix-2-0-converter), `convertStoreToStix_2_1` (database/stix-2-1-converter) | `id`, `type` |
| List connected entities paginated cant be used | `UNSUPPORTED_ERROR` | `pageRegardingEntitiesConnection` (database/middleware-loader) | `type` |
| Load file from storage fail | `UNSUPPORTED_ERROR` | `getFileSize` (database/raw-file-storage) | `cause`, `filename`, `user_id` |
| Manual inference deletion is not allowed | `UNSUPPORTED_ERROR` | `checkIfInferenceOperationIsValid` (database/middleware) | `id` |
| Missing mandatory attribute for vocabulary | `FUNCTIONAL_ERROR` | `inputResolveRefsFn` (database/middleware) | `key` |
| No entity converter available for {type} | `UNSUPPORTED_ERROR` | `convertToStix_2_1` (database/stix-2-1-converter) |  |
| No entity stix 2.0 converter available for {type} | `UNSUPPORTED_ERROR` | `convertToStix_2_0` (database/stix-2-0-converter) |  |
| No meta converter available for {type} | `UNSUPPORTED_ERROR` | `convertToStix_2_1` (database/stix-2-1-converter) |  |
| No meta stix 2.0 converter available for {type} | `UNSUPPORTED_ERROR` | `convertToStix_2_0` (database/stix-2-0-converter) |  |
| No observable converter available for {type} | `UNSUPPORTED_ERROR` | `convertToStix_2_1` (database/stix-2-1-converter) |  |
| No relation converter_2_0 available | `UNSUPPORTED_ERROR` | `convertToStix_2_0` (database/stix-2-0-converter) | `type` |
| No relation converter_2_1 available | `UNSUPPORTED_ERROR` | `convertToStix_2_1` (database/stix-2-1-converter) | `type` |
| No representative extractor available | `UNSUPPORTED_ERROR` | `extractStixRepresentative` (database/stix-representative) | `type` |
| No SCO stix 2.0 converter available for {type} | `UNSUPPORTED_ERROR` | `convertToStix_2_0` (database/stix-2-0-converter) |  |
| Not supported AI type | `UNSUPPORTED_ERROR` | `queryAi` (database/ai-llm) | `type` |
| Not supported AI type (currently support: mistralai, openai, azureopenai) | `UNSUPPORTED_ERROR` | `(module)` (database/ai-llm) | `type` |
| Not supported filter operator | `UNSUPPORTED_ERROR` | `buildLocalMustFilter` (database/engine) | `filter`, `filterOperator` |
| Observable of is not correctly formatted | `FUNCTIONAL_ERROR` | `updateAttributeMetaResolved` (database/middleware) | `id`, `type` |
| Range filter must have only one field | `UNSUPPORTED_ERROR` | `buildLocalMustFilter` (database/engine) | `keys` |
| Relation cant be created (single cardinality) | `UNSUPPORTED_ERROR` | `createRelationRaw` (database/middleware) | `fromId`, `type` |
| Relation cant be created with the same source and target | `UNSUPPORTED_ERROR` | `createRelationRaw` (database/middleware) | `doc_code: SELF_REFERENCING_RELATION`, `from`, `relationshipType` |
| Restricted entity already exists | `UNSUPPORTED_ERROR` | `internalCreateEntityRaw` (database/middleware) | `doc_code: RESTRICTED_ELEMENT` |
| Restricted entity already exists, you can request access | `ACCESS_REQUIRED` | `internalCreateEntityRaw` (database/middleware) | `entityIds` |
| Restricted relation already exists | `UNSUPPORTED_ERROR` | `createRelationRaw` (database/middleware) |  |
| Runtime mapping is only possible with elastic \>=7.12 | `UNSUPPORTED_ERROR` | `elQueryBodyBuilder` (database/engine) | `order` |
| Schema validation failure when loading dependencies | `UNSUPPORTED_ERROR` | `loadElementMetaDependencies` (database/middleware) | `inputKey`, `key`, `type` |
| The relationship is not allowed | `FUNCTIONAL_ERROR` | `checkRelationshipRef` (database/stix) | `from`, `to`, `type` |
| This attribute key is not allowed, please check your registration attribute name | `FUNCTIONAL_ERROR` | `checkAttributeConsistency` (database/middleware) | `entity_type`, `key` |
| This update will produce a duplicate | `FUNCTIONAL_ERROR` | `updateAttributeMetaResolved` (database/middleware) | `existingIds`, `id`, `type` |
| Type cannot be converted to Stix | `UNSUPPORTED_ERROR` | `convertToStix_2_0` (database/stix-2-0-converter), `convertToStix_2_1` (database/stix-2-1-converter) | `type` |
| Type not compatible with identity | `UNSUPPORTED_ERROR` | `convertIdentityToStix` (database/stix-2-0-converter), `convertIdentityToStix` (database/stix-2-1-converter) | `entity_type` |
| Type not compatible with internal | `UNSUPPORTED_ERROR` | `convertInternalToStix` (database/stix-2-1-converter) | `entity_type` |
| Type not compatible with location | `UNSUPPORTED_ERROR` | `convertLocationToStix` (database/stix-2-0-converter), `convertLocationToStix` (database/stix-2-1-converter) | `entity_type` |
| Unknown attribute | `UNSUPPORTED_ERROR` | `buildAttribute` (database/data-changes) | `entityType`, `key` |
| Unsupported data URI image mime type: {mimeType} | `FUNCTIONAL_ERROR` | `parseDataUriImage` (database/markdown-embedded-images) |  |
| Unsupported entity type for merging | `FUNCTIONAL_ERROR` | `mergeEntitiesRaw` (database/middleware) | `type` |
| Unsupported interval, please choose between year, quarter, month, week, day or hour | `FUNCTIONAL_ERROR` | `elHistogramCount` (database/engine) | `interval` |
| Unsupported markdown embedded image mime type | `FUNCTIONAL_ERROR` | `rewriteMarkdownDataUris` (database/middlewareEmbeddedImages) | `entityId`, `entityType`, `mimeType` |
| Update event must contains a valid previous patch | `UNSUPPORTED_ERROR` | `buildStixUpdateEvent` (database/stream/stream-utils) |  |
| Update event must contains more operation than just modified/updated_at value | `UNSUPPORTED_ERROR` | `buildStixUpdateEvent` (database/stream/stream-utils) |  |
| Within filter must have only one field | `UNSUPPORTED_ERROR` | `buildLocalMustFilter` (database/engine) | `keys` |
| Within filter must have two values | `UNSUPPORTED_ERROR` | `buildLocalMustFilter` (database/engine) | `values` |
| You cant create a cyclic relation | `FUNCTIONAL_ERROR` | `createRelationRaw` (database/middleware) | `from`, `to` |
| You must provide at least one external reference for this type of entity/relationship | `VALIDATION_ERROR` | `validateEntityAndRelationCreation` (database/middleware) | `field: externalReferences` |
| You must provide at least one external reference to update | `VALIDATION_ERROR` | `updateAttributeMetaResolved` (database/middleware) | `field: references` |
| You need to specify a scope type and both IDs when deleting a relation with from and to | `FUNCTIONAL_ERROR` | `deleteRelationsByFromAndTo` (database/middleware) | `from`, `to`, `type` |
| You need to specify a type when deleting an entity | `FUNCTIONAL_ERROR` | `deleteElementById` (database/middleware) |  |
| You need to specify a type when loading an element | `FUNCTIONAL_ERROR` | `storeLoadById` (database/middleware-loader) | `id` |
| You need to specify a type when loading elements | `FUNCTIONAL_ERROR` | `storeLoadByIds` (database/middleware-loader) | `ids` |

## domain {#domain}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| \[ACCESS\] USER MARKING INACCESSIBLE | `UNSUPPORTED_ERROR` | `computeAvailableMarkings` (domain/user) | `error` |
| \[SSO\] Can't login. The user has groups that don't exist and auto_create_group = false. | `FORBIDDEN_ACCESS` | `loginFromProvider` (domain/user) |  |
| \[SSO\] Can't login. The user has organizations that don't exist and auto_create_organization = false. | `FORBIDDEN_ACCESS` | `loginFromProvider` (domain/user) |  |
| {entityType} {id} cant be found | `FUNCTIONAL_ERROR` | `deleteInternalObject` (domain/internalObject), `editInternalObject` (domain/internalObject) |  |
| {type} is not supported | `UNSUPPORTED_ERROR` | `getChildren` (domain/stixRelationship) |  |
| A background task should be of scope: SETTINGS, KNOWLEDGE, USER, IMPORT, DASHBOARD, PUBLIC_DASHBOARD. | `UNSUPPORTED_ERROR` | `checkActionValidity` (domain/backgroundTask-common) | `scope` |
| A background task should be of type query or list. | `UNSUPPORTED_ERROR` | `checkActionValidity` (domain/backgroundTask-common) | `taskType` |
| A single task cannot perform several actions on the same field if one action is a replace. | `FUNCTIONAL_ERROR` | `checkActionValidity` (domain/backgroundTask-common) | `data` |
| Analysis type not supported | `UNSUPPORTED_ERROR` | `stixCoreAnalysis` (domain/stixCoreObject) | `analysisType` |
| Background tasks of scope dashboard can only be deletions. | `UNSUPPORTED_ERROR` | `checkActionValidity` (domain/backgroundTask-common) |  |
| Background tasks of scope Import can only be deletions. | `UNSUPPORTED_ERROR` | `checkActionValidity` (domain/backgroundTask-common) |  |
| Background tasks of scope investigation can only be deletions. | `UNSUPPORTED_ERROR` | `checkActionValidity` (domain/backgroundTask-common) |  |
| Background tasks of scope Playbook can only be deletions. | `UNSUPPORTED_ERROR` | `checkActionValidity` (domain/backgroundTask-common) |  |
| Background tasks of scope Public dashboard can only be deletions. | `UNSUPPORTED_ERROR` | `checkActionValidity` (domain/backgroundTask-common) |  |
| Bookmarks widgets only support filter with key=entity_type. | `UNSUPPORTED_ERROR` | `bookmarks` (domain/user) |  |
| Can not move to a draft that is not in an open state | `DRAFT_LOCKED` | `userEditField` (domain/user) |  |
| Cannot add the relation, External Reference cannot be found. | `FUNCTIONAL_ERROR` | `externalReferenceAddRelation` (domain/externalReference) | `externalReferenceId` |
| Cannot add the relation, Group cannot be found. | `FUNCTIONAL_ERROR` | `groupAddRelation` (domain/group) | `groupId` |
| Cannot add the relation, Role cannot be found. | `FUNCTIONAL_ERROR` | `roleAddRelation` (domain/user) | `id` |
| Cannot add the relation, User cannot be found. | `FUNCTIONAL_ERROR` | `assignGroupToUser` (domain/user) | `userId` |
| Cannot ask for analysis in draft | `UNSUPPORTED_ERROR` | `askElementAnalysisForConnector` (domain/stixCoreObject) |  |
| Cannot ask for export in draft | `UNSUPPORTED_ERROR` | `stixCoreObjectExportAsk` (domain/stixCoreObject), `stixCoreObjectsExportAsk` (domain/stixCoreObject) |  |
| Cannot create a workbench in draft | `UNSUPPORTED_ERROR` | `uploadPending` (domain/file) |  |
| Cannot create indicator - cant generate pattern. | `FUNCTIONAL_ERROR` | `generateIndicatorFromObservable` (domain/stixCyberObservable) | `key`, `value` |
| Cannot create observable with both payload_bin and url filled. | `FUNCTIONAL_ERROR` | `addStixCyberObservable` (domain/stixCyberObservable) |  |
| Cannot delete a status template that is used in a workflow | `FUNCTIONAL_ERROR` | `statusTemplateDelete` (domain/status) |  |
| Cannot delete the object, Stix-Core-Object cannot be found. | `FUNCTIONAL_ERROR` | `stixCoreObjectDelete` (domain/stixCoreObject) | `stixCoreObjectId` |
| Cannot delete the object, Stix-Domain-Object cannot be found. | `FUNCTIONAL_ERROR` | `stixDomainObjectDelete` (domain/stixDomainObject), `stixDomainObjectDeleteUnchecked` (domain/stixDomainObject) | `id`, `types` |
| Cannot delete the relation, External-Reference cannot be found. | `FUNCTIONAL_ERROR` | `externalReferenceDeleteRelation` (domain/externalReference) | `externalReferenceId` |
| Cannot delete the relation, Group cannot be found. | `FUNCTIONAL_ERROR` | `groupDeleteRelation` (domain/group) | `groupId` |
| Cannot delete the relation, Role cannot be found. | `FUNCTIONAL_ERROR` | `roleDeleteRelation` (domain/user) | `id` |
| Cannot delete the relation, Stix-Object or Stix-Relationship cannot be found. | `FUNCTIONAL_ERROR` | `stixObjectOrRelationshipDeleteRefRelation` (domain/stixObjectOrStixRelationship) | `id` |
| Cannot delete the relation, Stix-Ref-Relation cannot be found. | `FUNCTIONAL_ERROR` | `stixRefRelationshipEditField` (domain/stixRefRelationship) | `id` |
| Cannot delete the stix element, {id} cannot be found. | `FUNCTIONAL_ERROR` | `stixDelete` (domain/stix) |  |
| Cannot delete, External-Reference cannot be found. | `FUNCTIONAL_ERROR` | `externalReferenceDelete` (domain/externalReference) | `externalReferenceId` |
| Cannot edit the field, stix-core-relationship cannot be found. | `FUNCTIONAL_ERROR` | `stixCoreRelationshipEditField` (domain/stixCoreRelationship) | `id` |
| Cannot edit the field, Stix-Domain-Object cannot be found. | `FUNCTIONAL_ERROR` | `stixDomainObjectEditField` (domain/stixDomainObject) | `stixObjectId` |
| Cannot enrich the object, element cannot be found. | `FUNCTIONAL_ERROR` | `askElementEnrichmentForConnectors` (domain/stixCoreObject) | `enrichedId` |
| Cannot force password change for external user | `FUNCTIONAL_ERROR` | `userEditField` (domain/user) | `userId` |
| Cannot identify user with basic auth | `FUNCTIONAL_ERROR` | `authenticateUserByBasicAuth` (domain/user) |  |
| Cannot identify user with email | `AUTH_FAILURE` | `authenticateUserByEmail` (domain/user) | `email` |
| Cannot identify user with id | `FUNCTIONAL_ERROR` | `authenticateUserByUserId` (domain/user) |  |
| Cannot identify user with not comparable token | `FUNCTIONAL_ERROR` | `authenticateUserByToken` (domain/user) |  |
| Cannot identify user with token | `FUNCTIONAL_ERROR` | `authenticateUserByToken` (domain/user) |  |
| Cannot parse contract | `FUNCTIONAL_ERROR` | `migrateConnectorToManaged` (domain/connector-migration) |  |
| Cannot parse contract found | `FUNCTIONAL_ERROR` | `assessConnectorMigration` (domain/connector-migration) |  |
| Cannot remove the object from draft, Stix-Core-Object cannot be found. | `FUNCTIONAL_ERROR` | `stixCoreObjectRemoveFromDraft` (domain/stixCoreObject) | `stixCoreObjectId` |
| Cannot remove the object from draft, stix-core-relationship cannot be found. | `FUNCTIONAL_ERROR` | `stixCoreRelationshipRemoveFromDraft` (domain/stixCoreRelationship) | `id` |
| Cannot remove the object from draft, Stix-Sighting-Relationship cannot be found. | `FUNCTIONAL_ERROR` | `stixSightingRelationshipRemoveFromDraft` (domain/stixSightingRelationship) | `id` |
| Cannot update password for Service account | `FUNCTIONAL_ERROR` | `userEditField` (domain/user) | `userId` |
| Cannot update payload_bin when url is present. | `FUNCTIONAL_ERROR` | `stixCyberObservableEditField` (domain/stixCyberObservable) | `stixCyberObservableId` |
| Cannot update url when payload_bin is present. | `FUNCTIONAL_ERROR` | `stixCyberObservableEditField` (domain/stixCyberObservable) | `stixCyberObservableId` |
| Cant {value} undefined rule {ruleId} | `UNSUPPORTED_ERROR` | `setRuleActivation` (domain/rules) |  |
| Cant clear analysis on none existing element | `UNSUPPORTED_ERROR` | `analysisClear` (domain/stixCoreObject) | `entityId` |
| Cant connect to remote opencti, {message} | `UNSUPPORTED_ERROR` | `testSync` (domain/connector-utils) |  |
| Cant connect to remote opencti, check your configuration | `UNSUPPORTED_ERROR` | `testSync` (domain/connector-utils) |  |
| Cant delete a file of none existing element | `UNSUPPORTED_ERROR` | `stixCoreObjectImportDelete` (domain/stixCoreObject) | `entityId` |
| Cant delete an exported file with this method | `UNSUPPORTED_ERROR` | `stixCoreObjectImportDelete` (domain/stixCoreObject) |  |
| Cant get analysis on none existing element | `UNSUPPORTED_ERROR` | `stixCoreAnalysis` (domain/stixCoreObject) | `entityId` |
| Cant impersonate applicant {applicantId} | `FUNCTIONAL_ERROR` | `internalAuthenticateUser` (domain/user) |  |
| Cant upload a file an none existing element | `UNSUPPORTED_ERROR` | `stixCoreObjectAnalysisPush` (domain/stixCoreObject), `stixCoreObjectExportPush` (domain/stixCoreObject), `stixCoreObjectImportPush` (domain/stixCoreObject) | `entityId`, `id` |
| Cant use synchronized-upsert header without bypass capability | `FUNCTIONAL_ERROR` | `internalAuthenticateUser` (domain/user) |  |
| Configuration validation failed | `FUNCTIONAL_ERROR` | `migrateConnectorToManaged` (domain/connector-migration) | `details`, `message` |
| Connector is already managed | `FUNCTIONAL_ERROR` | `assessConnectorMigration` (domain/connector-migration), `migrateConnectorToManaged` (domain/connector-migration) | `id` |
| Connector is not managed by composer | `FUNCTIONAL_ERROR` | `migrateConnectorToManaged` (domain/connector-migration) |  |
| Connector not found | `FUNCTIONAL_ERROR` | `assessConnectorMigration` (domain/connector-migration), `migrateConnectorToManaged` (domain/connector-migration) | `id` |
| Connector not found | `UNSUPPORTED_ERROR` | `managedConnectorEdit` (domain/connector) | `id` |
| Connector type mismatch | `FUNCTIONAL_ERROR` | `assessConnectorMigration` (domain/connector-migration), `migrateConnectorToManaged` (domain/connector-migration) | `connector_type`, `contract_type` |
| Connector user not found | `UNSUPPORTED_ERROR` | `managedConnectorAdd` (domain/connector) | `id` |
| CONNECTOR_NAME_ALREADY_EXISTS | `FUNCTIONAL_ERROR` | `managedConnectorAdd` (domain/connector) |  |
| Content type not recognized | `FUNCTIONAL_ERROR` | `askElementAnalysisForConnector` (domain/stixCoreObject) | `contentType` |
| Contract not found | `FUNCTIONAL_ERROR` | `assessConnectorMigration` (domain/connector-migration), `migrateConnectorToManaged` (domain/connector-migration) | `container_image` |
| Couldnt retrieve file | `UNSUPPORTED_ERROR` | `stixCoreAnalysis` (domain/stixCoreObject) | `analysis` |
| Element can not be loaded | `FUNCTIONAL_ERROR` | `patchElementWithRefRelationships` (domain/stixObjectOrStixRelationship) | `stixObjectOrRelationshipId` |
| Email cannot be updated for external user | `FUNCTIONAL_ERROR` | `userEditField` (domain/user) | `userId` |
| entity_type is missing from askListExport | `FUNCTIONAL_ERROR` | `askListExport` (domain/stix) |  |
| Error getting the streams from remote OpenCTI | `VALIDATION_ERROR` | `fetchRemoteStreams` (domain/connector) | `cause`, `field: uri` |
| Expecting variable {graphQLType} in the input, got nothing. | `FUNCTIONAL_ERROR` | `addStixCyberObservable` (domain/stixCyberObservable) |  |
| Fields content source not handled | `FUNCTIONAL_ERROR` | `askFieldsAnalysisForConnector` (domain/stixCoreObject) | `contentSource` |
| File removed or inaccessible | `UNSUPPORTED_ERROR` | `stixCoreObjectImportDelete` (domain/stixCoreObject) | `fileId` |
| Invalid bundle | `UNSUPPORTED_ERROR` | `sendStixBundle` (domain/stix) | `cause` |
| Invalid CGU status, expected one of {validStatuses} | `UNSUPPORTED_ERROR` | `settingsEditField` (domain/settings) |  |
| Invalid configuration keys provided | `FUNCTIONAL_ERROR` | `migrateConnectorToManaged` (domain/connector-migration) | `invalid_keys`, `message` |
| Invalid connector | `UNSUPPORTED_ERROR` | `sendStixBundle` (domain/stix) | `connectorId` |
| Invalid connector name | `FUNCTIONAL_ERROR` | `managedConnectorAdd` (domain/connector) |  |
| Invalid email template | `UNSUPPORTED_ERROR` | `sendEmailToUser` (domain/user) | `id` |
| Invalid IP address or CIDR entries in allow list: {invalidEntries} | `UNSUPPORTED_ERROR` | `settingsEditField` (domain/settings) |  |
| Invalid license | `UNSUPPORTED_ERROR` | `settingsEditField` (domain/settings) |  |
| Invalid location type {type}, please provide one of {supportedTypes} | `FUNCTIONAL_ERROR` | `addLocation` (domain/location) |  |
| Invalid password: {errors} | `FUNCTIONAL_ERROR` | `checkPasswordFromPolicy` (domain/user) |  |
| Invalid stix bundle | `UNSUPPORTED_ERROR` | `sendStixBundle` (domain/stix) | `work_id` |
| Invalid version of the platform. Please upgrade your OpenCTI. Minimal version required: 6.9.6 | `FUNCTIONAL_ERROR` | `syncAddInputFromImport` (domain/connector) | `reason` |
| JWT email does not match any user | `AUTH_FAILURE` | `authenticateUserByEmail` (domain/user) | `email` |
| JWT issuer is not trusted | `AUTH_FAILURE` | `resolveKey` (domain/xtm-auth) | `issuer` |
| JWT kid does not match any platform key | `AUTH_FAILURE` | `resolveKey` (domain/xtm-auth) | `kid` |
| JWT missing iss claim | `AUTH_FAILURE` | `resolveKey` (domain/xtm-auth) |  |
| JWT missing sub claim | `AUTH_FAILURE` | `authenticateUserByJWT` (domain/user) |  |
| JWT signature verification failed | `AUTH_FAILURE` | `verifyXtmJwt` (domain/xtm-auth) |  |
| Latitude must be between -90 and 90 degrees | `VALIDATION_ERROR` | `validateCoordinates` (domain/position) |  |
| Longitude must be between -180 and 180 degrees | `VALIDATION_ERROR` | `validateCoordinates` (domain/position) |  |
| MISSING_ELEMENTS | `FUNCTIONAL_ERROR` | `addStixRefRelationship` (domain/stixRefRelationship) | `from`, `from_missing`, `to`, `to_missing` |
| Name cannot be updated for external user | `FUNCTIONAL_ERROR` | `userEditField` (domain/user) | `userId` |
| No connector found for analysis | `RESOURCE_NOT_FOUND` | `askFieldsAnalysisForConnector` (domain/stixCoreObject), `askFileAnalysisForConnector` (domain/stixCoreObject) | `analyzedId`, `connectorId` |
| No connector found with the specified ID | `FUNCTIONAL_ERROR` | `pingConnector` (domain/connector) | `id` |
| No connector manager configured | `FUNCTIONAL_ERROR` | `migrateConnectorToManaged` (domain/connector-migration) |  |
| No manager configuration found | `FUNCTIONAL_ERROR` | `resetFileIndexing` (domain/indexedFile) |  |
| No public dashboards to delete. | `FORBIDDEN_ACCESS` | `checkActionValidity` (domain/backgroundTask-common) |  |
| Not enough data to summarize the containers attached to the entity. | `FUNCTIONAL_ERROR` | `aiSummary` (domain/container) |  |
| Observable is not correctly formatted | `FUNCTIONAL_ERROR` | `addStixCyberObservable` (domain/stixCyberObservable) | `doc_code: INCORRECT_OBSERVABLE_FORMAT`, `input`, `type` |
| Observable type {type} is not supported. | `FUNCTIONAL_ERROR` | `addStixCyberObservable` (domain/stixCyberObservable) |  |
| Only Container can be query through this method. | `FUNCTIONAL_ERROR` | `containersPaginated` (domain/stixCoreObject) |  |
| Only internal-relationship can be added through this method, got {relationship_type}. | `FUNCTIONAL_ERROR` | `groupAddRelation` (domain/group), `roleAddRelation` (domain/user), `userAddRelation` (domain/user) |  |
| Only internal-relationship can be deleted through this method, got {relationship_type}. | `FUNCTIONAL_ERROR` | `groupDeleteRelation` (domain/group) |  |
| Only internal-relationship can be deleted through this method, got {relationshipType}. | `FUNCTIONAL_ERROR` | `roleDeleteRelation` (domain/user), `userIdDeleteRelation` (domain/user) |  |
| Only internal-relationship can be deleted through this method. | `FUNCTIONAL_ERROR` | `userDeleteRelation` (domain/user) |  |
| Only stix-core-relationship can be created through this method. | `FUNCTIONAL_ERROR` | `addStixCoreRelationship` (domain/stixCoreRelationship) |  |
| Only stix-core-relationship can be deleted through this method, not {relationshipType}. | `FUNCTIONAL_ERROR` | `stixCoreRelationshipDeleteByFromAndTo` (domain/stixCoreRelationship) |  |
| Only stix-ref-relationship can be added through this method, got {relationship_type}. | `FUNCTIONAL_ERROR` | `externalReferenceAddRelation` (domain/externalReference), `addStixRefRelationship` (domain/stixRefRelationship) |  |
| Only stix-ref-relationship can be deleted through this method, got {relationshipType}. | `FUNCTIONAL_ERROR` | `externalReferenceDeleteRelation` (domain/externalReference) |  |
| Only stix-ref-relationship can be deleted through this method. | `FUNCTIONAL_ERROR` | `stixObjectOrRelationshipDeleteRefRelation` (domain/stixObjectOrStixRelationship) | `id` |
| Report creation required name and published | `UNSUPPORTED_ERROR` | `addReport` (domain/report) | `name`, `published` |
| Server cant generate connection id | `UNSUPPORTED_ERROR` | `testSync` (domain/connector-utils) |  |
| Stream URL format is not correct | `FUNCTIONAL_ERROR` | `computeStreamRemoteUrl` (domain/connector) |  |
| Target contract not found | `UNSUPPORTED_ERROR` | `managedConnectorAdd` (domain/connector), `managedConnectorEdit` (domain/connector) |  |
| Target user not found | `UNSUPPORTED_ERROR` | `sendEmailToUser` (domain/user) | `id` |
| The current password you have provided is not valid | `FUNCTIONAL_ERROR` | `meEditField` (domain/user) |  |
| The email you have provided is not valid | `FUNCTIONAL_ERROR` | `addUser` (domain/user), `validateAndNormalizeEmailInput` (domain/user) |  |
| The language you have provided is not valid | `FUNCTIONAL_ERROR` | `userEditField` (domain/user) |  |
| The targeted ids are not dashboard. | `FORBIDDEN_ACCESS` | `checkActionValidity` (domain/backgroundTask-common) |  |
| The targeted ids are not dashboards. | `FORBIDDEN_ACCESS` | `checkActionValidity` (domain/backgroundTask-common) |  |
| The targeted ids are not investigations. | `FORBIDDEN_ACCESS` | `checkActionValidity` (domain/backgroundTask-common) |  |
| The targeted ids are not knowledge. | `FORBIDDEN_ACCESS` | `checkActionValidity` (domain/backgroundTask-common) |  |
| The targeted ids are not notifications. | `FORBIDDEN_ACCESS` | `checkActionValidity` (domain/backgroundTask-common) |  |
| The targeted ids are not playbooks. | `FORBIDDEN_ACCESS` | `checkActionValidity` (domain/backgroundTask-common) |  |
| The targeted ids are not public dashboards. | `FORBIDDEN_ACCESS` | `checkActionValidity` (domain/backgroundTask-common) |  |
| The targeted ids are not users. | `FORBIDDEN_ACCESS` | `checkActionValidity` (domain/backgroundTask-common) |  |
| There is no connector manager configured | `FUNCTIONAL_ERROR` | `managedConnectorAdd` (domain/connector), `managedConnectorEdit` (domain/connector) |  |
| This message does not exist | `UNSUPPORTED_ERROR` | `settingDeleteMessage` (domain/settings) | `messageId` |
| This method can only create Stix domain | `UNSUPPORTED_ERROR` | `addStixDomainObject` (domain/stixDomainObject) |  |
| This method can only delete Stix element | `UNSUPPORTED_ERROR` | `stixDelete` (domain/stix) | `id`, `type` |
| This relationship type is not supported | `UNSUPPORTED_ERROR` | `patchElementWithRefRelationships` (domain/stixObjectOrStixRelationship) | `relationship_type` |
| Token expired | `FUNCTIONAL_ERROR` | `authenticateUserByToken` (domain/user) |  |
| Trusted issuer JWT missing email claim | `AUTH_FAILURE` | `authenticateUserByJWT` (domain/user) |  |
| Unsupported unit system | `UNSUPPORTED_ERROR` | `userEditField` (domain/user) | `unit` |
| Update is only possible on internal enrichment or import file connectors types | `FUNCTIONAL_ERROR` | `connectorTriggerUpdate` (domain/connector) | `connectorId` |
| Update is only possible on these input keys: connector_trigger_filters | `FUNCTIONAL_ERROR` | `connectorTriggerUpdate` (domain/connector) | `connectorId` |
| User already exists | `FUNCTIONAL_ERROR` | `addUser` (domain/user), `validateAndNormalizeEmailInput` (domain/user) | `user_id` |
| User cannot be created without email | `FUNCTIONAL_ERROR` | `addUser` (domain/user) |  |
| User cannot be found. | `FUNCTIONAL_ERROR` | `loadUserToUpdateWithAccessCheck` (domain/user) | `userId` |
| User email not provided | `FORBIDDEN_ACCESS` | `loginFromProvider` (domain/user) |  |
| You are not allowed to edit some settings fields. | `FORBIDDEN_ACCESS` | `settingsEditField` (domain/settings) | `unauthorizedKeys` |
| You are not allowed to share these markings | `FORBIDDEN_ACCESS` | `checkUserCanShareMarkings` (domain/user) | `markings` |
| You are not allowed to use API Access Tokens | `FORBIDDEN_ACCESS` | `authenticateUserByToken` (domain/user) |  |
| You are not allowed to use API basic auth | `FORBIDDEN_ACCESS` | `authenticateUserByBasicAuth` (domain/user) |  |
| You can't login without an organization | `AUTH_FAILURE` | `validateUser` (domain/user) |  |
| You have not chosen a connector supported by the manager | `FUNCTIONAL_ERROR` | `managedConnectorAdd` (domain/connector) |  |
| You must change your password before continuing. | `PASSWORD_CHANGE_REQUIRED` | `sessionLogin` (domain/user), `validateUser` (domain/user) |  |
| You must provide an attachment to create a new external reference | `VALIDATION_ERROR` | `addExternalReference` (domain/externalReference) | `field: file` |
| You need to deactivate your current 2FA before generating a new one | `UNSUPPORTED_ERROR` | `otpUserActivation` (domain/user) |  |
| You need to deactivate your current 2FA in a valid user session | `UNSUPPORTED_ERROR` | `otpUserDeactivation` (domain/user) |  |
| You need to specify a context to create an grouping | `UNSUPPORTED_ERROR` | `addStixDomainObject` (domain/stixDomainObject) |  |
| You need to specify a pattern/pattern_type to create an indicator | `UNSUPPORTED_ERROR` | `addStixDomainObject` (domain/stixDomainObject) |  |
| Your IP address is not allowed to access this platform | `AUTH_FAILURE` | `checkIpWhitelistOnLogin` (domain/user) |  |

## enterprise-edition {#enterprise-edition}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Enterprise edition is not enabled | `UNSUPPORTED_ERROR` | `checkEnterpriseEdition` (enterprise-edition/ee) |  |

## graphql {#graphql}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| \[OPENCTI\] API GraphQL framework error | `VALIDATION_ERROR` | `willSendResponse` (graphql/loggerPlugin) | `field`, `source` |
| Feature is disabled | `FORBIDDEN_ACCESS` | `makeFeatureFlagDirectiveTransformer` (graphql/featureFlagDirective) | `flags` |
| GraphQL introspection not authorized! | `RESOURCE_NOT_FOUND` | `didResolveOperation` (graphql/graphql) |  |
| Recovery mode is only possible with a start date. | `UNSUPPORTED_ERROR` | `liveStreamHandler` (graphql/sseMiddleware) |  |
| Too many requests | `FUNCTIONAL_ERROR` | `onLimit` (graphql/schema) |  |
| Unsecure schema: missing auth or public directive | `UNSUPPORTED_ERROR` | `authDirectiveTransformer` (graphql/authDirective) | `field` |
| You are not allowed to listen this. | `FORBIDDEN_ACCESS` | `subscribeToInstanceEvents` (graphql/subscriptionWrapper) |  |
| You must activate your account with 2FA. | `OTP_REQUIRED_ACTIVATION` | `authDirectiveTransformer` (graphql/authDirective) |  |
| You must activate your LTS license. | `LTS_REQUIRED_ACTIVATION` | `authDirectiveTransformer` (graphql/authDirective) |  |
| You must validate your account with 2FA. | `OTP_REQUIRED` | `authDirectiveTransformer` (graphql/authDirective) |  |

## http {#http}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Cannot execute request in a draft that is not in an open state | `DRAFT_LOCKED` | `checkDraftInContext` (http/httpServer-draft) |  |
| Draft {draft_context} cannot be found{serviceAccountHint} | `FUNCTIONAL_ERROR` | `checkDraftInContext` (http/httpServer-draft) |  |
| User cannot be found | `FUNCTIONAL_ERROR` | `checkDraftInContext` (http/httpServer-draft) |  |
| User must be authenticated | `FORBIDDEN_ACCESS` | `extractWsSessionContext` (http/httpServer) |  |
| Work is no longer alive, no request can be done within the context of this work | `WORK_NOT_ALIVE` | `context` (http/httpServer) |  |

## lock {#lock}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Lock child fork not initialize | `UNSUPPORTED_ERROR` | `childLockResources` (lock/master-lock) |  |

## modules/ai {#modules-ai}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| The NLQ filters response format is not correct: {stringify} | `FUNCTIONAL_ERROR` | `generateNLQresponse` (modules/ai/ai-domain) | `data`, `error` |

## modules/auth {#modules-auth}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Invalid password reset code. Please check the code and try again. | `UNSUPPORTED_ERROR` | `changePassword` (modules/auth/auth-domain), `verifyOtp` (modules/auth/auth-domain) |  |
| Password change failed, please try again. | `UNSUPPORTED_ERROR` | `changePassword` (modules/auth/auth-domain) |  |
| Password reset code expired or not found. Please request a new one. | `UNSUPPORTED_ERROR` | `verifyOtp` (modules/auth/auth-domain) |  |
| Unable to send password reset code. Please try again later or contact your administrator. | `UNSUPPORTED_ERROR` | `askSendOtp` (modules/auth/auth-domain) |  |

## modules/authenticationProvider {#modules-authenticationprovider}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| An authentication provider with the same identifier already exists | `FUNCTIONAL_ERROR` | `ensureUniqueIdentifier` (modules/authenticationProvider/authenticationProvider-domain) | `conflicting_provider_id`, `conflicting_provider_name`, `identifier` |
| Authentication is currently managed by env variables | `UNSUPPORTED_ERROR` | `checkAuthenticationByEnvVariables` (modules/authenticationProvider/authenticationProvider-domain) |  |
| Authentication provider cannot be found | `FUNCTIONAL_ERROR` | `deleteAuthenticationProvider` (modules/authenticationProvider/authenticationProvider-domain), `editAuthenticationProvider` (modules/authenticationProvider/authenticationProvider-domain) | `id` |
| Cannot delete authentication provider, invalid type provided | `FUNCTIONAL_ERROR` | `deleteAuthenticationProvider` (modules/authenticationProvider/authenticationProvider-domain) | `expectedType`, `id`, `providerType` |
| Cannot update authentication provider, invalid type provided | `FUNCTIONAL_ERROR` | `editAuthenticationProvider` (modules/authenticationProvider/authenticationProvider-domain) | `expectedType`, `id`, `providerType` |
| Secret field is missing | `FUNCTIONAL_ERROR` | `mandatory` (modules/authenticationProvider/authenticationProvider-domain) | `field` |

## modules/case {#modules-case}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Case not found | `FUNCTIONAL_ERROR` | `caseDelete` (modules/case/case-resolvers) | `id` |

## modules/catalog {#modules-catalog}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Contract must be a valid json schema definition | `UNSUPPORTED_ERROR` | `buildCatalogMap` (modules/catalog/catalog-domain) | `cause` |
| Contract must define container_image field | `UNSUPPORTED_ERROR` | `buildCatalogMap` (modules/catalog/catalog-domain) | `contractTitle` |
| Contract must define container_type field | `UNSUPPORTED_ERROR` | `buildCatalogMap` (modules/catalog/catalog-domain) | `contractTitle` |
| Field "{propKey}" must be a boolean value (true or false). Received: "{rawValue}" | `UNSUPPORTED_ERROR` | `processConfigurationValue` (modules/catalog/catalog-domain) |  |
| Field "{propKey}" must be a valid integer. Received: "{rawValue}" | `UNSUPPORTED_ERROR` | `processConfigurationValue` (modules/catalog/catalog-domain) |  |

## modules/customField {#modules-customfield}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| A custom field with this label already exists | `VALIDATION_ERROR` | `customFieldDefinitionAdd` (modules/customField/custom-field-domain), `customFieldDefinitionEdit` (modules/customField/custom-field-domain) | `field: label`, `label` |
| A custom field with this technical name already exists | `VALIDATION_ERROR` | `customFieldDefinitionAdd` (modules/customField/custom-field-domain) | `field: nameSuffix`, `name` |
| boolean_value is required for boolean type custom field | `FUNCTIONAL_ERROR` | `validateBooleanField` (modules/customField/custom-field-validator) | `field_name` |
| boolean_value must be a boolean | `FUNCTIONAL_ERROR` | `validateBooleanField` (modules/customField/custom-field-validator) | `field_name` |
| Cannot modify immutable fields on a custom field definition | `FUNCTIONAL_ERROR` | `customFieldDefinitionEdit` (modules/customField/custom-field-domain) | `keys` |
| Cannot remove a select option that is still used by existing entities | `VALIDATION_ERROR` | `customFieldDefinitionEdit` (modules/customField/custom-field-domain) | `field: select_options`, `options`, `usageCount` |
| Cannot restrict the value range: existing entities hold a value outside the new bounds | `VALIDATION_ERROR` | `customFieldDefinitionEdit` (modules/customField/custom-field-domain) | `field`, `max_value`, `min_value`, `usageCount` |
| Custom field definition is not attached to this entity type | `FUNCTIONAL_ERROR` | `customFieldDefinitionUpdateEntityType` (modules/customField/custom-field-domain) | `entityType`, `id` |
| Custom field definition not found | `FUNCTIONAL_ERROR` | `customFieldDefinitionAddEntityType` (modules/customField/custom-field-domain), `customFieldDefinitionRemoveEntityType` (modules/customField/custom-field-domain), `customFieldDefinitionUpdateEntityType` (modules/customField/custom-field-domain) | `id` |
| Custom field definition not found for this entity type | `FUNCTIONAL_ERROR` | `validateCustomFieldValues` (modules/customField/custom-field-validator) | `entityType`, `field_name` |
| date_value is required for date type custom field | `FUNCTIONAL_ERROR` | `validateDateField` (modules/customField/custom-field-validator) | `field_name` |
| date_value must be a valid ISO date string | `FUNCTIONAL_ERROR` | `validateDateField` (modules/customField/custom-field-validator) | `field_name`, `value` |
| Duplicate custom field entries found in customFieldValues | `FUNCTIONAL_ERROR` | `validateCustomFieldValues` (modules/customField/custom-field-validator) | `duplicates` |
| int_value is above maximum | `FUNCTIONAL_ERROR` | `validateIntegerField` (modules/customField/custom-field-validator) | `field_name`, `max`, `value` |
| int_value is below minimum | `FUNCTIONAL_ERROR` | `validateIntegerField` (modules/customField/custom-field-validator) | `field_name`, `min`, `value` |
| int_value is required for integer type custom field | `FUNCTIONAL_ERROR` | `validateIntegerField` (modules/customField/custom-field-validator) | `field_name` |
| int_value must be an integer | `FUNCTIONAL_ERROR` | `validateIntegerField` (modules/customField/custom-field-validator) | `field_name`, `value` |
| Mandatory custom field is missing | `FUNCTIONAL_ERROR` | `validateCustomFieldValues` (modules/customField/custom-field-validator) | `field_name`, `label` |
| min_value cannot be greater than max_value | `FUNCTIONAL_ERROR` | `customFieldDefinitionAdd` (modules/customField/custom-field-domain), `customFieldDefinitionEdit` (modules/customField/custom-field-domain) | `max_value`, `min_value` |
| No custom field definitions found for entity type | `FUNCTIONAL_ERROR` | `validateCustomFieldValues` (modules/customField/custom-field-validator) | `entityType` |
| No select_options configured for this custom field | `FUNCTIONAL_ERROR` | `validateMultiSelectField` (modules/customField/custom-field-validator), `validateSelectField` (modules/customField/custom-field-validator) | `field_name` |
| select_options must be provided for select type fields | `FUNCTIONAL_ERROR` | `customFieldDefinitionAdd` (modules/customField/custom-field-domain) |  |
| select_value is not in the allowed options | `FUNCTIONAL_ERROR` | `validateSelectField` (modules/customField/custom-field-validator) | `allowed`, `field_name`, `value` |
| select_value is required for select type custom field | `FUNCTIONAL_ERROR` | `validateSelectField` (modules/customField/custom-field-validator) | `field_name` |
| select_values contains values that are not in the allowed options | `FUNCTIONAL_ERROR` | `validateMultiSelectField` (modules/customField/custom-field-validator) | `allowed`, `field_name`, `value` |
| select_values is required for multi_select type custom field | `FUNCTIONAL_ERROR` | `validateMultiSelectField` (modules/customField/custom-field-validator) | `field_name` |
| select_values must be an array | `FUNCTIONAL_ERROR` | `validateMultiSelectField` (modules/customField/custom-field-validator) | `field_name` |
| string_value is required for string type custom field | `FUNCTIONAL_ERROR` | `validateStringField` (modules/customField/custom-field-validator) | `field_name` |
| string_value must be a string | `FUNCTIONAL_ERROR` | `validateStringField` (modules/customField/custom-field-validator) | `field_name` |
| Technical name must start with "x_opencti_cf\_" and contain only lowercase letters, numbers and underscores, starting with a letter | `VALIDATION_ERROR` | `customFieldDefinitionAdd` (modules/customField/custom-field-domain) | `field: nameSuffix`, `name` |
| Unknown custom field type | `FUNCTIONAL_ERROR` | `validateSingleCustomFieldValue` (modules/customField/custom-field-validator) | `field_name`, `field_type` |
| Unsupported custom field type | `FUNCTIONAL_ERROR` | `customFieldDefinitionAdd` (modules/customField/custom-field-domain) | `allowed`, `field_type` |

## modules/customView {#modules-customview}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Custom views cannot be created for given entity type | `FUNCTIONAL_ERROR` | `addCustomView` (modules/customView/customView-domain), `duplicateCustomView` (modules/customView/customView-domain), `importCustomViewConfiguration` (modules/customView/customView-domain) | `entityType` |
| Missing target entity type for custom view import | `FUNCTIONAL_ERROR` | `importCustomViewConfiguration` (modules/customView/customView-domain) |  |

## modules/dashboard {#modules-dashboard}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Failed to parse saved filter | `FUNCTIONAL_ERROR` | `resolveSavedFilterReference` (modules/dashboard/dashboard-utils) | `error`, `savedFiltersContent`, `savedFiltersId`, `widget` |
| Invalid version of the platform. Please upgrade your OpenCTI. Minimal version required: 5.12.16 | `FUNCTIONAL_ERROR` | `checkDashboardConfigurationImport` (modules/dashboard/dashboard-utils) | `reason` |
| Saved filter not found | `FUNCTIONAL_ERROR` | `resolveSavedFilterReference` (modules/dashboard/dashboard-utils) | `savedFiltersId`, `widget` |

## modules/dataSanity {#modules-datasanity}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Unknown sanity operation: {operationName} | `FUNCTIONAL_ERROR` | `stopOperation` (modules/dataSanity/dataSanity-domain) | `operation_name` |

## modules/dataSharing {#modules-datasharing}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| {feedType} is not supported in http feeds | `UNSUPPORTED_ERROR` | `checkFeedIntegrity` (modules/dataSharing/feed-domain) |  |
| A user must be configured when the feed is public | `FUNCTIONAL_ERROR` | `createFeed` (modules/dataSharing/feed-domain), `editFeed` (modules/dataSharing/feed-domain) |  |
| A user must be configured when the stream collection is public | `FUNCTIONAL_ERROR` | `createStreamCollection` (modules/dataSharing/streamCollection-domain), `streamCollectionEditField` (modules/dataSharing/streamCollection-domain) |  |
| A user must be configured when the Taxii collection is public | `FUNCTIONAL_ERROR` | `createTaxiiCollection` (modules/dataSharing/taxiiCollection-domain), `taxiiCollectionEditField` (modules/dataSharing/taxiiCollection-domain) |  |
| Cannot use an internal system user for public sharing | `FUNCTIONAL_ERROR` | `resolveValidUser` (modules/dataSharing/dataSharing-utils) | `userId` |
| Feed {id} cant be found | `FUNCTIONAL_ERROR` | `editFeed` (modules/dataSharing/feed-domain) |  |
| Feed mappings length does not match global types length | `UNSUPPORTED_ERROR` | `checkFeedIntegrity` (modules/dataSharing/feed-domain) |  |
| Invalid multi_match_strategy "{multi_match_strategy}", must be "first" or "list" | `VALIDATION_ERROR` | `checkFeedIntegrity` (modules/dataSharing/feed-domain) | `field: multi_match_strategy` |
| Invalid spec_version provided, only '2.1' supported | `FUNCTIONAL_ERROR` | `collectionQuery` (modules/dataSharing/taxiiCollection-domain) | `spec_version` |
| Invalid version provided, only 'last' supported | `FUNCTIONAL_ERROR` | `collectionQuery` (modules/dataSharing/taxiiCollection-domain) | `version` |
| Mapping for type "{type}" in attribute "{attribute}": relationship_type and target_entity_type must both be set or both be absent | `VALIDATION_ERROR` | `checkFeedIntegrity` (modules/dataSharing/feed-domain) | `field: feed_attributes` |
| Multi-match separator for column "{attribute}" must differ from the feed CSV separator ("{separator}") | `VALIDATION_ERROR` | `checkFeedIntegrity` (modules/dataSharing/feed-domain) | `field: multi_match_separator` |
| Separator must be only one char | `VALIDATION_ERROR` | `checkFeedIntegrity` (modules/dataSharing/feed-domain) | `field: separator` |
| The attribute {attribute} contains an invalid mapping. | `UNSUPPORTED_ERROR` | `checkFeedIntegrity` (modules/dataSharing/feed-domain) |  |
| The mapping of the type {feedType} is missing in the attribute {attribute}. | `UNSUPPORTED_ERROR` | `checkFeedIntegrity` (modules/dataSharing/feed-domain) |  |
| The user configured for this public sharing no longer exists | `FUNCTIONAL_ERROR` | `resolveValidUser` (modules/dataSharing/dataSharing-utils) | `userId` |
| You must have the SETTINGS_SETACCESSES capability to create a public feed | `FUNCTIONAL_ERROR` | `createFeed` (modules/dataSharing/feed-domain) |  |
| You must have the SETTINGS_SETACCESSES capability to create a public stream collection | `FUNCTIONAL_ERROR` | `createStreamCollection` (modules/dataSharing/streamCollection-domain) |  |
| You must have the SETTINGS_SETACCESSES capability to create a public Taxii collection | `FUNCTIONAL_ERROR` | `createTaxiiCollection` (modules/dataSharing/taxiiCollection-domain) |  |
| You must have the SETTINGS_SETACCESSES capability to modify public feed settings | `FUNCTIONAL_ERROR` | `editFeed` (modules/dataSharing/feed-domain) |  |
| You must have the SETTINGS_SETACCESSES capability to modify public stream collection settings | `FUNCTIONAL_ERROR` | `streamCollectionEditField` (modules/dataSharing/streamCollection-domain) |  |
| You must have the SETTINGS_SETACCESSES capability to modify public Taxii collection settings | `FUNCTIONAL_ERROR` | `taxiiCollectionEditField` (modules/dataSharing/taxiiCollection-domain) |  |

## modules/decayRule {#modules-decayrule}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Cannot delete built-in decay rule {id} | `FUNCTIONAL_ERROR` | `deleteDecayRule` (modules/decayRule/decayRule-domain) |  |
| Cannot update built-in decay rule {id} | `FUNCTIONAL_ERROR` | `fieldPatchDecayRule` (modules/decayRule/decayRule-domain) |  |
| Decay exclusion rule {id} cannot be found | `FUNCTIONAL_ERROR` | `deleteDecayExclusionRule` (modules/decayRule/exclusions/decayExclusionRule-domain), `fieldPatchDecayExclusionRule` (modules/decayRule/exclusions/decayExclusionRule-domain) |  |
| Decay rule {id} cannot be found | `FUNCTIONAL_ERROR` | `deleteDecayRule` (modules/decayRule/decayRule-domain), `fieldPatchDecayRule` (modules/decayRule/decayRule-domain) |  |

## modules/deleteOperation {#modules-deleteoperation}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Cannot find DeleteOperation | `FUNCTIONAL_ERROR` | `restoreDelete` (modules/deleteOperation/deleteOperation-domain) | `id` |
| Cannot restore entity, duplicate existing entity detected | `FUNCTIONAL_ERROR` | `resolveEntitiesToRestore` (modules/deleteOperation/deleteOperation-domain) | `deleteOperationId` |
| Cannot restore from DeleteOperation: one or more deleted elements not found. | `FUNCTIONAL_ERROR` | `resolveEntitiesToRestore` (modules/deleteOperation/deleteOperation-domain) | `id` |
| Cannot restore main entity: unhandled entity type | `FUNCTIONAL_ERROR` | `restoreDelete` (modules/deleteOperation/deleteOperation-domain) | `main_entity_type` |
| Cannot restore relation, duplicate existing relation detected | `FUNCTIONAL_ERROR` | `resolveEntitiesToRestore` (modules/deleteOperation/deleteOperation-domain) | `deleteOperationId` |
| Cannot restore the cluster, cycle detected | `FUNCTIONAL_ERROR` | `resolveEntitiesToRestore` (modules/deleteOperation/deleteOperation-domain) |  |
| Cannot restore: a relationship targets deleted elements \[{name}\], restore them before retrying | `FUNCTIONAL_ERROR` | `resolveEntitiesToRestore` (modules/deleteOperation/deleteOperation-domain) | `deleteOperationId` |
| Cannot restore: a target element of a relationship has been permanently deleted and cannot be recovered | `FUNCTIONAL_ERROR` | `resolveEntitiesToRestore` (modules/deleteOperation/deleteOperation-domain) | `deleteOperationId` |
| Could not convert element to input for DeleteOperation restore | `FUNCTIONAL_ERROR` | `convertStoreEntityToInput` (modules/deleteOperation/deleteOperation-domain) | `entity_type` |
| Delete operation {id} cannot be found | `FUNCTIONAL_ERROR` | `processDeleteOperation` (modules/deleteOperation/deleteOperation-domain) |  |

## modules/disseminationList {#modules-disseminationlist}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Cannot download file for dissemination | `UNSUPPORTED_ERROR` | `sendDisseminationEmail` (modules/disseminationList/disseminationList-domain) | `cause`, `id` |
| Cant find base element of dissemination | `UNSUPPORTED_ERROR` | `sendToDisseminationList` (modules/disseminationList/disseminationList-domain) | `entity_id` |
| Dissemination list {id} cannot be found | `FUNCTIONAL_ERROR` | `fieldPatchDisseminationList` (modules/disseminationList/disseminationList-domain) |  |
| Emails are not correctly formatted | `UNSUPPORTED_ERROR` | `validationEmails` (modules/disseminationList/disseminationList-domain) |  |
| File cant be disseminate | `UNSUPPORTED_ERROR` | `sendDisseminationEmail` (modules/disseminationList/disseminationList-domain) | `id` |
| File not found in storage | `UNSUPPORTED_ERROR` | `sendDisseminationEmail` (modules/disseminationList/disseminationList-domain) | `id` |
| File type in the body must be {allowedTypesInBody} | `UNSUPPORTED_ERROR` | `sendDisseminationEmail` (modules/disseminationList/disseminationList-domain) | `id` |
| id is not of type DisseminationList | `FUNCTIONAL_ERROR` | `sendToDisseminationList` (modules/disseminationList/disseminationList-domain) | `id` |
| You cannot have more than 500 e-mail addresses | `UNSUPPORTED_ERROR` | `validationEmails` (modules/disseminationList/disseminationList-domain) |  |

## modules/draftWorkspace {#modules-draftworkspace}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Cannot delete draft while in draft context | `UNSUPPORTED_ERROR` | `deleteDraftWorkspace` (modules/draftWorkspace/draftWorkspace-domain) |  |
| Draft {draftId} cannot be found | `FUNCTIONAL_ERROR` | `checkAndReturnDraft` (modules/draftWorkspace/draftWorkspace-domain) |  |
| Draft workspace cannot be validated in this state | `FUNCTIONAL_ERROR` | `validateDraftWorkspace` (modules/draftWorkspace/draftWorkspace-domain) | `draftId`, `status` |
| Too many IDs to resolve (max 100) | `FUNCTIONAL_ERROR` | `resolveIdRepresentatives` (modules/draftWorkspace/draftWorkspace-domain) | `count` |

## modules/emailTemplate {#modules-emailtemplate}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Email template {emailTemplateId} cannot be found | `FUNCTIONAL_ERROR` | `fieldPatchEmailTemplate` (modules/emailTemplate/emailTemplate-domain) |  |

## modules/entitySetting {#modules-entitysetting}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Each tick value must be between min and max value | `VALIDATION_ERROR` | `scaleValidation` (modules/entitySetting/entitySetting-validators) | `field` |
| It should have at least one member with admin access | `FUNCTIONAL_ERROR` | `entitySettingEditField` (modules/entitySetting/entitySetting-domain) |  |
| The max value cannot be lower than min value | `VALIDATION_ERROR` | `scaleValidation` (modules/entitySetting/entitySetting-validators) | `field` |
| The max value must be between 0 and 100 | `VALIDATION_ERROR` | `scaleValidation` (modules/entitySetting/entitySetting-validators) | `field` |
| The min value cannot be greater than max value | `VALIDATION_ERROR` | `scaleValidation` (modules/entitySetting/entitySetting-validators) | `field` |
| The min value must be between 0 and 100 | `VALIDATION_ERROR` | `scaleValidation` (modules/entitySetting/entitySetting-validators) | `field` |
| This attribute is not customizable for this entity | `VALIDATION_ERROR` | `attributesConfigurationValidation` (modules/entitySetting/entitySetting-validators) | `entityType`, `field` |
| This attribute is not scalable for this entity | `VALIDATION_ERROR` | `attributesConfigurationValidation` (modules/entitySetting/entitySetting-validators) | `entityType`, `field` |
| This entity type is not support for entity settings | `UNSUPPORTED_ERROR` | `getAvailableSettings` (modules/entitySetting/entitySetting-utils) | `target_type` |
| This field is not supported to declare a default value. You can only activate/deactivate the possibility to have a default value. | `VALIDATION_ERROR` | `attributesConfigurationValidation` (modules/entitySetting/entitySetting-validators) | `entityType`, `field` |
| This setting is not available for this entity | `UNSUPPORTED_ERROR` | `optionsValidation` (modules/entitySetting/entitySetting-validators), `validateSetting` (modules/entitySetting/entitySetting-validators) | `entity`, `setting` |

## modules/exclusionList {#modules-exclusionlist}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Exclusion list {id} cannot be found | `FUNCTIONAL_ERROR` | `fieldPatchExclusionList` (modules/exclusionList/exclusionList-domain) |  |
| Exclusion list file format must be text/plain | `UNSUPPORTED_ERROR` | `uploadExclusionListFile` (modules/exclusionList/exclusionList-domain) | `mimeType` |
| Exclusion list file too large | `FUNCTIONAL_ERROR` | `checkFileSize` (modules/exclusionList/exclusionList-domain) | `maxFileSize` |

## modules/fintelDesign {#modules-finteldesign}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Fintel design {id} cannot be found | `FUNCTIONAL_ERROR` | `fintelDesignEditField` (modules/fintelDesign/fintelDesign-domain) |  |
| Fintel design logo file format must be image/ | `UNSUPPORTED_ERROR` | `uploadFintelDesignFile` (modules/fintelDesign/fintelDesign-domain) | `mimeType` |

## modules/fintelTemplate {#modules-finteltemplate}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Attributes should all have a variable name | `FUNCTIONAL_ERROR` | `checkFintelTemplateWidgetsValidity` (modules/fintelTemplate/fintelTemplate-domain) | `variableNameOfTheWidget` |
| Invalid version of the platform. Please upgrade your OpenCTI. Minimal version required: 6.5.0 | `FUNCTIONAL_ERROR` | `fintelTemplateConfigurationImport` (modules/fintelTemplate/fintelTemplate-domain) | `reason` |
| Variable names should not contain spaces or special chars (except - and \_) | `FUNCTIONAL_ERROR` | `checkFintelTemplateWidgetsValidity` (modules/fintelTemplate/fintelTemplate-domain) | `invalidVariableNames` |

## modules/form {#modules-form}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| A form with the name "{name}" already exists for entity type "{mainEntityType}" | `FUNCTIONAL_ERROR` | `addForm` (modules/form/form-domain) |  |
| Cannot read values | `FUNCTIONAL_ERROR` | `formSubmit` (modules/form/form-domain) | `error` |
| Failed to process form submission | `FUNCTIONAL_ERROR` | `formSubmit` (modules/form/form-domain) | `cause` |
| Form not found | `FUNCTIONAL_ERROR` | `formSubmit` (modules/form/form-domain) | `id` |
| Invalid form schema: {stringify} | `FUNCTIONAL_ERROR` | `addForm` (modules/form/form-domain), `formEditField` (modules/form/form-domain) |  |
| Invalid import file type | `FUNCTIONAL_ERROR` | `importFormConfiguration` (modules/form/form-domain) | `expected`, `received` |
| Invalid JSON in form_schema: {error} | `FUNCTIONAL_ERROR` | `addForm` (modules/form/form-domain), `formEditField` (modules/form/form-domain) |  |
| Main entity observable is not correctly formatted | `FUNCTIONAL_ERROR` | `buildMainStixEntities` (modules/form/form-bundle-builder) | `doc_code: INCORRECT_OBSERVABLE_FORMAT`, `input`, `type` |
| Observable {label} is not correctly formatted | `FUNCTIONAL_ERROR` | `buildAdditionalEntities` (modules/form/form-bundle-builder) | `doc_code: INCORRECT_OBSERVABLE_FORMAT`, `input`, `type` |

## modules/indicator {#modules-indicator}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Cannot edit the field, Indicator cannot be found. | `FUNCTIONAL_ERROR` | `indicatorEditField` (modules/indicator/indicator-domain) | `id` |
| Indicator of type {patternType} is contained in exclusion list. | `FUNCTIONAL_ERROR` | `validateIndicatorPattern` (modules/indicator/indicator-domain) | `doc_code: INDICATOR_PATTERN_EXCLUDED`, `excludedValue`, `exclusionList` |
| Indicator of type {patternType} is not correctly formatted. | `FUNCTIONAL_ERROR` | `validateIndicatorPattern` (modules/indicator/indicator-domain) | `doc_code: INCORRECT_INDICATOR_FORMAT` |
| Observable type {observableType} is not supported. | `FUNCTIONAL_ERROR` | `addIndicator` (modules/indicator/indicator-domain) |  |
| The valid until date must be greater than the valid from date | `VALIDATION_ERROR` | `indicatorEditField` (modules/indicator/indicator-domain), `computeValidUntil` (modules/indicator/indicator-utils) | `field`, `field: valid_until`, `input`, `valid_from`, `valid_until` |

## modules/ingestion {#modules-ingestion}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Certificate, CA and Key cannot have : character. | `FUNCTIONAL_ERROR` | `verifyIngestionAuthenticationContent` (modules/ingestion/ingestion-common) | `authenticationType` |
| Invalid JSON feed configuration: missing embedded JSON mapper | `FUNCTIONAL_ERROR` | `jsonFeedAddInputFromImport` (modules/ingestion/ingestion-json-domain) |  |
| Invalid version of the platform. Please upgrade your OpenCTI. Minimal version required: 6.9.4 | `FUNCTIONAL_ERROR` | `taxiiFeedAddInputFromImport` (modules/ingestion/ingestion-taxii-domain) | `reason` |
| Invalid version of the platform. Please upgrade your OpenCTI. Minimal version required: 7.260309.0 | `FUNCTIONAL_ERROR` | `rssFeedAddInputFromImport` (modules/ingestion/ingestion-rss-domain) | `reason` |
| Invalid version of the platform. Please upgrade your OpenCTI. Minimal version required: 7.260722.0 | `FUNCTIONAL_ERROR` | `jsonFeedAddInputFromImport` (modules/ingestion/ingestion-json-domain), `taxiiCollectionAddInputFromImport` (modules/ingestion/ingestion-taxii-collection-domain) | `reason` |
| Username and password cannot have : character. | `FUNCTIONAL_ERROR` | `verifyIngestionAuthenticationContent` (modules/ingestion/ingestion-common) | `authenticationType` |

## modules/internal {#modules-internal}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Attribute can't be multiple | `FUNCTIONAL_ERROR` | `validateCsvMapper` (modules/internal/csvMapper/csvMapper-utils), `validateJsonMapper` (modules/internal/jsonMapper/jsonMapper-utils) | `attribute`, `representation` |
| Can't reference the representation itself | `FUNCTIONAL_ERROR` | `validateCsvMapper` (modules/internal/csvMapper/csvMapper-utils), `validateJsonMapper` (modules/internal/jsonMapper/jsonMapper-utils) | `attribute`, `representation` |
| Cannot delete this CSV Mapper: it is used by one or more IngestionCsv feed(s) | `FUNCTIONAL_ERROR` | `deleteCsvMapper` (modules/internal/csvMapper/csvMapper-domain) | `id` |
| Cannot delete this JSON Mapper: it is used by one or more IngestionJson ingester(s) | `FUNCTIONAL_ERROR` | `deleteJsonMapper` (modules/internal/jsonMapper/jsonMapper-domain) | `id` |
| Could not parse CSV mapper: representations is not a valid JSON | `FUNCTIONAL_ERROR` | `parseCsvMapper` (modules/internal/csvMapper/csvMapper-utils) | `error`, `name` |
| Could not parse JSON mapper: representations is not a valid JSON | `FUNCTIONAL_ERROR` | `parseJsonMapper` (modules/internal/jsonMapper/jsonMapper-utils) | `error`, `name` |
| CSV Mapper has no representation | `FUNCTIONAL_ERROR` | `validateCsvMapper` (modules/internal/csvMapper/csvMapper-utils) | `mapper_name` |
| CSV mapper representations is not an array of CsvMapperRepresentation objects | `FUNCTIONAL_ERROR` | `validateCsvMapper` (modules/internal/csvMapper/csvMapper-utils) | `mapper_name` |
| JSON Mapper has no representation | `FUNCTIONAL_ERROR` | `validateJsonMapper` (modules/internal/jsonMapper/jsonMapper-utils) | `mapper_name` |
| JSON mapper representations is not an array of JsonMapperRepresentation objects | `FUNCTIONAL_ERROR` | `validateJsonMapper` (modules/internal/jsonMapper/jsonMapper-utils) | `mapper_name` |
| Missing entity path mapping | `FUNCTIONAL_ERROR` | `isValidJsonRepresentationType` (modules/internal/jsonMapper/jsonMapper-utils) |  |
| Missing values for required attribute | `FUNCTIONAL_ERROR` | `validateCsvMapper` (modules/internal/csvMapper/csvMapper-utils), `validateJsonMapper` (modules/internal/jsonMapper/jsonMapper-utils) | `attribute`, `representation` |
| Reference cycle found | `FUNCTIONAL_ERROR` | `validateCsvMapper` (modules/internal/csvMapper/csvMapper-utils), `validateJsonMapper` (modules/internal/jsonMapper/jsonMapper-utils) | `representation` |
| Unknown entity | `FUNCTIONAL_ERROR` | `isCsvValidRepresentationType` (modules/internal/csvMapper/csvMapper-utils), `isValidJsonRepresentationType` (modules/internal/jsonMapper/jsonMapper-utils) | `type` |
| Unknown relationship | `FUNCTIONAL_ERROR` | `isCsvValidRepresentationType` (modules/internal/csvMapper/csvMapper-utils), `isValidJsonRepresentationType` (modules/internal/jsonMapper/jsonMapper-utils) | `type` |
| Unknown representation type | `FUNCTIONAL_ERROR` | `isCsvValidRepresentationType` (modules/internal/csvMapper/csvMapper-utils), `isValidJsonRepresentationType` (modules/internal/jsonMapper/jsonMapper-utils) | `type` |

## modules/metrics {#modules-metrics}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Several metric per entity is not supported yet | `UNSUPPORTED_ERROR` | `loadEntityMetricsConfiguration` (modules/metrics/metrics-utils) | `metricsEntity` |

## modules/notification {#modules-notification}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Attribute "trigger_events" of a live trigger should have at least one event | `UNSUPPORTED_ERROR` | `addTrigger` (modules/notification/notification-domain), `triggerEdit` (modules/notification/notification-domain) |  |
| Cannot add a activity trigger without recipients | `UNSUPPORTED_ERROR` | `addTriggerActivity` (modules/notification/notification-domain) |  |
| Cannot add a recipient with type {type} | `UNSUPPORTED_ERROR` | `addTrigger` (modules/notification/notification-domain) |  |
| Cannot create {type} trigger for more than one recipient | `UNSUPPORTED_ERROR` | `extractUniqRecipient` (modules/notification/notification-domain) |  |

## modules/notifier {#modules-notifier}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Invalid notifier connector | `UNSUPPORTED_ERROR` | `validateNotifier` (modules/notifier/notifier-domain) | `id` |
| This configuration is invalid | `UNSUPPORTED_ERROR` | `validateNotifier` (modules/notifier/notifier-domain) | `configuration`, `errors` |

## modules/organization {#modules-organization}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Organization not found | `FUNCTIONAL_ERROR` | `organizationAdminAdd` (modules/organization/organization-domain), `organizationAdminRemove` (modules/organization/organization-domain) | `organizationId` |
| User is not part of the organization | `FUNCTIONAL_ERROR` | `organizationAdminAdd` (modules/organization/organization-domain), `organizationAdminRemove` (modules/organization/organization-domain) | `org`, `user` |

## modules/pir {#modules-pir}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Error while updating the PIR, invalid or forbidden key. | `FUNCTIONAL_ERROR` | `updatePir` (modules/pir/pir-domain) | `pirId` |
| Find more than one relation between an entity and a Pir | `FUNCTIONAL_ERROR` | `updatePirExplanations` (modules/pir/pir-utils) | `inPirRels`, `pirId`, `sourceId` |
| No PIR found | `FUNCTIONAL_ERROR` | `getPirWithAccessCheck` (modules/pir/pir-checkPirAccess) | `pirId` |
| No Pir ID provided | `FUNCTIONAL_ERROR` | `getPirWithAccessCheck` (modules/pir/pir-checkPirAccess) |  |
| Relation between the entity and a Pir not found | `FUNCTIONAL_ERROR` | `updatePirExplanations` (modules/pir/pir-utils) | `inPirRels`, `pirId`, `sourceId` |
| Unauthorized Pir access | `FUNCTIONAL_ERROR` | `getPirWithAccessCheck` (modules/pir/pir-checkPirAccess) | `user` |
| You should provide a Pir ID since in-pir relationships can only be fetch for a given PIR. | `FUNCTIONAL_ERROR` | `findPirRelationPaginated` (modules/pir/pir-domain) | `pirId` |
| You should provide exactly a Pir ID since in-pir relationships distribution can only be fetch for a given PIR. | `FUNCTIONAL_ERROR` | `pirRelationshipsDistribution` (modules/pir/pir-domain) | `pirId` |

## modules/playbook {#modules-playbook}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Invalid import type, must be playbook | `FUNCTIONAL_ERROR` | `playbookImport` (modules/playbook/playbook-domain) | `type` |
| Invalid version of the platform. Please upgrade your OpenCTI. Minimal version required: 6.7.14 | `FUNCTIONAL_ERROR` | `playbookImport` (modules/playbook/playbook-domain) | `reason` |
| Old component not found | `UNSUPPORTED_ERROR` | `playbookReplaceNode` (modules/playbook/playbook-domain) |  |
| Playbook base element no longer accessible | `FUNCTIONAL_ERROR` | `extractBundleBaseElement` (modules/playbook/playbook-utils) |  |
| Playbook link duplication is not possible | `UNSUPPORTED_ERROR` | `playbookAddLink` (modules/playbook/playbook-domain) |  |
| Playbook link invalid from configuration | `UNSUPPORTED_ERROR` | `playbookAddLink` (modules/playbook/playbook-domain) |  |
| Playbook link node from not found | `UNSUPPORTED_ERROR` | `playbookAddLink` (modules/playbook/playbook-domain) | `id` |
| Playbook multiple entrypoint is not supported | `UNSUPPORTED_ERROR` | `playbookAddNode` (modules/playbook/playbook-domain), `playbookInsertNode` (modules/playbook/playbook-domain), `playbookReplaceNode` (modules/playbook/playbook-domain) | `input` |
| Playbook related component not found | `UNSUPPORTED_ERROR` | `playbookAddNode` (modules/playbook/playbook-domain), `playbookInsertNode` (modules/playbook/playbook-domain), `playbookReplaceNode` (modules/playbook/playbook-domain) | `id`, `input` |
| The "run as" user must be yourself or a service account | `FORBIDDEN_ACCESS` | `assertRunAsUserAllowed` (modules/playbook/components/ai-agent-shared) | `runAsUserId` |
| this container type is incompatible with the Container Wrapper playbook component | `FUNCTIONAL_ERROR` | `executor` (modules/playbook/components/container-wrapper-component) | `container_type` |

## modules/publicDashboard {#modules-publicdashboard}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Cannot find dashboard | `FUNCTIONAL_ERROR` | `addPublicDashboard` (modules/publicDashboard/publicDashboard-domain) | `id` |
| Cannot publish an empty dashboard | `FUNCTIONAL_ERROR` | `addPublicDashboard` (modules/publicDashboard/publicDashboard-domain) | `id` |
| Cannot publish this dashboard, uri key {uriKey} already used. | `FUNCTIONAL_ERROR` | `addPublicDashboard` (modules/publicDashboard/publicDashboard-domain) |  |
| Dashboard not enabled | `UNSUPPORTED_ERROR` | `getWidgetArguments` (modules/publicDashboard/publicDashboard-utils) | `uriKey` |
| Dashboard not found | `UNSUPPORTED_ERROR` | `getWidgetArguments` (modules/publicDashboard/publicDashboard-utils) | `uriKey` |
| No public dashboard found | `FUNCTIONAL_ERROR` | `checkUserIsAdminOnDashboard` (modules/publicDashboard/publicDashboard-utils) | `id` |
| Not allowed markings | `UNSUPPORTED_ERROR` | `addPublicDashboard` (modules/publicDashboard/publicDashboard-domain) |  |
| User not found | `UNSUPPORTED_ERROR` | `getWidgetArguments` (modules/publicDashboard/publicDashboard-utils) | `user_id` |

## modules/requestAccess {#modules-requestaccess}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Element is not sharable at the moment (restricted) | `UNSUPPORTED_ERROR` | `approveRequestAccess` (modules/requestAccess/requestAccess-domain) | `targetInstanceToShare` |
| Element not found for Access Request | `VALIDATION_ERROR` | `addRequestAccess` (modules/requestAccess/requestAccess-domain) | `field: request_access_members` |
| Organization not found for Access Request | `VALIDATION_ERROR` | `addRequestAccess` (modules/requestAccess/requestAccess-domain) | `field: request_access_entities` |
| Request access cannot be created because no approval admin is configured. | `FUNCTIONAL_ERROR` | `computeAuthorizedMembersForRequestAccess` (modules/requestAccess/requestAccess-domain) |  |
| Request access feature is missing configuration: {message} | `FUNCTIONAL_ERROR` | `checkRequestAccessEnabled` (modules/requestAccess/requestAccess-domain) | `doc_code: REQUEST_ACCESS_CONFIGURATION`, `message` |
| Request access is not available in draft mode | `VALIDATION_ERROR` | `checkRequestAccessEnabled` (modules/requestAccess/requestAccess-domain) |  |
| This entity is restricted with authorized member and cannot be requested for sharing. | `FUNCTIONAL_ERROR` | `computeAuthorizedMembersForRequestAccess` (modules/requestAccess/requestAccess-domain) | `id` |
| This RFI is not compatible | `UNSUPPORTED_ERROR` | `checkRequestActionAndGetWorkflow` (modules/requestAccess/requestAccess-domain) | `id` |
| This RFI is not correctly configured | `UNSUPPORTED_ERROR` | `checkRequestActionAndGetWorkflow` (modules/requestAccess/requestAccess-domain) | `id` |
| You cant share the requested element (restrictions or markings) | `UNSUPPORTED_ERROR` | `approveRequestAccess` (modules/requestAccess/requestAccess-domain) | `targetInstanceToShare` |
| You need to be able to edit the RFI and share knowledge | `UNSUPPORTED_ERROR` | `approveRequestAccess` (modules/requestAccess/requestAccess-domain) | `id` |

## modules/retentionRules {#modules-retentionrules}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Retention rule must have valid filters | `UNSUPPORTED_ERROR` | `createRetentionRule` (modules/retentionRules/retentionRules-domain) |  |

## modules/savedFilter {#modules-savedfilter}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| No input given for field patch | `FUNCTIONAL_ERROR` | `fieldPatchSavedFilter` (modules/savedFilter/savedFilter-domain) | `input` |
| Saved filter cannot be found | `FUNCTIONAL_ERROR` | `fieldPatchSavedFilter` (modules/savedFilter/savedFilter-domain) | `id` |
| You do not have the permission to delete this saved filter | `FORBIDDEN_ACCESS` | `deleteSavedFilter` (modules/savedFilter/savedFilter-domain) |  |
| You do not have the permission to update this saved filter | `FORBIDDEN_ACCESS` | `fieldPatchSavedFilter` (modules/savedFilter/savedFilter-domain) |  |

## modules/smtpConfiguration {#modules-smtpconfiguration}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| oauth_client_id, oauth_client_secret and oauth_issuer are required for OAuth2 authentication | `FUNCTIONAL_ERROR` | `validateSmtpConfigurationInput` (modules/smtpConfiguration/smtpConfiguration-domain) |  |
| Port 25 is not allowed for SMTP configuration | `FUNCTIONAL_ERROR` | `validateSmtpConfigurationInput` (modules/smtpConfiguration/smtpConfiguration-domain) |  |
| SMTP configuration is enforced by the backend configuration | `FORBIDDEN_ACCESS` | `smtpConfigurationDelete` (modules/smtpConfiguration/smtpConfiguration-domain), `smtpConfigurationEdit` (modules/smtpConfiguration/smtpConfiguration-domain) |  |
| username and password are required for basic authentication | `FUNCTIONAL_ERROR` | `validateSmtpConfigurationInput` (modules/smtpConfiguration/smtpConfiguration-domain) |  |

## modules/theme {#modules-theme}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Invalid theme file | `FUNCTIONAL_ERROR` | `themeImport` (modules/theme/theme-domain) |  |
| System default themes cannot be deleted | `FUNCTIONAL_ERROR` | `deleteTheme` (modules/theme/theme-domain) |  |
| Theme {themeId} cannot be found | `FUNCTIONAL_ERROR` | `deleteTheme` (modules/theme/theme-domain), `fieldPatchTheme` (modules/theme/theme-domain) |  |
| Theme name already exists | `FUNCTIONAL_ERROR` | `addTheme` (modules/theme/theme-domain), `themeImport` (modules/theme/theme-domain) |  |

## modules/user {#modules-user}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| The confidence_level should be an integer between 0 and 100 | `VALIDATION_ERROR` | `createOnTheFlyUser` (modules/user/user-domain) | `field: confidence_level` |
| This service account already exists. Change the instance name to change the automatically created service account name | `FUNCTIONAL_ERROR` | `createOnTheFlyUser` (modules/user/user-domain) | `name` |
| This user already exists. Change the feed's name to change the automatically created user's name | `FUNCTIONAL_ERROR` | `createOnTheFlyUser` (modules/user/user-domain) | `name` |
| Token not found | `FUNCTIONAL_ERROR` | `revokeToken` (modules/user/user-domain) | `tokenId` |
| User not found | `FUNCTIONAL_ERROR` | `addUserTokenByAdmin` (modules/user/user-domain), `revokeUserTokenByAdmin` (modules/user/user-domain) | `targetUserId`, `userId` |
| You have not defined a default group for ingestion users | `FUNCTIONAL_ERROR` | `createOnTheFlyUser` (modules/user/user-domain) |  |

## modules/vocabulary {#modules-vocabulary}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Cant find category for vocabulary {name} | `UNSUPPORTED_ERROR` | `getVocabularyUsages` (modules/vocabulary/vocabulary-domain) |  |
| You can't have multiple category on the same field for the same entity type | `UNSUPPORTED_ERROR` | `getVocabularyCategoryForField` (modules/vocabulary/vocabulary-utils) | `entityType`, `fieldName` |

## modules/workflow {#modules-workflow}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Action type '{type}' is not allowed in asyncActions (must support 'async' mode) in transition {event} | `VALIDATION_ERROR` | `validateWorkflowDefinitionData` (modules/workflow/workflow-validation) |  |
| Action type '{type}' is not allowed in syncActions (must support 'sync' mode) in transition {event} | `VALIDATION_ERROR` | `validateWorkflowDefinitionData` (modules/workflow/workflow-validation) |  |
| all_versions must be an array | `FUNCTIONAL_ERROR` | `validateVersionConsistency` (modules/workflow/domain/workflow-domain) |  |
| Cannot publish workflow with validation errors | `FUNCTIONAL_ERROR` | `publishWorkflowDefinition` (modules/workflow/domain/workflow-domain) | `entityType`, `errorCount` |
| Cannot publish workflow: the following statuses are in use and cannot be removed. Move all items out of those statuses first. | `FUNCTIONAL_ERROR` | `publishWorkflowDefinition` (modules/workflow/domain/workflow-domain) | `entityType`, `removedStates` |
| Consistency error: Cannot publish draft_version that is not in all_versions | `FUNCTIONAL_ERROR` | `publishWorkflowDefinition` (modules/workflow/domain/workflow-domain) | `draftVersionId` |
| Consistency error: draft_version not found in all_versions | `FUNCTIONAL_ERROR` | `validateVersionConsistency` (modules/workflow/domain/workflow-domain) | `draftVersionId` |
| Consistency error: published_version not found in all_versions | `FUNCTIONAL_ERROR` | `validateVersionConsistency` (modules/workflow/domain/workflow-domain) | `publishedVersionId` |
| Entity not found | `FUNCTIONAL_ERROR` | `clearWorkflowPendingState` (modules/workflow/domain/workflow-domain), `triggerWorkflowEvent` (modules/workflow/domain/workflow-domain) | `entityId` |
| Entity setting not found for type | `FUNCTIONAL_ERROR` | `publishWorkflowDefinition` (modules/workflow/domain/workflow-domain), `restorePublishedWorkflowDefinition` (modules/workflow/domain/workflow-domain), `setWorkflowDefinition` (modules/workflow/domain/workflow-domain) | `entityType` |
| Invalid params for action '{type}' in {source} | `VALIDATION_ERROR` | `validateAction` (modules/workflow/workflow-validation) | `errors` |
| Invalid workflow definition JSON | `FUNCTIONAL_ERROR` | `setWorkflowDefinition` (modules/workflow/domain/workflow-domain) |  |
| No draft version to publish | `FUNCTIONAL_ERROR` | `publishWorkflowDefinition` (modules/workflow/domain/workflow-domain) | `entityType` |
| No published version to restore | `FUNCTIONAL_ERROR` | `restorePublishedWorkflowDefinition` (modules/workflow/domain/workflow-domain) | `entityType` |
| No workflow definition found | `FUNCTIONAL_ERROR` | `restorePublishedWorkflowDefinition` (modules/workflow/domain/workflow-domain) | `entityType` |
| No workflow definition to publish | `FUNCTIONAL_ERROR` | `publishWorkflowDefinition` (modules/workflow/domain/workflow-domain) | `entityType` |
| No workflow instance found for entity | `FUNCTIONAL_ERROR` | `clearWorkflowPendingState` (modules/workflow/domain/workflow-domain) | `entityId` |
| Side effect (action) type '{type}' doesn't exist | `VALIDATION_ERROR` | `validateAction` (modules/workflow/workflow-validation), `validateWorkflowDefinitionData` (modules/workflow/workflow-validation) |  |
| Workflow definition not found | `FUNCTIONAL_ERROR` | `publishWorkflowDefinition` (modules/workflow/domain/workflow-domain), `restorePublishedWorkflowDefinition` (modules/workflow/domain/workflow-domain) | `workflowId` |

## modules/workspace {#modules-workspace}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Invalid ids specified | `FUNCTIONAL_ERROR` | `checkInvestigatedEntitiesInputs` (modules/workspace/workspace-domain) | `ids` |
| WORKSPACE_EXPORT_INCOMPATIBLE_TYPE | `FUNCTIONAL_ERROR` | `generateWidgetExportConfiguration` (modules/workspace/workspace-domain), `generateWorkspaceExportConfiguration` (modules/workspace/workspace-domain) | `type` |
| You can only export investigation objects as a stix report bundle. | `FUNCTIONAL_ERROR` | `toStixReportBundle` (modules/workspace/investigation-domain) |  |

## parser {#parser}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| Only one value expected as attribute definition is not multiple | `UNSUPPORTED_ERROR` | `format` (parser/json-mapper) | `value` |
| Too many entities found for the mapping | `UNSUPPORTED_ERROR` | `handleBasedOnAttribute` (parser/json-mapper) |  |
| Unknown column name | `UNSUPPORTED_ERROR` | `extractValueFromCsv` (parser/csv-helper) | `name` |
| Unknown schema for attribute: | `UNSUPPORTED_ERROR` | `handleAttributes` (parser/csv-mapper), `jsonMappingExecution` (parser/json-mapper) | `attribute` |
| Unknown value(s) | `UNSUPPORTED_ERROR` | `handleBasedOnAttribute` (parser/csv-mapper) | `key` |

## resolvers {#resolvers}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| No ref of this type is defined for this entity type in DB schema | `FUNCTIONAL_ERROR` | `internalLoadThroughDenormalized` (resolvers/stix) | `entity_type`, `inputName` |

## schema {#schema}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| {type} is not supported by the platform | `UNSUPPORTED_ERROR` | `generateStandardId` (schema/identifier) |  |
| Attribute cannot be multiple | `VALIDATION_ERROR` | `validateAndFormatSchemaAttribute` (schema/schema-validator) | `field`, `input` |
| Attribute must be a boolean/string | `VALIDATION_ERROR` | `validateAndFormatSchemaAttribute` (schema/schema-validator) | `field`, `input` |
| Attribute must be a numeric/string | `VALIDATION_ERROR` | `validateAndFormatSchemaAttribute` (schema/schema-validator) | `field`, `input` |
| Attribute must be a string | `VALIDATION_ERROR` | `validateAndFormatSchemaAttribute` (schema/schema-validator) | `field`, `input` |
| Cannot validate an empty or invalid input | `UNSUPPORTED_ERROR` | `validateFormatSchemaAttributesFn` (schema/schema-validator), `validateInputUpdateFn` (schema/schema-validator) | `input` |
| Cant generate alias without entity type  | `UNSUPPORTED_ERROR` | `generateAliasesId` (schema/identifier) | `instance` |
| Direct using of from definition is not permitted | `FUNCTIONAL_ERROR` | `isRefExistingForTypes` (schema/stixRefRelationship) | `fromType`, `toType` |
| Direct using of to definition is not permitted | `FUNCTIONAL_ERROR` | `isRefExistingForTypes` (schema/stixRefRelationship) | `fromType`, `toType` |
| Missing required elements for {type} creation ({missingKeys}) | `FUNCTIONAL_ERROR` | `idGen` (schema/identifier) | `properties` |
| The input is not valid | `UNSUPPORTED_ERROR` | `validateInputCreationFn` (schema/schema-validator), `validateInputUpdateFn` (schema/schema-validator) | `input`, `inputs` |
| The JSON schema is not valid | `VALIDATION_ERROR` | `validateAndFormatSchemaAttribute` (schema/schema-validator) | `errors`, `field` |
| Type {type} has not available resolution | `UNSUPPORTED_ERROR` | `resolveContribution` (schema/identifier) |  |
| You cannot update incompatible attribute | `VALIDATION_ERROR` | `validateInputUpdateFn` (schema/schema-validator) | `field` |

## utils {#utils}

| Message | Error type | Raised by | Data attached |
| --- | --- | --- | --- |
| A filter with "within" operator must have 2 values | `UNSUPPORTED_ERROR` | `checkFilterGroupValuesSyntax` (utils/filtering/filtering-utils) | `filter` |
| A filter with these multiple keys is not supported | `UNSUPPORTED_ERROR` | `adaptFilterToComputedReliabilityFilterKey` (utils/filtering/filtering-completeSpecialFilterKeys), `adaptFilterToEntityTypeFilterKey` (utils/filtering/filtering-completeSpecialFilterKeys), `adaptFilterToFromOrToFilterKeys` (utils/filtering/filtering-completeSpecialFilterKeys) and 3 more | `keys` |
| A filter with these multiple keys is not supported : {arrayKeys} | `UNSUPPORTED_ERROR` | `adaptFilterToWorkflowFilterKey` (utils/filtering/filtering-completeSpecialFilterKeys) |  |
| A related relations filter with this key is not supported | `UNSUPPORTED_ERROR` | `adaptFilterToFromOrToFilterKeys` (utils/filtering/filtering-completeSpecialFilterKeys) | `key` |
| Activity Stream Event filtering can only be executed on a unique filter key | `UNSUPPORTED_ERROR` | `validateFilterForActivityEventMatch` (utils/filtering/filtering-activity-event/activity-event-filtering) | `key` |
| Activity Stream Event filtering is not compatible with the provided filter key | `UNSUPPORTED_ERROR` | `validateFilterForActivityEventMatch` (utils/filtering/filtering-activity-event/activity-event-filtering) | `availableFilters`, `key` |
| Cannot edit authorized members in draft | `UNSUPPORTED_ERROR` | `buildRestrictedMembers` (utils/authorizedMembers) |  |
| Cannot process non-finite input | `FUNCTIONAL_ERROR` | `cropNumber` (utils/math) |  |
| Custom field definition not found for filter key | `FUNCTIONAL_ERROR` | `adaptFilterToCustomFieldFilterKey` (utils/filtering/filtering-completeSpecialFilterKeys) | `filterKey` |
| Feature is disabled | `UNSUPPORTED_ERROR` | `enforceEnableFeatureFlag` (utils/access) | `flag` |
| Filter only support one user in parameter | `UNSUPPORTED_ERROR` | `testAuthorize` (utils/filtering/filtering-stix/stix-testers) | `filter` |
| Id or dynamic or relationship type are needed for this filtering key | `UNSUPPORTED_ERROR` | `adaptFilterToRegardingOfFilterKey` (utils/filtering/filtering-completeSpecialFilterKeys) | `key` |
| Incorrect filter keys containing invalid characters | `UNSUPPORTED_ERROR` | `checkFilterKeys` (utils/filtering/filtering-utils) | `keys` |
| Incorrect filter keys not existing in any schema definition | `UNSUPPORTED_ERROR` | `checkFilterKeys` (utils/filtering/filtering-utils) | `keys` |
| Incorrect filters format | `UNSUPPORTED_ERROR` | `checkFiltersFormat` (utils/filtering/filtering-utils) | `filter` |
| Invalid derivation path | `UNSUPPORTED_ERROR` | `deriveBytes` (utils/platformCrypto) | `derivationPath` |
| Invalid kid for decryption | `UNSUPPORTED_ERROR` | `decrypt` (utils/platformCrypto) | `expectedKid`, `receivedKid` |
| Invalid kid for signature verification | `UNSUPPORTED_ERROR` | `verify` (utils/platformCrypto) | `expectedKid`, `receivedKid` |
| Invalid operation | `UNSUPPORTED_ERROR` | `handleMarkingOperations` (utils/markingDefinition-utils) | `operation` |
| Invalid signature format | `UNSUPPORTED_ERROR` | `verify` (utils/platformCrypto) | `expectedMinimumLength`, `receivedLength` |
| It should have at least one valid member with admin access | `FUNCTIONAL_ERROR` | `buildRestrictedMembers` (utils/authorizedMembers) |  |
| JWT kid is unknown | `UNSUPPORTED_ERROR` | `getVerifyKey` (utils/platformCrypto) | `expectedKid`, `receivedKid` |
| Length must be positive | `UNSUPPORTED_ERROR` | `deriveBytes` (utils/platformCrypto) | `length` |
| Members types can only be User, Organization and Group | `FUNCTIONAL_ERROR` | `fetchMembersWithOrgaRestriction` (utils/access) | `entityTypes` |
| min cannot be greater than max | `FUNCTIONAL_ERROR` | `cropNumber` (utils/math) |  |
| Object attribute format is not filterable | `UNSUPPORTED_ERROR` | `completeSpecialFilterKeys` (utils/filtering/filtering-completeSpecialFilterKeys) | `format` |
| regardingOf filter only supports equality restriction | `UNSUPPORTED_ERROR` | `adaptFilterToRegardingOfFilterKey` (utils/filtering/filtering-completeSpecialFilterKeys) |  |
| regardingOf filter with inferred subfilter only supports eq operator | `UNSUPPORTED_ERROR` | `adaptFilterToRegardingOfFilterKey` (utils/filtering/filtering-completeSpecialFilterKeys) |  |
| Relationship type is needed for dynamic in regards of filtering | `UNSUPPORTED_ERROR` | `adaptFilterToRegardingOfFilterKey` (utils/filtering/filtering-completeSpecialFilterKeys) | `key`, `type` |
| Restricted to delete this element (not the technical creator) | `FUNCTIONAL_ERROR` | `controlUserRestrictDeleteAgainstElement` (utils/access) | `element_id`, `user_id` |
| Sorting on \[{orderCriteria}\] is not supported: this criteria does not have a sortBy definition in schema | `UNSUPPORTED_ERROR` | `buildElasticSortingForAttributeCriteria` (utils/sorting) |  |
| Specified ids not found or restricted | `RESOURCE_NOT_FOUND` | `adaptFilterToRegardingOfFilterKey` (utils/filtering/filtering-completeSpecialFilterKeys) |  |
| Stix filtering can only be executed on a unique filter key | `UNSUPPORTED_ERROR` | `checkFiltersKeysForStixMatch` (utils/filtering/filtering-stix/stix-filtering) | `key` |
| Stix filtering is not compatible with the provided filter key | `UNSUPPORTED_ERROR` | `checkFiltersKeysForStixMatch` (utils/filtering/filtering-stix/stix-filtering) | `availableFilters`, `key` |
| Stream origin filtering can only be executed on a unique filter key | `UNSUPPORTED_ERROR` | `validateFilterForStreamOriginMatch` (utils/filtering/filtering-stream-origin/stream-origin-filtering) | `key` |
| Stream origin filtering is not compatible with the provided filter key | `UNSUPPORTED_ERROR` | `validateFilterForStreamOriginMatch` (utils/filtering/filtering-stream-origin/stream-origin-filtering) | `availableFilters`, `key` |
| The key is not correct | `UNSUPPORTED_ERROR` | `adaptFilterToWorkflowFilterKey` (utils/filtering/filtering-completeSpecialFilterKeys) | `keys` |
| The operators supported for a filter with key=workflow_id is not supported. | `UNSUPPORTED_ERROR` | `adaptFilterToWorkflowFilterKey` (utils/filtering/filtering-completeSpecialFilterKeys) | `operator` |
| The provided filter key is not an array | `UNSUPPORTED_ERROR` | `validateFilterForActivityEventMatch` (utils/filtering/filtering-activity-event/activity-event-filtering), `checkFiltersKeysForStixMatch` (utils/filtering/filtering-stix/stix-filtering) | `key` |
| The relationship type {relationshipType} is not allowed between {fromType} and {toType} | `FUNCTIONAL_ERROR` | `checkRelationConsistencyFn` (utils/modelConsistency) |  |
| The relationship type {relationshipType} is not allowed with the {toType} {name} | `FUNCTIONAL_ERROR` | `checkRelationConsistencyFn` (utils/modelConsistency) |  |
| The score should be an integer between 0 and 100 | `VALIDATION_ERROR` | `checkScore` (utils/format) | `field: x_opencti_score` |
| The values for filter with "within" operator are not valid: you should provide a datetime or a valid relative date. | `UNSUPPORTED_ERROR` | `checkFilterGroupValuesSyntax` (utils/filtering/filtering-utils) | `filter` |
| This filter should be related to at least 1 Pir | `FUNCTIONAL_ERROR` | `adaptFilterToPirFilterKeys` (utils/filtering/filtering-completeSpecialFilterKeys) | `filter` |
| This operator is not supported for this filter key | `UNSUPPORTED_ERROR` | `adaptFilterToComputedReliabilityFilterKey` (utils/filtering/filtering-completeSpecialFilterKeys) | `keys`, `operator` |
| Too much ids specified | `UNSUPPORTED_ERROR` | `adaptFilterToRegardingOfFilterKey` (utils/filtering/filtering-completeSpecialFilterKeys) | `max`, `size` |
| Unrecognized filter format; expecting FilterGroup | `UNSUPPORTED_ERROR` | `validateFilterGroupForActivityEventMatch` (utils/filtering/filtering-activity-event/activity-event-filtering), `validateFilterGroupForStreamOriginMatch` (utils/filtering/filtering-stream-origin/stream-origin-filtering) |  |
| Unsupported encrypted data | `UNSUPPORTED_ERROR` | `decrypt` (utils/platformCrypto) | `expectedMinimumLength`, `receivedLength` |
| Unsupported encrypted data encoding version | `UNSUPPORTED_ERROR` | `decrypt` (utils/platformCrypto) | `expectedVersion`, `receivedVersion` |
| Unsupported filter: 'And' operator between values of a filter with key = 'ids' is not supported | `UNSUPPORTED_ERROR` | `adaptFilterToIdsFilterKey` (utils/filtering/filtering-completeSpecialFilterKeys) |  |
| Unsupported signature encoding version | `UNSUPPORTED_ERROR` | `verify` (utils/platformCrypto) | `expectedVersion`, `receivedVersion` |
| User effective max confidence level is insufficient to update this element | `FUNCTIONAL_ERROR` | `controlUserConfidenceAgainstElement` (utils/confidence-level) | `doc_code: INSUFFICIENT_CONFIDENCE_LEVEL`, `element_id`, `user_id` |
| User has insufficient rights to use upsertOperations | `FUNCTIONAL_ERROR` | `generateInputsForUpsert` (utils/upsert-utils) | `element_id`, `user_id` |
| User has no effective max confidence level and cannot create this element | `FUNCTIONAL_ERROR` | `controlCreateInputWithUserConfidence` (utils/confidence-level) | `user_id` |
| User has no effective max confidence level and cannot update this element | `FUNCTIONAL_ERROR` | `adaptUpdateInputsConfidence` (utils/confidence-level), `controlUserConfidenceAgainstElement` (utils/confidence-level) | `element_id`, `user_id` |
| User has no effective max confidence level and cannot upsert this element | `FUNCTIONAL_ERROR` | `controlUpsertInputWithUserConfidence` (utils/confidence-level) | `element_id`, `user_id` |
| User trying to create the data has missing markings | `FUNCTIONAL_ERROR` | `validateMarking` (utils/access) | `id`, `user_markings` |
| Version must be positive | `UNSUPPORTED_ERROR` | `deriveBytes` (utils/platformCrypto) | `version` |
| You are not allowed to use PIR filtering | `FORBIDDEN_ACCESS` | `adaptFilterToRegardingOfFilterKey` (utils/filtering/filtering-completeSpecialFilterKeys) |  |
| You can't grant access to everyone in an organization sharing context | `FUNCTIONAL_ERROR` | `buildRestrictedMembers` (utils/authorizedMembers) |  |
| You should provide a PIR ID to order by pir_score. | `FUNCTIONAL_ERROR` | `buildElasticSortingForAttributeCriteria` (utils/sorting) |  |
