We have run check links on the Finance module and we generated over 1,000 header records - matched to over 5,000 detail lines.
We know that they are all 'wrong' and need to be removed as they are all dated between 2015 and 2019.
So in the TEST company we ran a number of scripts to remove from both the GL10000 and GL10001 tables all these errors.
Now when we check in the application and open the Finance >> Batch selection we still had the batches. So we ran script to remove these batches as well. Now only have recognized 'current' batches in the SY00500.
However, we have created a situation where each time we open a Finance Batch and then click Transaction - to open the transaction window, we get a message that the batch already exists, then the batch id is blanked and the remainder of the information remains correctly.
We post a separate case.