Bro,
Has this problem been persistent from the time you took the car? Does the error go away after a while and your car functions properly?
If the error is persistent and you got this car from a 2nd hand dealer. Sounds to me that
1) the dealer/seller has swapped/replaced the Head Unit (HU), OR
2) updated the car's software (programming) but somehow had not coded the CCC to your car after programming.
Coding the unit to your car is not an issue (if scenario 2). Just bring the car back to dealer/seller and ask him to code the HU to your car. If he has Progman or ISTA/P (highly unlikely!) he can code the HU.
If it is scenario 1, then might be a little more complicated la. If the HU he replaced/swapped is a used unit then the HU will have the VIN number of the original donor car. BMW has made their electronic equipments which have EEPROM on them to store the VIN number on the parts itself, like the CCC, SZL, etc... So, you would need to change the VIN number of the used part to your car's VIN number and then proceed to code the product. This is why, most of the time you cannot direct swap most electronics in BMWs with a used part one.