> ## Documentation Index
> Fetch the complete documentation index at: https://developers.pleo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Perform Pre-Export Validation

Before processing Export Job Items into your Accounting System (AS)/ERP, the integration must validate that the AS/ERP is available and ready to accept entries.

This prevents Export Job Items from being started when processing cannot be completed.

## Implementation

See the corresponding how-to article for API usage and step-by-step instructions:

* [How to Perform Pre-Export Validation](/docs/current/how-tos/accounting-integrations/how-to-perform-pre-export-validation-for-as-erp-processing)

## Purpose

* Confirm Accounting System availability.
* Prevent jobs from becoming stuck in progress.
* Ensure exports start only when processing can succeed.

## Validation Checks

### Accounting System Availability

Confirm that:

* The Accounting System is reachable.
* Authentication is valid.
* The system is not locked or read-only.
* New accounting entries can be created.

## Handling Validation Failures

If validation fails:

1. Mark the Export Job as **failed**.
2. Post a Failed Export Job Event:

* `event` = failed
* `failureReason` = Failed to reach the Accounting System.
* `failureReasonType` = accounting\_system\_unreachable

3. Stop further processing.

## Expected Outcome

* Export Job proceeds only if validation succeeds.
* Failures are reported early with actionable reasons.
* No Export Items are processed yet.

***

## What Comes Next?

* [Retrieve Export Job Items](/docs/current/integration-design/exports/integration-design-exports-fetch-export-items-control-layer)

***

## Related Reading

* [How to Perform Pre-Export Validation](/docs/current/how-tos/accounting-integrations/how-to-perform-pre-export-validation-for-as-erp-processing)
* [Export Integration Workflow Guide](/docs/current/guides/export-integration-workflow-guide)
* [AS/ERP Processing Workflow Guide](/docs/current/guides/accounting-system-processing-workflow-guide)

***
