---
title: "Troubleshooting audience export"
slug: "troubleshooting-audience-export"
abstract: "Common errors related to exporting an audience from Sitecore CDP and how to fix them."
---
# Troubleshooting audience export

This topic describes the most common errors and solutions when exporting an audience from Sitecore CDP.

## Errors in the test output

When [testing the export](https://doc.sitecore.com/cdp/en/users/sitecore-cdp/audience-export/testing-the-export.html "Testing the export"), in **Test** > **Response** > **Output**, errors display in the following cases:

- The attribute values that you entered in the output structure are wrongly formatted. To fix the error, make sure to [correctly format the data you included in the output](https://doc.sitecore.com/cdp/en/users/sitecore-cdp/audience-export/data-in-the-export.html#UUID-b89e130c-ae01-8831-e80d-ef1c1ff4a1c8_section-idm4545492155870433871423726306 "Including data in the output").
- There are errors in the JavaScript that you included in the audience export. To fix the error, use `console.log()` in the JavaScript to log messages to the [test log](https://doc.sitecore.com/cdp/en/users/sitecore-cdp/audience-export/testing-the-export.html#UUID-264293a8-6f5f-73bf-798f-3565cb114357_section-idm4668427964710433895282144368 "Test log"). Then, test the export and check the test log.

## Data missing from the output

If some data that you included in the output structure is missing from the output, make sure that:

- Every column header has a unique title.
- The data you reference from the guest profile, for example, the guest's email address, is available in the guest profile. Data not available in the guest profile will not result in errors and will not be part of the output.

## Cannot access Build screen

If you want to edit an export but can't access the **Build** screen, it's because the export is in the [scheduled status](https://doc.sitecore.com/cdp/en/users/sitecore-cdp/audience-export/export-statuses.html "Export statuses"). To be able to edit the export, you have to first [pause](https://doc.sitecore.com/cdp/en/users/sitecore-cdp/audience-export/manage-audience-exports.html#UUID-bc088418-a7bc-776b-e77e-3cc257e46575 "Pause an export") it.

## Output exported with errors

If the export finishes running and contains errors, make sure that:

- The [JavaScript](https://doc.sitecore.com/cdp/en/users/sitecore-cdp/audience-export/javascript-in-the-export.html "JavaScript in the export") is free of error, for example, all variables are defined.
- All your JavaScript functions are inside a single function.
- The [condition](https://doc.sitecore.com/cdp/en/users/sitecore-cdp/developer-center/conditions.html "Conditions") used for [filtering a segment](https://doc.sitecore.com/cdp/en/users/sitecore-cdp/audience-export/data-in-the-export.html#UUID-b89e130c-ae01-8831-e80d-ef1c1ff4a1c8_section-idm4550106516524833879675625064 "Guests in a segment are the basis of an export") is free of error.
- You [test the export](https://doc.sitecore.com/cdp/en/users/sitecore-cdp/audience-export/testing-the-export.html "Testing the export") before running it again.