One possible cause of this error is the batch template being marked inactive. Go to Batch entry > Batch templates > Search for the batch template of the batch that was throwing the error > Mark active > Try opening the batch again.