It recognizes the id variable, that is not the problem. You'll need to remove the duplicates in the ID variable. I suspect you have some sort of panel data where the ID var is repeated and so you'd need to specify multiple variables to identify the panel. Something like ID & year or ID and company. To inspect whether your ID variable uniquely identifies the observations (as reshape requires), use the following commands:
isid ID
duplicates report ID
isid ID year
duplicates report ID year
If this is not the source of the problem, you'd need to show a minimum working example of your data structure and the -reshape- code you ran in order for someone to be able to diagnose your issue.