--- title: "Exact invalid cost unit for Administrators - Payhawk Help Center" slug: "failed-to-export-into-exact-online-invalid-cost-unit-selection-in-expense" description: "Resolve Exact Online ERP integration errors in Payhawk by re-syncing cost units or updating inactive cost units for successful expense exports." updated: 2026-10-27T15:08:06Z published: 2026-10-27T15:08:06Z canonical: "payhawk.com/failed-to-export-into-exact-online-invalid-cost-unit-selection-in-expense" --- > ## Documentation Index > Fetch the complete documentation index at: https://payhawk.com/help/llms.txt > Use this file to discover all available pages before exploring further. # Failed to export into Exact Online. Invalid Cost Unit selection in expense. ## Error message ```plaintext Invalid Cost Unit selection in expense. ``` ## Affected ERP integrations - Exact Online ## Cause This error occurs for one of two reasons: - A cost unit was synced to Payhawk as a custom field option but has since been deleted from Exact Online. When Payhawk attempts to attach the deleted cost unit reference to the expense during export, Exact Online cannot find it and rejects the transaction. - The cost unit selected for an expense in Payhawk has an **End date** configured in Exact Online that has already passed, making the cost unit inactive. ## Solution You can resolve this issue in one of the following ways: - Re-sync custom fields and select an existing cost unit. 1. In the [Payhawk Web Portal](https://portal.payhawk.com), go to **Settings** > **Integrations** > **Exact Online**. 2. Click on its three-dot menu and select **Manually sync**. 3. Open the expense that failed to export. 4. Update the cost unit selection to an existing, active cost unit from the refreshed list. 5. Click on **Review** to export the expense again. - Extend the cost unit's End date in Exact Online. 1. Log in to your Exact Online account. 2. Navigate to **Master Data** > **Financial** > **Cost unit**. 3. Locate and click on the cost unit that is selected in your Payhawk expense. 4. Review the **End date** field. 5. Update the **End date** to a date in the future to reactivate the cost unit: - If the cost unit must remain active indefinitely, consider removing the **End date** entirely. - If the cost unit must only be active for a specific period, set an appropriate future date. ![Cost unit maintenance interface showing fields for code, description, and end date.](https://cdn.payhawk.com/Adm%3AIntegrations%3AError%20messages/exact_online_invalid%20cost%20unit.png) 6. Click **Save**. 7. Return to Payhawk and attempt to export the expense again. The export must now be successful. > [!TIP] > Ensure that the service date of the expense in Payhawk also falls within the cost unit's active period in Exact Online, as this is a separate validation that Exact Online performs.