Warning message during a Dunn test

This just means that the Treatment variable had not been created as a factor. You can change it within the my_data object with as.factor. See the FAQ: How to do a minimal reproducible example reprex for beginners