Barkie said:
@ Sunil, on my wifes e46 the earth on the right was not good. Replace it with a good solid earth and all was OK.
+1
Check the earth lug on the harness. They also have a tendancy of melting the plastic and shorting out. If that is the case, use some hot glue to prevent the short circuit.
This happened to me on my E46 and on my mom's.
Oh, and if you don't detect this quick enough, it actually burns the male pin on the tail light cluster... no jokes!