If you run a session with a resume recovery strategy and the session fails, do not edit the state information or the mapping for the session before you restart the session.
CDC sessions fail for a number of reasons, such as:
Permanent errors such as source or target data errors
Transitory errors such as infrastructure problems, server crashes, and network availability issues
If the session fails because of transitory errors, restart the session after the source of the transitory error is corrected. PWXPC automatically recovers warm started sessions, if required although you can also run a recovery session.
You cannot override the restart point if recovery processing is required. PWXPC does not read the restart token file if you warm start and recovery is required or if you run a recovery session.
CDC sessions also fail because of permanent errors, such as SQL failures or other database errors. You must correct permanent errors before restarting the CDC session. With some failures, you can correct the error and then restart the CDC session. In other cases, you need to re-materialize the target table from the source table before you recommence applying changes to it. If you re-materialize the target table, you need to provide restart tokens matching the new restart point in the change stream and the cold start the CDC session.