You should encode the firmid to numeric format and this can be achieved with the following command:
encode firmid , generate(firmidn)
then use firmidn instead of firmid and declare the panel data again by
sort firmid year
xtset firmid year
You should be patient and solve the problem via
www.google.com next time.
Good luck!