A faulty computer system could have potentially let hundreds of criminals out of jail when they were not to be released.
The worrisome blunder, which may have wrongly set free hundreds of caged criminals including those serving life sentences, was branded 'scandalous' by a Conservative MSP.
West Scotland representative Jamie Greene slammed the Scottish Government after justice secretary Keith Brown revealed the error in parliament.