Get exception details for a file
get
/api/erp/integrations/resources/v1/{locale}/files/{id}/transactionExceptions
Returns a summary of exceptions encountered during the transaction stage for a specific file.
Request
Path Parameters
-
id(required): string
The unique identifier of the file.Example:
324108415901929470
-
locale(required): string
The locale to which the file is being uploaded.Example:
en-us
Query Parameters
-
flowName: string
The name of the flow for which the service is being invoked.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
Default Response
Simple JSON containing exception details for transaction stage
Root Schema : ExceptionDetails
Type:
Show Source
object
-
exceptions: array
exceptions
The exception details for a specific file.
-
fileId: string
The unique identifier of the file.
-
flowName: string
The name of the flow for which the service is being invoked.
-
stageName: string
The file processing stage in which the exceptions were encountered.
Examples
You can use this GET REST operation to get details of the exceptions and the recommended actions for an Accounting Hub Transaction File that was uploaded.
Example URL
Here's an example of the resource URL:
GET
/api/erp/integrations/resources/v1/{locale}/files/{id}/transactionExceptions
cURL Command
curl --location 'https://servername.fa.us2.oraclecloud.com/api/erp/integrations/resources/v1/en-us/files/451471670902558720/transactionExceptions?flowName=fah-import' \
--header 'Authorization: Bearer <Bearer Token>
Example Response
Here's an example of the response body in JSON format:
{
"fileId": "286264167286738944",
"flowName": "fah-import",
"stageName": "Transaction",
"exceptions": [
{
"exceptionType": "Error",
"count": 2,
"exceptionDescription": "Required columns such as event type, ledger, or transaction date, are not provided in the header file.",
"recommendedActions": [
"Assign a valid value to the required column for the transaction"
]
},
{
"exceptionType": "Error",
"count": 4,
"exceptionDescription": "There are duplicate line numbers for a transaction.",
"recommendedActions": [
"Modify line number",
"Delete the duplicate transaction line",
"Modify transaction number"
]
},
{
"exceptionType": "Error",
"count": 1,
"exceptionDescription": "Transaction does\"nt have any line, and it is\"nt a reversal.",
"recommendedActions": [
"Add one or more line records for the transaction",
"Modify transaction reversal mark for the transaction"
]
},
{
"exceptionType": "Error",
"count": 1,
"exceptionDescription": "Line number is not provided in the line file.",
"recommendedActions": [
"Assign a unique line number to each line for a transaction"
]
}
]
}
}
}