The error occurs when a required leave expiry date is missing or contains an invalid date format.
Review the leave records and locate any missing or invalid Leave Expiry Date values.
Enter the correct Leave Expiry Date.
Save the changes.
Perform the payroll export again.
The export process should complete successfully once all leave expiry dates have been updated with valid values.

