Is there a way to display an error message when there is a duplicate entry?

Hi @Daniel_Alberto_Diaz,
I found this other link that had a similar question: Validate against duplicate entries within nested repeats

It seems a bit more complicated than your case. But is this similar to what you're looking for?

Janna