In some situations where a node has invalid entries in sym_data_gap  it is fair to truncate that table and let SymmetricDS regenerate the entries as needed It's possible that data_id's in sym_data are out of range from sym_data_event at that point  and also out of range from the default starting data gap (0