Reading an error
A failed action's message starts with a stable code, followed by the phase, the location in the map or input when known, and a correlation ID:
InvalidXml: The input content is not well-formed XML: The 'CustomerId' start tag on line 3 position 4 does not match
the end tag of 'Order'. [phase=parseInput, location=input(4,3), correlationId=d0251a79514349b388b576dd6a7f20df]In Logic Apps the action fails; catch it with a Scope and runAfter Failed/TimedOut. The message is in the failed action's outputs.body.message:
"Error_response": {
"type": "Response",
"kind": "Http",
"inputs": {
"statusCode": 400,
"body": { "message": "@{first(result('Transform'))?['outputs']?['body']?['message']}" }
},
"runAfter": { "Transform": [ "Failed", "TimedOut" ] }
}Codes
| Code | HTTP | Typical cause |
|---|---|---|
| LicenseRequired | 403 | No license token outside func start, a token for another product, or a license past its grace period |
| InvalidRequest | 400 | Missing or conflicting inputs, bad parameter names or types |
| InvalidXml | 400 | Malformed input XML, or a DTD |
| MapNotFound | 404 | The map or an included/imported module is missing |
| MapAccessDenied | 400 | A path outside the map folder, a URL, a link or junction |
| UnsupportedXsltVersion | 400 | version other than 1.0 in some module |
| XsltCompilationFailed | 400 | XSLT syntax error, include cycle, non-UTF-8 output encoding |
| TransformationFailed | 400 | Runtime XSLT error, xsl:message terminate="yes" |
| ScriptsDisabled | 400 | msxsl:script without enableScripts, or scripts disabled for the app |
| UnsupportedScriptFeature | 400 | C# outside the supported subset |
| ScriptCompilationFailed | 400 | C# compile error (line in the map) |
| ScriptExecutionFailed | 400 | A script threw or returned null |
| FunctionNotAllowed | 400 | Alias not allowed by the action or host, not in the registry, or an invalid registry |
| FunctionAuthenticationFailed | 502 | Key setting missing, no token, or the Function answered 401/403 |
| FunctionHttpFailed | 502 | 404, 408, 429, 5xx, redirect or network failure |
| FunctionResponseInvalid | 502 | Not 200 text/plain UTF-8, or too large |
| FunctionTimeout | 504 | No complete answer within the call budget |
| TransformationTimeout | 504 | The deadline passed; the worker was killed |
| ResourceLimitExceeded | 413 (429 when queued) | A size or count limit, or the queue is full |
| WorkerUnavailable | 503 | The worker is missing, failed to start, or crashed |
| Canceled / InternalError | 408 / 500 | The run was canceled / unexpected failure |