---
title: "TranslationErrorCode"
description: "Translation error code"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/localizations/enums/translation-error-code'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/localizations/enums/translation-error-code.md'
---
# TranslationErrorCode

Translation error code

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Enum

## Type Signature

`TranslationErrorCode`

## Values

* `INVALID_MARKET_LOCALIZABLE_CONTENT`

  Market localizable content is invalid

* `MARKET_CUSTOM_CONTENT_NOT_ALLOWED`

  The shop isn't allowed to operate on market custom content

* `MARKET_LOCALE_CREATION_FAILED`

  The market override locale creation failed

* `RESOURCE_NOT_TRANSLATABLE`

  Resource is not translatable

* `INVALID_CODE`

  Locale language code is invalid

* `INVALID_KEY_FOR_MODEL`

  Translation key is invalid

* `INVALID_LOCALE_FOR_SHOP`

  Locale is invalid for the shop

* `INVALID`

  The input value is invalid

* `INVALID_FORMAT`

  Locale code format is invalid

* `TOO_MANY_KEYS_FOR_RESOURCE`

  Too many translation keys for the resource

* `RESOURCE_NOT_FOUND`

  Resource does not exist

* `RESOURCE_NOT_MARKET_CUSTOMIZABLE`

  The specified resource can't be customized for a market

* `BLANK`

  The input value is blank

* `FAILS_RESOURCE_VALIDATION`

  Translation value is invalid

* `INVALID_LOCALE_FOR_MARKET`

  The locale is missing on the market corresponding to the `marketId` argument

* `INVALID_TRANSLATABLE_CONTENT`

  Translatable content is invalid

* `INVALID_VALUE_FOR_HANDLE_TRANSLATION`

  The handle is already taken for this resource

* `MARKET_DOES_NOT_EXIST`

  The market corresponding to the `marketId` argument doesn't exist

## Schema Definition

```graphql
enum TranslationErrorCode { 
	INVALID_MARKET_LOCALIZABLE_CONTENT 
	MARKET_CUSTOM_CONTENT_NOT_ALLOWED 
	MARKET_LOCALE_CREATION_FAILED 
	RESOURCE_NOT_TRANSLATABLE 
	INVALID_CODE 
	INVALID_KEY_FOR_MODEL 
	INVALID_LOCALE_FOR_SHOP 
	INVALID 
	INVALID_FORMAT 
	TOO_MANY_KEYS_FOR_RESOURCE 
	RESOURCE_NOT_FOUND 
	RESOURCE_NOT_MARKET_CUSTOMIZABLE 
	BLANK 
	FAILS_RESOURCE_VALIDATION 
	INVALID_LOCALE_FOR_MARKET 
	INVALID_TRANSLATABLE_CONTENT 
	INVALID_VALUE_FOR_HANDLE_TRANSLATION 
	MARKET_DOES_NOT_EXIST  
}
```

## Field from

* [TranslationUserError](https://developer.shopline.com/docs/admin-graph-ql-api/localizations/objects/translation-user-error.md).code

  code

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

