Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageyml
titleExample error with HTTP status code 409.
{
    "httpStatusCode" : 409,
    "serviceErrorCode" : 2800,
    "time" : "2021-04-21T04:36:30.813",
    "message" : "A non-empty folder cannot be deleted.",
    "stackTrace" : [ "com.os.enaio.cloud.gateway.resource.api.DmsController.deleteDmsObject(DmsController.java:719)" ],
    "service" : "api",
    "tenant" : "default"
}

Error Lists during

...

Validation Processes

If errors occur during a schema one of the following validation process, they are collected and returned in a list validationErrors in JSON format. The

  • schema validation
  • role set validation
  • app set validation

Other validation processes return only single errors in the structure described above.

Within the JSON list validationErrors, the following parameters are provided for each error in the list:

...

The HTTP status code is always returned together with the validation errors list, but not extra included into the individual entries.

The following code block shows an example error structure that can occur during a schema validation:

Code Block
languageyml
titleExample error list with HTTP status code 422.
{
	"validationErrors": [
		{
			"message": "Ambiguous ids. There are 2 property type definitions with the id 'from'.",
			"serviceErrorCode": 2110
		},
		{
			"message": "Wrong base id. The base id of the system:document type definition 'email' must be 'system:document', but it is 'system:folder'.",
			"serviceErrorCode": 2131
		},
		{
			"message": "Invalid property reference 'fromm' in type definition 'email'.",
			"serviceErrorCode": 2132
		},
		{
			"message": "Invalid secondary object type reference 'appAcl:aclowner' in type definition 'email'.",
			"serviceErrorCode": 2135
		}
	]
}

...

serviceErrorCodehttpStatusCodemessageOccurs during

ODER:

Occurs during Schema ValidationOccurance
2100422The id '%s' is invalid. If the id has a prefix it is not allowed to start with 'ten' or 'app'.schema validationyes
2101422The id '%s' is invalid. If the id has a prefix it is expected to be '%s'.schema validationyes
2102422The id '%s' is invalid. The id of an object type is not allowed to start with '%s'.schema validationyes
2103422The id '%s' is invalid. The id of an property type is not allowed to start with '%s'.schema validationyes
2104422Too many property types. There are %s property types. Up to %s are allowed. This is a configurable boundary.schema validationyes
2105422There are references from the global schema to the schema of app '%s'. For tenant '%s' app '%s' is disabled.schema validationyes
2106422There are references from the schema of app '%s' to the schema of app '%s'. For tenant '%s' app '%s' is enabled and app '%s' is disabled.schema validationyes
2110422Ambiguous ids. There are %s %stype definitions with the id '%s'.schema validationyes
2111422Id missing. There is a %s definition without id.schema validationyes
2112422Invalid id. There is a %s with the invalid id '%s'. The id must match '%s'.schema validationyes
2113422Id too long. The maximum length for an id is %s without prefix. The length of '%s' is %s.schema validationyes
2120422Property type missing. The attribute 'propertyType' of the property type definition '%s' is missing.schema validationyes
2121422Wrong property type. The property type of the %s property type definition '%s' must be '%s',  but it is '%s'.schema validationyes
2122422Invalid attribute 'queryable' in the %s property type definition '%s'. The value 'false' is only supported for table property type definitions.schema validationyes
2123422Illegal minimum length of the property '%s'. The minimum length of a string property must not exceed %s.schema validationyes
2124422Illegal maximum length of the property '%s'. The maximum length of a string property must not exceed %s.schema validationyes
2125422Illegal cardinality of the property '%s'. The cardinality of a table property must not be 'multi'.schema validationyes
2126422Invalid number of column property definitions for property '%s'. The maximum number of columns in a table must not exceed %s. column count: '%s'schema validationyes
2127422Illegal cardinality of the property '%s'. The cardinality of a structured data property must not be 'multi'.schema validationyes
2130422Base id missing. The attribute 'baseId' of the type definition '%s' is missing.schema validationyes
2131422Wrong base id. The base id of the %s type definition '%s' must be '%s',  but it is '%s'.schema validationyes
2132422Invalid property reference '%s' in type definition '%s'.schema validationyes
2134422There are %s property references with the value '%s' in the definition of the object type '%s'.schema validation

yes

2135422Invalid secondary object type reference '%s' in type definition '%s'.schema validationyes
2136422Secondary object type '%s' in type definition '%s' can be referenced only once.schema validationyes
2140422The document type '%s' does not allow content and has a static reference to the secondary object type '%s' that requires content. It would not be possible to create instances of this document type.schema validation

yes

