How to protect duplicate entries?

Welcome to the community, @meaf! You could do this by following our other post (that exploits the dynamic data attachment feature):