Handle external id lookup when multiple cases have the same id