It sounds like you're encountering a limitation in where logging or archiving is disabled because the required license key is missing or not recognized.
: If the IPC or PC is shut down abruptly without closing the Runtime, active licenses may be marked as "defective" in the Automation License Manager (ALM) System Date Changes SIMATIC WinCC (TIA Portal) Runtime Advanced It sounds
As a result, data logging stops, and historical trends or alarm records are unavailable. The Fix: Close the Runtime