John Swinney's Government faces an embarrassing day in court after missing two deadlines to release information.