"Reload Variables" (Settings → Files) resets all Variable values to $null after upgrading to 2026.2.3
Hello Ruben Tapia,
Thank you for the update.
Yes, exactly. After using Reload Variables, all existing and newly created string variables stored in the [PRODUCT] database are set to $null. Variables stored in Vault (Database), as I understand it, remain unaffected.
After restarting the services normally, all variables remain intact.
However, the database file changes when new variables are added.
Best regards,
ddenk
"Reload Variables" (Settings → Files) resets all Variable values to $null after upgrading to 2026.2.3
Product / Version: PowerShell Universal 2026.2.3
Previous version: 2026.1.7
Environment: Windows Server, self-hosted, IIS-fronted
Database backend: SQLite (database.db)
Repository path: default .universal repository directory
Summary:
Creating new Variables works correctly. However, triggering "Reload Variables" under Settings → Files causes all existing Variables — both file-based (variables.ps1) and database-backed (-Database storage option) — to have their Value reset to $null. This effectively wipes previously working configuration (including Run-As credentials used by API endpoints) every time a reload is performed.
Steps to reproduce:
Run PowerShell Universal 2026.2.3 (upgraded from a prior 2026.1.7 release) with existing Variables configured (file-based and database-backed).
Navigate to Settings → Files.
Trigger "Reload Variables" (via the sync/reload action on that page).
Observe: all previously existing Variables now show Value = $null in Platform → Variables.
Newly created Variables (created after the reload) work fine until the next reload is triggered.
Downstream impact:
Because Run-As credential Variables lose their values after reload, API endpoints depending on them fail to start their proxy process:
"System.Exception: Failed to login user (1326). System.ComponentModel.Win32Exception (1326): The user name or password is incorrect.
at PowerShellUniversal.Automation.ProcessHelper.LogInOtherUser(...)
at PowerShellUniversal.Automation.JobProcessManager.StartProcessAsNewUser(...)
at PowerShellUniversal.Api.ApiGrpc.StartAsync(ExecutionEnvironment environment, Variable credential)
at PowerShellUniversal.Api.ApiService.AddEndpointAsync(Endpoint endpoint)
at PowerShellUniversal.Configuration.EndpointService.CreateAsync(...)"
Question for support:
Is this a known regression tied to the security fixes shipped in 2026.2.3 (CVE-2026-16801 — variable.ps1 escaping fix, and CVE-2026-16802 — secrets without a vault no longer written to variables.ps1)? Specifically:
Does the reload logic now fail to parse Variables written in the old (pre-2026.2.3) format, silently defaulting Value to $null instead of erroring?
Is this specific to database-backed Variables, file-based Variables, or both (we see it on both)?
Is there a way to prevent "Reload Variables" from wiping values until this is fixed, or a recommended manual recovery step after a reload occurs?