Moved invalid ID exception to parseBgID