Placed calls to formatIds in try/catch blocks.