Why am I facing the error when I try to convert long data set into wide data set? Please help my dear friends

Please, don't post screenshots, it's very difficult to help you with them. It's much easier to help you if you provide a reprex.

If you've never heard of a reprex before, you might want to start by reading this FAQ: