How to Make ALL datasets have no duplicates

Hi, I managed to make a (1) dataset with the noduplicates function using the data.js

However, when I do for multiple dataset, it doesnt work, any idea? I even created another.js with the exact copy for another dataset but it doesnt work

Are you trying to prevent duplicates in a database collection? What noduplicates() function is it that you are using? Explain what you are trying to do, what works, and what doesn’t. Also, add any code in a code block as stated in the Forum Guidelines .