RTC:Fix caching and external changes by reporting an error code