Footnote Automation Error Handling
When a request cannot be processed, the response includes an error message together with the content of the original request for the affected domain, so you can identify and correct the field(s) in error.
- As described in ATPCO's table-creation conventions, a category (and its subdomains) is created only if all of its data and subdomain tables pass validation; if any part fails, the whole category is not created, although any subdomain tables that did pass validation are still created and returned in the response.
- If the main category data and its subdomains are all successfully created, the category is created and the created Record 3 table numbers for the subdomains display in the response.
- Subdomain tables that are successfully created are still returned in the response even if the category's main data contains errors.
- When a response contains multiple error messages, they are collected within an array.
📝 If a runtime error exception occurs, the request is not redisplayed; the server returns a runtime error message and HTTP status code 500.
Example: Blackout Dates (Category 11) Error Response
{
"msg": "Table creation was unsuccessful",
"blkOutDts11": {
"msgs": {
"errors": [
"[startDt] - Date must be today or greater"
]
},
"startDt": "20180201",
"stopDt": "20190101"
}
}Example: Sales Restrictions (Category 15) Error Response
{
"msg": "Table creation was unsuccessful",
"salesRstrxn15": {
"msgs": {
"errors": [
"[tktDisc] - Date must be today or greater",
"[tktEff, rsvEff] - tktEff or tktDisc must be equal to or greater than rsvEff or rsvDisc"
]
},
"rsvEff": "20180801",
"rsvDisc": "20190321",
"tktEff": "20180321",
"tktDisc": "20180101"
}
}Example: Miscellaneous Provisions (Category 23) Error Response
{
"msg": "Table creation was unsuccessful",
"miscprovision23": {
"msgs": {
"errors": [
"[addonCons] - Request argument has invalid value and/or format",
"[prorate] - Request argument has invalid value and/or format"
]
},
"addonCons": "RX",
"prorate": "B"
}
}