Attempting to lock down postings to previous years in GL under GL Setup | Posting Options | Prevent Posting to Prior Fiscal Years. An error is received stating: "Can not disable posting to prior years because unreleased batches in prior years exist".
The easiest way to identify the referenced unreleased batch(es) is to run the following SQL statement in SQL Server Management Studio against your Microsoft Dynamics SL application database:
select BatNbr,EditScrnNbr,Status,PerPost,Module,* from Batch where STATUS IN ('B', 'H')
Identify the batches that have a value in the perpost field prior to the current fiscal period. Delete or release the batches on the screen that are noted in the EditScrnNbr field.