2141422The document type '%s' does not allow content and has a non-static reference to the secondary object type '%s' that requires content. This secondary object type could never be assigned to instances of this document type.schema validationyes
2142422The document type '%s' requires content and has a static reference to the secondary object type '%s' that does not allow content. It would not be possible to create instances of this document type.schema validationyes
2143422The document type '%s' requires content and has a non-static reference to the secondary object type '%s' that does not allow content. This secondary object type could never be assigned to instances of this document type.schema validationyes
2144422The document type '%s' has static references to the secondary object types that require content ('%s') and that do not allow content ('%s'). It would not be possible to create instances of this document type.schema validationyes
2145422The document type '%s' has static references to the secondary object types that require content ('%s') and non-static references to secondary object types that do not allow content ('%s'). These non-static secondary object types could never be assigned to instances of this document type.schema validationyes
2146422The document type '%s' has static references to the secondary object types that do not allow content ('%s') and non-static references to secondary object types that require content ('%s'). These non-static secondary object types could never be assigned to instances of this document type.schema validationyes
2150422The folder type '%s' has static references to secondary object types that require content ('%s'). It would not be possible to create instances of this folder type.schema validationyes
2151422The folder type '%s' has non-static references to secondary object types that require content ('%s'). These non-static secondary object types could never be assigned to instances of this folder type.schema validationyes
2152422The folder type '%s' has static references to secondary object types that allow content ('%s'). It would not be possible to create instances of this folder type.schema validationyes
2153422The folder type '%s' has non-static references to secondary object types that allow content ('%s'). These non-static secondary object types could never be assigned to instances of this folder type.schema validationyes
2200422Empty lists are not allowed. The property '%s' has an empty list as value.schema validationyes
2201422The cardinality of the property '%s' is 'multi',  but the value is no list: %s.schema validationyes
2202422The cardinality of the property '%s' is 'single',  but the value is a list: %s.schema validationyes
2203422Illegal number of values. The cardinality of the property '%s' is 'single',  but there are multiple values: %s.schema validationyes
2204422Null values are not allowed in lists. Property='%s'schema validationyes
2210422Illegal property value. The property '%s' is a boolean property and is unable to accept the value '%s'.schema validationyes
2211422Illegal property value. The property '%s' is a datetime property and is unable to accept the value '%s'.schema validationyes
2212422Illegal property value. The property '%s' is a decimal property and is unable to accept the value '%s'.schema validationyes
2213422Illegal property value. The property '%s' is an id property and is unable to accept the value '%s'.schema validationyes
2214422Illegal property value. The property '%s' is an integer property and is unable to accept the value '%s'.schema validationyes
2215422Illegal property value. The property '%s' is a string property and is unable to accept the value '%s'.schema validation

yes

2216422Malformed table. The property part 'columnNames' of the table property '%s' is expected to be a list of strings. ColumnNames: '%s'schema validationyes
2217422Malformed table. The value of the table property '%s' is expected to be a list. Table value: %sschema validationyes
2218422Malformed table. A row of the table '%s' is not a list. Row: '%s'schema validationyes
2219422Illegal property value. The value of the structured data property '%s' is expected to be a list or a map. Value: %sschema validationyes
2220422Invalid json. The value of the structured data property %s must be a valid json. Value = '%s'. Error message: %sschema validationyes
2240422Illegal property value. The property '%s' is a datetime property with resolution 'date' and is unable to accept the value '%s'.schema validation

yes

2250422The decimal value %s is not valid. The type '%s' permits no values smaller than %s.schema validationyes
2251422The decimal value %s is not valid. The type '%s' permits no values larger than %s.schema validationyes
2260422The integer value %s is not valid. The type '%s' permits no values smaller than %s.schema validation

yes

2261422The integer value %s is not valid. The type '%s' permits no values larger than %s.schema validationyes
2270422String value is too short. The type '%s' permits only strings with a length at least %s. The length of '%s' is %s.schema validationyes
2271422String value is too long. The type '%s' permits only strings with a length up to %s. The length of '%s' is %s.schema validationyes
2272422String value is too long. A string property permits only strings with a length up to %s. The property '%s' has a value of length %s: '%s'.schema validationyes
2280422Illegal column. A table of type '%s' cannot have a column named '%s'.schema validationyes
2281422Illegal column names. The column '%s' occures %s times.schema validation

yes

2282422Malformed table. The maximum number of rows in a table must not exceed %s. row count: '%s'schema validationyes
2283422Invalid row. The row of a table property '%s' is expected to contain exactly %s entries,  but the %s. row contains %s entries.schema validationyes
2290422Structure data value to large. The value of the property '%s' contains %s sub-values. Only up to %s are allowed.schema validationyes
2291422Structured data value to deep. The value of the property '%s' has a depth of %s. The maximum depth is %s.schema validationyes
2292422Invalid value of structure data property '%s'. Non-string key found: '%s'.schema validationyes
2293422Key too long. The length of the key '%s' in the value of the structured data property '%s' is %s. The maximum length is %s.schema validationyes
2294422Invalid key '%s' in the value of the structured data property '%s'. The key must match the regex '%s'.schema validationyes
2300422A required property is missing. propertyschema validation validationyes


Info
iconfalse

Read on

Section


Column
width25%

Schema - Defining Object Types

Insert excerpt
Schema - Defining Object Types
Schema - Defining Object Types
nopaneltrue
 Keep reading


Column
width25%

Apps

Insert excerpt
Apps
Apps
nopaneltrue
 Keep reading


Column
width25%

Tagging

Insert excerpt
Tagging
Tagging
nopaneltrue
 Keep reading



...