Hi,
I have two panel data-set and what to merge the two data set. I use the following code but I receive the error "r(459); variable firmid does not uniquely identify observations in the master data". I double-checked for duplicate observation and no duplicate observation reported. I would be grateful if you help regarding the error.

Code: megre dataset1 with dataset2
merge 1:1 firmid using dataset2
or
merge m:1 firmid using dataset2

Kindly,
Mahmoud