Getting error message when running a pivot_wide

Hi, welcome to the forum.

Just to add a bit more detail to @ Flm's request
A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need. Just do dput(mydata) where mydata is your data. Copy the output and paste it here.

For some general guidelines on how to ask questions on the forum have a look at FAQ: How to do a minimal reproducible example ( reprex ) for beginners