Handle invoice duplicate external ID issue