Get validation errors for a decision

get/flows/{decisionId}/errors

Retrieves the validation errors for a decision and also its sub-decisions.

Request Samples

1

Response Samples

1{
2 "links": [
3 {
4 "method": "GET",
5 "rel": "collection",
6 "href": "/decisions/flows/c886c6c8-38a3-4897-ab38-69ac50074858/errors",
7 "uri": "/decisions/flows/c886c6c8-38a3-4897-ab38-69ac50074858/errors",
8 "type": "application/vnd.sas.collection",
9 "itemType": "application/vnd.sas.decision.validation.error"
10 },
11 {
12 "method": "GET",
13 "rel": "self",
14 "href": "/decisions/flows/c886c6c8-38a3-4897-ab38-69ac50074858/errors?start=0&limit=10",
15 "uri": "/decisions/flows/c886c6c8-38a3-4897-ab38-69ac50074858/errors?start=0&limit=10",
16 "type": "application/vnd.sas.collection",
17 "itemType": "application/vnd.sas.decision.validation.error"
18 }
19 ],
20 "name": "decisionValidationErrors",
21 "accept": "application/vnd.sas.decision.validation.error",
22 "start": 0,
23 "count": 4,
24 "items": [
25 {
26 "decisionId": "c886c6c8-38a3-4897-ab38-69ac50074858",
27 "decisionRevisionId": "af149b13-dfd8-4422-80cf-7889da963e78",
28 "decisionName": "add_dec",
29 "variableId": "ae39c528-6769-41d1-865b-fd617a8ee52a",
30 "variableName": "add_gv",
31 "itemType": "variable",
32 "errorCode": 77022,
33 "errorMessage": "Global variable is not activated.",
34 "validationSeverity": "ERROR",
35 "version": 1
36 },
37 {
38 "decisionId": "c886c6c8-38a3-4897-ab38-69ac50074858",
39 "decisionRevisionId": "af149b13-dfd8-4422-80cf-7889da963e78",
40 "decisionName": "add_dec",
41 "stepId": "38cb283b-ecd9-4c45-b3a5-3500f4173ecb",
42 "stepName": "add_rs",
43 "itemType": "application/vnd.sas.decision.step.ruleset",
44 "errorCode": 77021,
45 "errorMessage": "Signature of the resource in the step has changed.",
46 "validationSeverity": "ERROR",
47 "version": 1
48 },
49 {
50 "decisionId": "c886c6c8-38a3-4897-ab38-69ac50074858",
51 "decisionRevisionId": "af149b13-dfd8-4422-80cf-7889da963e78",
52 "decisionName": "add_dec",
53 "stepId": "38cb283b-ecd9-4c45-b3a5-3500f4173ecb",
54 "stepName": "add_rs",
55 "stepMappingId": "a8ef2325-84ad-4c52-808f-38a975e2f613",
56 "stepMappingName": "a",
57 "itemType": "mapping",
58 "errorCode": 77024,
59 "errorMessage": "The mapping is not assigned.",
60 "validationSeverity": "ERROR",
61 "version": 1
62 },
63 {
64 "decisionId": "c886c6c8-38a3-4897-ab38-69ac50074858",
65 "decisionRevisionId": "af149b13-dfd8-4422-80cf-7889da963e78",
66 "decisionName": "add_dec",
67 "stepId": "338e071c-0821-4959-82d4-374f317706fe",
68 "stepName": "add_dec_subdecision",
69 "itemType": "application/vnd.sas.decision.step.custom.object",
70 "errorCode": 77030,
71 "errorMessage": "There is a version mismatch between the Python version defined in sub-decision node \"add_dec_subdecision\" and top-level decision \"add_dec\". Sub-Decision Version: 3.11, Top-Level Decision Version: 3.12.",
72 "validationSeverity": "WARNING",
73 "version": 1
74 }
75 ],
76 "limit": 10,
77 "version": 2
78}

Path Parameters

NameTypeRequiredDescription
decisionId
string
true

The identifier for the decision.

Query Parameters

NameTypeRequiredDescription
filter
string<filter-criteria>
false

The criteria for filtering the decision validation errors. See Filtering in REST APIs.

limit
integer
false

The maximum number of items to return in this page of results. The actual number of returned items might be less if the collection has been exhausted. The default is 10.

sortBy
string<sort-criteria>
false

The criteria for sorting the decision validation errors. See Sorting in REST APIs.

start
integer
false

The starting index of the first item in a page. The index is 0-based. The default is 0.

Header Parameters

NameTypeRequiredDescription
Accept-Item
string<media-type>
false

Used for selecting the desired item representation.

Allowed value:
application/vnd.sas.decision.validation.error+json
Default:
application/vnd.sas.decision.validation.error+json

Responses

StatusMeaningDescription
200OK

The request succeeded.

HeadersSchema
404Not Found

No decision exists at the requested path.

HeadersSchema