Sounds like your need to have the master key tought to the factory security immoblizer. The dealer will have to do this. I am assuming this is for a e39 and not your e34?
I have seen this happen several times during dead battery cars and jumped cars.