I don't have the d500, but it sounds like something is turned on that does not allow RAW. HDR comes to mind, that will prevent RAW. I'm not sure what else might disallows. You could probably do a reset, but it would be nice to find the conflict for next time. Start with checking the HDR setting.