you will need a star Mercedes scanner or equivalent to retrieve the fault codes from it , what are you using to read it ?
if this is the first time it happened ?you can try reset it in the below procedure but if you have a bad micro switch for door , trunk, hood, bad module etc...
it want reset but you can try .have you checked all fuses
Try this if you have not already
Master reset Procedure
1- Disconnect Battery Cables ( Negative & Positive Cables )
2- Hold cables Together for 60 secs ,then let go
3- Wait 15 minutes
4- Make sure all doors are closed
5- Reconnect battery Cables
6- Lock & unlock the vehicles using the key from driver door side (if you have a key fob with no blade key, just lock & unlock using the key fob buttons)
7- Enter the vehicle and attempt to start
Please let me know
ASE Certified Technician