---
schema_version: "1"
id: 8d0b2bcb10ede7c59c9c4257e2861f3466ac7abcdecaf0e9170c99a5c30323d1
title: Abort Export Process
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/apex_tpm_abort_export.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/apex_tpm_abort_export.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0b20423c00dd6161c20fbd311f12cc6a271d244199d24cf59cc878d354c58fda
description: Sets the state of a CSV export process to Aborted. When a CSV export process is running for a longer duration than expected, it consumes resources and blocks the scheduling of new exports. The following Abort Export code snippet unblocks the scheduling by aborting the export process.
---
# Abort Export Process

Sets the state of a CSV export process to Aborted. When a CSV export process is running for a longer duration than expected, it consumes resources and blocks the scheduling of new exports. The following Abort Export code snippet unblocks the scheduling by aborting the export process.

## Sample Apex Code Snippet

OffPlatformCallout request = new OffPlatformCallout('ABORT\_EXPORT\_PROCESS','0001');
Map<String, String> data = new Map<String, String>();
data.put('csvGuid','11b19630-08f0-4f57-8e14-1778c0d3abde');
data.put('metaname', 'IntegrationExportPromotion');
OffPlatformCalloutResponse response = request.execute(TransactionHandler.getTransactionIdentifier(), data, null);
System.debug(response);

## Response

{
"message":"Abort Export is scheduled successfully."
}