Issue
Riva stops syncing an affected user and reports the following error:
Unable to initialize: [XA] Previous folder ID does not match current folder ID. A reinitialization is required. First error occurrence: [YYYY-MM-DDTHH:MM:SS]
Cause
This error occurs when a folder's current ID in Exchange no longer matches the ID previously recorded by Riva.
This can happen when a mailbox or calendar folder has been migrated, rebuilt, deleted and recreated, or otherwise changed.
To prevent synchronization with the wrong folder, Riva stops syncing the affected user until the folder mappings can be re-established.
Understanding the Line in the Sand Date
When reinitializing an affected user, a Line in the Sand date may be required to prevent previously synchronized calendar items from being processed again.
The Line in the Sand establishes a cut-off date for calendar synchronization. Calendar appointments before this date are excluded from synchronization, helping preserve existing appointments and reduce the risk of duplicate historical items during reinitialization.
Important: Appointments excluded by the Line in the Sand will no longer be synchronized by Riva, including subsequent changes to those appointments. The exact items excluded depend on the date filters configured. Depending on the configuration, reinitialization may also result in duplicate appointments in the CRM.
Riva's standard recommendation is to use the date the error first occurred as the Line in the Sand date.
For example, if the error first occurred on October 15, 2026, the recommended Line in the Sand date would be October 15, 2026.
Resolution
The affected user must be reinitialized to establish new folder mappings. The procedure depends on your Riva deployment.
For Riva Cloud
Contact the Riva Technical Support Team and provide the following information:
- The affected user's email address.
- The complete error message, including the first error occurrence date.
- Confirmation of the Line in the Sand date to be applied.
The Riva Technical Support Team will assist with the required configuration and reinitialization.
For Riva On-Premise
IMPORTANT: Incorrectly configuring the advanced options or performing a reinitialization may result in unintended synchronization issues. We strongly recommend contacting the Riva Technical Support Team before proceeding to confirm the appropriate settings and reinitialization procedure for your environment.
-
Identify the date the error first occurred. This date can be found in the error message under
First error occurrence.For example:
Unable to initialize: [XA] Previous folder ID does not match current folder ID. A reinitialization is required. First error occurrence: [2026-10-15T12:05:23.4859072-06:00]In this example, the first error occurred on October 15, 2026. Riva recommends using this date as the Line in the Sand date.
-
Apply the following advanced options to the affected sync policy, as recommended by the Riva Technical Support Team, replacing
YYYY-MM-DDwith the selected date:Sync.Crm.FirstSyncExistingItemOption.Calendar = SyncToCrmSync.Crm.MinCreateDate.Appointment = YYYY-MM-DDSync.Crm.MinStartDate.Appointment = YYYY-MM-DDSync.Crm.SyncStartTimeOverride.Appointment = YYYY-MM-DDSync.Ex.MinCreateDate.Calendar = YYYY-MM-DDSync.Ex.MinStartDate.Calendar = YYYY-MM-DDSync.Ex.SyncStartTimeOverride.Calendar = YYYY-MM-DD
- Complete the calendar metadata clearing and reinitialization procedure for the affected user. For detailed instructions, see Line in the Sand for Exchange and IBM Notes Sync Policies.
Monitor the affected user's next sync cycle after reinitialization to verify that the error no longer occurs and that calendar items begin synchronizing again.
Important: A Full reinitialization alone does not clear calendar metadata. The calendar metadata must be cleared using the appropriate procedure. Incorrect configuration or metadata clearing may cause unintended synchronization results.
Contact the Riva Technical Support Team if you are unsure which settings or reinitialization procedure to use, or if you need additional assistance.