...
Page Properties |
---|
|
Product Version | 2021 Summer |
---|
Report Note |
|
---|
Assignee | Antje |
---|
Resources & Remarks Modification History Name | Date | Product Version | Action |
---|
Antje | 28/29 APR 2021 | 2021 Summer | Page created and filled with error codes for schema validation. | Agnieszka | 07 MAY 2021 | 2021 Summer | rLANG | Antje | 09 MAY 2022 | 2022 Summer | add authentication service error codes | Antje | 24 MAY 2022 | 2022 Summer | add audit service error codes |
|
Excerpt |
---|
Structure and identification codes of errors that can be thrown during different processes. |
...
Parameter | Description |
---|
httpStatusCode | Three-digit integer specifying the HTTP status code as a class of the response in which the error is returned. |
serviceErrorCode | Four-digit integer Integer specifying the concrete error type. |
time | Timestamp of the error occurance in format "yyyy-MM-ddTHH:mm:ss.SSS" . |
message | String message describing the concrete error. |
stackTrace | Origin of the error. As of 2021 Autumn, stackTrace is included in the error structure only if the parameter app.stacktrace is set to FULL for the service throwing the error. Possible values for app.stacktrace are FULL and NONE (default). If app.stacktrace is not set for a service or set to NONE , error structures thrown by this service do not contain the stackTrace . It is recommended to set app.stacktrace in a global configuration file (i.e., application-prod.yml ) such that the value applies to all services in order to unify their error structures. |
service | The name of the service that threw the error. |
tenant | The string tenant name where the error occured. |
innerError (as of 2022 Winter) | Wrapped original error thrown by a webhook (find details below). |
Code Block |
---|
language | yml |
---|
title | Example 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"
} |
...
Code Block |
---|
language | yml |
---|
title | Example 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
}
]
} |
Error Codes and Messages
The following table provides an overview of errors that may occur during operation of yuuvis® Momentum core.
Note: In case you want to catch errors and analyse their content, please use the serviceErrorCode
as unique identification of the error type. Please do NOT use the message
since we reserve to modify it in future.
...
Errors Thrown by Webhooks
If a webhook throws an error in the yuuvis® Momentum error format, its individual parameters are presented as JSON substructure. The serviceErrorCode
is 99999
. The HTTP status code used for the final response depends on the webhook type. Errors thrown by dms.request.objects.contents webhooks, e.g., have the final HTTP status code 404
.
>> Webhooks
Code Block |
---|
title | Example error with properly structured inner error. |
---|
|
{
"serviceErrorCode": 99999,
"service": "repository",
"messageHistory": "\nMessage History\n---------------------------------------------------------------------------------------------------------------------------------------\nRouteId ProcessorId Processor Elapsed (ms)\n[insertDocumentSetR] [insertDocumentSetR] [direct://insertDocumentSet ] [ 2456]\n[insertDocumentSetR] [[conan] enrich add] [bean[ref:analyzeConfigurationPr [...]",
"innerError": {
"httpStatusCode": 422,
"serviceErrorCode": 12345,
"time": "2022-11-22T14:57:41.7317312",
"message": "Virus [XXXX] detected. See inner error for further details.",
"service": "virus-detection-app",
"innerError": {
"httpStatusCode": 0,
"serviceErrorCode": 0,
"message": "The virus [XXX] was detected in the file [myvirus.exe]. This virus is part of SIV 1.14356.234 from 2022-03-13. See 'https://gprivate.com/61xd3'."
}
},
"time": "2022-11-22T14:57:41.735",
"stackTrace": [
"com.os.services.hel.repo.web.RepositoryRestController.postDmsObjects(RepositoryRestController.java:88)"
],
"message": "Virus [XXXX] detected. See inner error for further details.",
"tenant": "default",
"httpStatusCode": 422
} |
If the error thrown by the webhook does not match the yuuvis® Momentum error format, the entire original error is wrapped as String message
of the inner error. The serviceErrorCode
is 2471
and the HTTP status code is 422
.
Code Block |
---|
title | Example error with inner error having a different structure. |
---|
|
{
"serviceErrorCode": 2471,
"service": "repository",
"messageHistory": "\nMessage History\n---------------------------------------------------------------------------------------------------------------------------------------\nRouteId ProcessorId Processor Elapsed (ms)\n[insertDocumentSetR] [insertDocumentSetR] [direct://insertDocumentSet ] [ 2456]\n[insertDocumentSetR] [[conan] enrich add] [bean[ref:analyzeConfigurationPr [...]",
"innerError": {
"httpStatusCode": 422,
"serviceErrorCode": 0,
"message": "{\"wrong_body_format\":{\"httpStatusCode\":422,\"serviceErrorCode\":12345,\"time\":\"2022-11-22T15:19:52.3241064\",\"message\":\"Virus [XXXX] detected. See inner error for further details.\",\"service\":\"virus-detection-app\",\"innerError\":{\"httpStatusCode\":0,\"serviceErrorCode\":0,\"message\":\"The virus [XXX] was detected in the file [myvirus.exe]. This virus is part of SIV 1.14356.234 from 2022-03-13. See 'https://gprivate.com/61xd3'.\"}}}"
},
"time": "2022-11-22T15:19:52.34",
"stackTrace": [
"com.os.services.hel.repo.web.RepositoryRestController.postDmsObjects(RepositoryRestController.java:88)"
],
"message": "Webhook response with statuscode '422' did not match the expected failure body format. Please see documentation to ensure correct webhook failure handling and have a look at the inner exception for details.",
"tenant": "default",
"httpStatusCode": 422
} |
Any other problems related to the execution of webhooks are indicated with the serviceErrorCode
2470
.
Error Codes and Messages
The following table provides an overview of errors that may occur during operation of yuuvis® Momentum core.
Note: In case you want to catch errors and analyse their content, please use the serviceErrorCode
as unique identification of the error type. Please do NOT use the message
since we reserve to modify it in future.
serviceErrorCode | httpStatusCode | message | Occurance |
---|
2100 | - | The ID '%s' is invalid. If the ID has a prefix, it is not allowed to start with 'ten' or 'app'. | schema validation |
2101 | - | The ID '%s' is invalid. If the ID has a prefix, it is expected to be '%s'. | schema validation |
2102 | - | The ID '%s' is invalid. The ID of an object type is not allowed to start with '%s'. | schema validation |
2103 | - | The ID '%s' is invalid. The ID of a property type is not allowed to start with '%s'. | schema validation |
2104 | - | Too many property types. There are %s property types. Up to %s are allowed. This is a configurable limit. | schema validation |
2105 | - | There are references from the global schema to the schema of app '%s'. For tenant '%s' app '%s' is disabled. | schema validation |
2106 | - | There 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 validation |
2110 | - | Ambiguous IDs. There are %s %s type definitions with the ID '%s'. | schema validation |
2111 | - | Missing ID. There is a %s definition without ID. | schema validation |
2112 | - | Invalid ID. There is a %s with the invalid ID '%s'. The ID must match '%s'. | schema validation |
2113 | - | ID too long. The maximum length for an ID is %s without prefix. The length of '%s' is %s. | schema validation |
2120 | - | Missing property type. The attribute 'propertyType' of the property type definition '%s' is missing. | schema validation |
2121 | - | Wrong property type. The property type of the %s property type definition '%s' must be '%s', but it is '%s'. | schema validation |
2102
The ID Invalid attribute 'queryable' in the %s property type definition '%s' |
is invalid. The ID of an object type is not allowed to start with '%s'. The value 'false' is only supported for table property type definitions. | schema validation |
2103
The ID Illegal minimum length of the property '%s' |
is invalid The ID property type is not allowed to start with '%s'string property must not exceed %s. | schema validation |
2104
Too many property types. There are %s property types. Up to %s are allowed. This is a configurable limit.Illegal maximum length of the property '%s'. The maximum length of a string property must not exceed %s. | schema validation |
2105
There are references from the global schema to the schema of app Illegal cardinality of the property '%s'. |
For tenant '%s' app '%s' is disabledThe cardinality of a table property must not be 'multi'. | schema validation |
2106
There are references from the schema of app Invalid number of column property definitions for property '%s' |
to the schema of app '%s'. For tenant '%s' app '%s' is enabled and app '%s' is disabled. The maximum number of columns in a table must not exceed %s. Column count: '%s' | schema validation |
2127 | - | Illegal cardinality of the property '%s'. The cardinality of a structured data property must not be 'multi'. | schema validation |
2110
Ambiguous IDs. There are %s %s type definitions with the ID Missing base ID. The attribute 'baseId' of the type definition '%s' is missing. | schema validation |
2111
Missing ID. There is a %s definition without IDWrong base ID. The base ID of the %s type definition '%s' must be '%s', but it is '%s'. | schema validation |
2112
Invalid ID. There is a %s with the invalid ID Invalid property reference '%s' |
. The ID must match in type definition '%s'. | schema validation |
2113
ID too long. The maximum length for an ID is %s without prefix. The length of There are %s property references with the value '%s' in the definition of the object type '%s' |
is %s2120
Missing property type. The attribute 'propertyType' of the property Invalid secondary object type reference '%s' in type definition '%s' |
is missing2121
Wrong property type. The property type of the %s property Secondary object type '%s' in type definition '%s' |
must be '%s', but it is '%s'can be referenced only once. | schema validation |
2122
Invalid attribute 'queryable' in the %s property type definition '%s'. The value 'false' is only supported for table property type definitionsThe document type '%s' does not allow content and has a static reference to the secondary object type '%s' that requires content. It is not possible to create instances of this document type. | schema validation |
2123
Illegal minimum length of the property The document type '%s' does not allow content and has a non-static reference to the secondary object type '%s' |
. The minimum length of a string property must not exceed %sthat requires content. This secondary object type cannot be assigned to instances of this document type. | schema validation |
2124
Illegal maximum length of the property . The maximum length of a string property must not exceed %s.schema validation | 2125 | - | Illegal cardinality of the property '%s'. The cardinality of a table property must not be 'multi'requires content and has a static reference to the secondary object type '%s' that does not allow content. It is not possible to create instances of this document type. | schema validation |
2126
Invalid number of column property definitions for property '%s'. The maximum number of columns in a table must not exceed %s. Column count: '%s'The 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 cannot be assigned to instances of this document type. | schema validation |
2127
Illegal cardinality of the property '%s'. The cardinality of a structured data property must not be 'multi'. | schema validation | 2130 | - | Missing base ID. The attribute 'baseId' of the type definition '%s' is missingThe document type '%s' has static references to secondary object types that require content ('%s') and that do not allow content ('%s'). It is not possible to create instances of this document type. | schema validation |
2131
Wrong base ID. The base ID of the %s type definition must be '%s', but it is '%s'.schema validation | 2132 | - | Invalid property reference '%s' in type definition '%s'has static references to 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 cannot be assigned to instances of this document type. | schema validation |
2134
There are %s property references with the value in the definition of the object type '%s'.schema validation | 2135 | - | Invalid secondary object type reference '%s' in type definition '%s'. | schema validation |
2136 | - | Secondary object type '%s' in type definition '%s' can be referenced only oncehas static references to 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 cannot be assigned to instances of this document type. | schema validation |
2140
document does not allow content and a reference to the secondary object type references to secondary object types that require content ('%s' |
that requires content). It is not possible to create instances of this |
document folder type. | schema validation |
2141
document does not allow content and a reference the type types that require content ('%s' |
that requires content. This ). These non-static secondary object |
type types cannot be assigned to instances of this |
document folder type. | schema validation |
2142
document requires content and a reference the type types that allow content ('%s' |
that does not allow content). It is not possible to create instances of this |
document folder type. | schema validation |
2143
document requires content and a reference the type types that allow content ('%s' |
that does not allow content. This ). These non-static secondary object |
type types cannot be assigned to instances of this |
document folder type. | schema validation |
2144
- | The document type '%s' has static references to secondary object types that require content ('%s') and that do not allow content ('%s'). It is not possible to create instances of this document type422 | Empty lists are not allowed. The property '%s' has an empty list as value. | schema validation |
2145
-
document type cardinality of the property '%s' |
has static references to 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 cannot be assigned to instances of this document typeis 'multi', but the value is not a list: %s. | schema validation |
2146
-
document type cardinality of the property '%s' |
has static references to 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 cannot be assigned to instances of this document typeis 'single', but the value is a list: %s. | schema validation |
2150
-
2151 | - | The folder type '%s' has non-static references to secondary object types that require content ('%s'). These non-static secondary object types cannot be assigned to instances of this folder type. | schema validation |
2152 | - | The folder type '%s' has static references to secondary object types that allow content ('%s'). It is not possible to create instances of this folder type. | schema validation |
2153 | - | The folder type '%s' has non-static references to secondary object types that allow content ('%s'). These non-static secondary object types cannot be assigned to instances of this folder type. | schema validation |
2200 | 422 | Empty lists are not allowed. The property '%s' has an empty list as value. | schema validation |
2201 | 422 | The cardinality of the property '%s' is 'multi', but the value is not a list: %s. | schema validation |
2202 | 422 | The cardinality of the property '%s' is 'single', but the value is a list: %s. | schema validation |
2203 | 422 | Illegal number of values. The cardinality of the property '%s' is 'single', but there are multiple values: %s. | schema validation |
2204 | 422 | Null values are not allowed in lists. Property ='%s' | schema validation |
2210 | 422 | Illegal property value. The property '%s' is a boolean property and is unable to accept the value '%s'. | schema validation |
2211
The folder type '%s' has static references to secondary object types that require content ('%s'). It is not possible to create instances of this folder type. | schema validation | Illegal number of values. The cardinality of the property '%s' is 'single', but there are multiple values: %s. | schema validation |
2204 | 422 | Null values are not allowed in lists. Property ='%s' | schema validation |
2210 | 422 | Illegal property value. The property '%s' is a boolean property and is unable to accept the value '%s'. | schema validation |
2211 | 422 | Illegal property value. The property '%s' is a datetime property and is unable to accept the value '%s'. | schema validation |
2212 | 422 | Illegal property value. The property '%s' is a decimal property and is unable to accept the value '%s'. | schema validation |
2213 | 422 | Illegal property value. The property '%s' is an ID property and is unable to accept the value '%s'. | schema validation |
2214 | 422 | Illegal property value. The property '%s' is an integer property and is unable to accept the value '%s'. | schema validation |
2215 | 422 | Illegal property value. The property '%s' is a string property and is unable to accept the value '%s'. | schema validation |
2216 | 422 | Malformed table. The property part 'columnNames' of the table property '%s' is expected to be a list of strings. ColumnNames: '%s' | schema validation |
2217 | 422 | Malformed table. The value of the table property '%s' is expected to be a list. Table value: %s | schema validation |
2218 | 422 | Malformed table. A row of the table '%s' is not a list. Row: '%s' | schema validation |
2219 | 422 | Illegal property value. The value of the structured data property '%s' is |
a datetime property and is unable to accept the value '%s'.expected to be a list or map. Value: %s | schema validation |
2212
Illegal property value. The property '%s' is a decimal property and is unable to accept the value Invalid JSON. The value of the structured data property %s must be valid JSON. Value = '%s'. Error message: %s | schema validation |
2213
2240 | 422 | Illegal property value. The property '%s' is |
an ID property a datetime property with resolution 'date' and is unable to accept the value '%s'. | schema validation |
2214
Illegal property valueThe decimal value %s is not valid. The |
property is an integer property and is unable to accept the value '%s'does not permit values smaller than %s. | schema validation |
2215
Illegal property valueThe decimal value %s is not valid. The |
property is a string property and is unable to accept the value '%s'does not permit values larger than %s. | schema validation |
2216
Malformed table. The property part 'columnNames' of the table property '%s' is expected to be a list of strings. ColumnNames: '%s'The integer value %s is not valid. The type '%s' does not permit values smaller than %s. | schema validation |
2217
Malformed tableThe integer value %s is not valid. The |
value of the table property is expected to be a list. Table value: %sdoes not permit values larger than %s. | schema validation |
2218
Malformed table. A row of the table String value is too short. The type '%s' |
is not a list. Row: permits only strings with a length of at least %s. The length of '%s' is %s. | schema validation |
2219
Illegal property value. The value of the structured data property String value is too long. The type '%s' permits only strings with a length up to %s. The length of '%s' is |
expected to be a list or map. Value: %s2220
Invalid JSON. The value of the structured data property %s must be valid JSON. Value = String value is too long. A string property permits only strings with a length up to %s. The property '%s' has a value with the length %s: '%s'. |
Error message: %s2240
property value. The property column. A table of type '%s' |
is a datetime property with resolution 'date' and is unable to accept the value cannot have a column named '%s'. | schema validation |
2250
The decimal value %s is not validIllegal column names. The |
type does not permit values smaller than %soccures %s times. | schema validation |
2251
The decimal value %s is not valid. The type '%s' does not permit values larger than %s.Malformed table. The maximum number of rows in a table must not exceed %s. Row count: '%s' | schema validation |
2260
The integer value %s is not valid. The type '%s' does not permit values smaller than %sInvalid row. The row of a table property '%s' is expected to contain exactly %s entries, but row no. %s contains %s entries. | schema validation |
2261
The integer value %s is not valid. The type '%s' does not permit values larger than %sStructure data value too large. The value of the property '%s' contains %s sub-values. Only up to %s are allowed. | schema validation |
2270
String is too short. The type '%s' permits only strings with a length of at least %s. The length of '%s' too deep. The value of the property '%s' has a depth of %s. The maximum depth is %s. | schema validation |
2271
String value is too long. The type Invalid value of structure data property '%s' |
permits only strings with a length up to %s. The length of . Non-string key found: '%s' |
is %s2272
String value is A string property permits only strings with a length up to %s. The property The length of the key '%s' |
has a with the length %s: '%s'of the structured data property '%s' is %s. The maximum length is %s. | schema validation |
2280
Illegal column. A table of type '%s' cannot have a column named Invalid key '%s' in the value of the structured data property '%s'. The key must match the regex '%s'. | schema validation |
2281
Illegal column names. The column A required property is missing. property='%s' |
occures %s times.2282
2283 | 422 | Invalid row. The row of a table property '%s' is expected to contain exactly %s entries, but row no. %s contains %s entries. | schema validation |
2290 | 422 | Structure data value too large. The value of the property '%s' contains %s sub-values. Only up to %s are allowed. | schema validation |
2291 | 422 | Structured data value too deep. The value of the property '%s' has a depth of %s. The maximum depth is %s. | schema validation |
2292 | 422 | Invalid value of structure data property '%s'. Non-string key found: '%s'. | schema validation |
2293 | 422 | Key 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 validation |
2294 | 422 | Invalid key '%s' in the value of the structured data property '%s'. The key must match the regex '%s'. | schema validation |
2300 | 422 | A required property is missing. property='%s' | schema validation |
2880 | - | Unable to disable app '%s'. There are references from the tenant schema to the schema of app '%s'. | app set validation |
2881 | - | Unable to disable app '%s'. There are references from the global schema to the schema of app '%s'. | app set validation |
2882 | - | Unable to disable app '%s' and enable app '%s'. There are references from the schema of app '%s' to the schema of app '%s'. | app set validationMalformed table. The maximum number of rows in a table must not exceed %s. Row count: '%s' | schema validation | Webhook execution resulted in an unexpected failure | webhook execution |
2471 | 422 | Webhook response with statuscode '%s' did not match the expected failure body format. Please see documentation to ensure correct webhook failure handling and have a look at the inner exception for details. | webhook execution |
2880 | - | Unable to disable app '%s'. There are references from the tenant schema to the schema of app '%s'. | app set validation |
2881 | - | Unable to disable app '%s'. There are references from the global schema to the schema of app '%s'. | app set validation |
2882 | - | Unable to disable app '%s' and enable app '%s'. There are references from the schema of app '%s' to the schema of app '%s'. | app set validation |
2900 | 403 | Method not allowed for tenant independent accounts. | authentication |
2901 | 403 | External access is not allowed for the service account. | authentication |
2902 | 403 | External access is not allowed for this endpoint. | |
2903 | 422 | Could not create JWT. Cause [%s] | |
2950 | 500 | Could not write audit entry. Cause [%s] | audit |
2951 | 500 | Database unreachable. Cause [%s] | audit |
99999 | depends on webhook type | <custom message> | webhook execution |
Info |
---|
|
Read on
Section |
---|
Column |
---|
| Insert excerpt |
---|
| Schema - Defining Object Types |
---|
| Schema - Defining Object Types |
---|
nopanel | true |
---|
| Keep reading
|
|
|
...