Troubleshooting
Why WinCC Professional V15 setup fails on pending rename operations
Short answer
The WinCC Runtime Professional V15 bundle fails on setup unit FIRSTINSTSQL2014STD with 'ClassicProduct setup result: 2: There are pending rename operations' because Windows holds a non-empty PendingFileRenameOperations value that the SQL Server rules check rejects. Repair and reinstall cannot clear it. Restart until the value stays absent — delete only that value if a restart will not clear it — then run the bundle clean, reapply the update, and re-check the queue after every restart.
On this page
- Why does WinCC V15 report there is no access to the database?
- Which line in the WinCC bundle log decides the case?
- Why does a pending rename queue block SQL Server setup?
- How do I read PendingFileRenameOperations and count the queued operations?
- How do I clear the queue so the WinCC V15 bundle installs?
- Why do repair and reinstall repeat the same failure?
- Does a running SQL instance in Management Studio prove WinCC is fine?
- What proves the fix is complete?
- Questions asked
The build error "Creation of runtime project failed. There is no access to the database" on a Windows 10 1809 PC running TIA Portal V15 Update 4 and WinCC Professional V15 Update 4 is not a database fault — it is an installation that never finished. The bundle log names the cause: setup unit FIRSTINSTSQL2014STD, the piece that installs the SQL Server engine the WinCC runtime needs, stopped with "ClassicProduct setup result: 2: There are pending rename operations". Windows holds a non-empty queue of pending file renames, SQL Server setup refuses to install against it, and the runtime project has no database to be written into. Repair and reinstall repeat the failure, and running everything as administrator changes nothing. Clear the queue — restart until PendingFileRenameOperations stays absent, deleting only that one registry value if a restart will not — then run the bundle clean and reapply Update 4.
Why does WinCC V15 report there is no access to the database? #
Because the SQL Server part of the WinCC Runtime Professional V15 bundle never finished installing: FIRSTINSTSQL2014STD, the setup unit that creates the SQL instance the runtime project needs, aborted with ClassicProduct setup result 2, so the HMI build has no database to write the runtime project into.
The editor never touches that database, which is why PLC work, compilation and controller downloads behave normally while only the HMI build fails: runtime project generation is the one step that writes into the WinCC SQL instance. When the unit aborts, the instance does not exist, and every build reports the missing database instead of the real cause. A SQL service in the Windows services list, or a server you connect to in SQL Server Management Studio, belongs to whatever product installed it — it is not evidence that the WinCC instance exists.
Which line in the WinCC bundle log decides the case? #
The line that decides it is FAIL! SetupUnit (FIRSTINSTSQL2014STD) Failed ClassicProductAddLocal, paired with the installer's own reason, ClassicProduct setup result: 2: There are pending rename operations: the first-install SQL unit died because the rename queue was non-empty, and every other unit in the run completed.
Open the log for the bundle named SIMATIC WinCC Runtime Professional V15.0 and search for ERROR and FAIL!. The neighbouring lines tell you the rest:
OK SetupUnit (SQLNCLI) Complete Foreign Reinstall— the SQL native client reinstalled as a foreign product; this line is normal and does not mean the engine itself installed.- Checkpoint lines reporting
Complete— everything outside the SQL unit ran clean, so nothing else in the bundle needs attention.
If the failing unit or the result text differs on your machine, stop here: the pending-rename fix does not apply, and the usual alternative cause is another SQL Server product or instance left behind by other software.
Why does a pending rename queue block SQL Server setup? #
Because SQL Server setup runs a pre-installation rules check that fails on any non-empty PendingFileRenameOperations value, and Windows fills that value whenever an installer must replace or delete a file that was locked while the system was running; the check treats surviving queued work as an unsafe machine state.
The value lives at HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager and is processed early in every boot by the Windows session manager, smss.exe, which carries out each queued move or delete the installer could not perform while the file was in use. An entry whose target path cannot be resolved at boot survives and waits for the next restart. Windows updates, the TIA updater stage in your install sequence, antivirus software and earlier SQL setups all write entries into the value, so the queued work rarely names the WinCC installer. SQL Server setup is not alone in refusing it — patched SQL Server engines stop on the same check — and a setup that asks for a restart and never gets past it is a cousin fault: the WinCC SP4 setup stuck on the reboot request covers that variant.
How do I read PendingFileRenameOperations and count the queued operations? #
Read the value with one PowerShell command and count the operations in pairs: each operation is two lines, a source path and a destination path, so a value with four lines holds two pending operations — and a value with any lines at all fails the SQL rules check.
Run this in an elevated PowerShell window:
Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager' -Name PendingFileRenameOperations
A report that the property does not exist means the queue is clear. A populated result is a multi-string value holding, in order, one source path and one destination path for every queued operation. An example value looks like this:
\??\C:\Windows\Temp\setup00001.tmp
\??\C:\Windows\Temp\native_client_old.dll
\??\C:\Windows\Temp\native_client_new.dll
Four lines divided by two lines per operation is two queued operations. The blank second line is the empty destination of a delete-on-reboot: Windows removes setup00001.tmp at the next restart. Lines three and four move the native client file from its old name to its new one. The count never softens the rules check — one line or forty, a non-empty value fails it identically — so the arithmetic only tells you how much work a restart has left to finish.
How do I clear the queue so the WinCC V15 bundle installs? #
Restart first and re-read the value; only if a full restart leaves it populated do you delete the single value PendingFileRenameOperations — never the Session Manager key — then restart again and confirm it stays empty before starting the bundle.
Back up the Session Manager key to a file before you edit anything; the export makes the deletion reversible. Then work this sequence:
- Finish any pending Windows updates, then use Restart — not sign-out or sleep — and let the machine come all the way back.
- Re-read PendingFileRenameOperations with the command above. The expected reading is no value at all.
- If entries survive and point at paths from uninstalled or unrecognised software, export the key, then remove only the value with
Remove-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager' -Name PendingFileRenameOperations. - Restart once more and re-read. The value must stay absent; if it returns at every boot, compare the entries before and after a restart to see which component keeps writing it.
- Run the SIMATIC WinCC Runtime Professional V15.0 bundle as administrator. If the bundle or a TIA updater stage requests a restart, take it and re-check the value between stages.
- If you exported queued work that still matters, import the file back after the software installs, and the next restart performs those renames.
The same value causes an identical install loop on other releases; WinCC Professional V12 installation loop around this registry conflict documents the same behaviour, so check the value before any WinCC install rather than only after a failure.
Why do repair and reinstall repeat the same failure? #
Repair, uninstall and reinstall rerun the identical FIRSTINSTSQL2014STD unit against the same registry queue, so they fail at the same rules check with the same result 2; running every step as administrator changes nothing because elevation never clears a pending rename queue.
The queue is Windows state, not installer state, so no WinCC repair touches it. Each reinstall replays the same unit, which runs the same check against the same value and stops at the same point. The SIMATIC HMI and SIMATIC HMI CS group memberships you already hold matter later, for runtime access on a working installation; they cannot help a setup unit that never ran. Before the next attempt, record which SQL Server products and instances Programs and Features and the services list show, so a half-registered instance from the failed runs can be recognized and removed with the vendor's uninstaller before the clean install.
Does a running SQL instance in Management Studio prove WinCC is fine? #
No — Management Studio connects to whatever instances exist, and other software such as historians brings its own SQL Server, so a full services list says nothing about the instance FIRSTINSTSQL2014STD was supposed to create for WinCC.
Each instance is separate: another product's engine answers queries and runs its own applications regardless of what the WinCC bundle did. The PLC side proves nothing here either — engineering, compile and controller download never open the WinCC database, which is why the editor looks healthy while the HMI build fails. The instance the runtime needs appears only after the SQL unit completes, as a SQL Server service installed alongside the WinCC software. Once it exists and runs, the runtime database behind it can be read for reports and analysis through the ODBC DSN documented for the WinCC runtime database.
What proves the fix is complete? #
Three readings close the case: the bundle log shows FIRSTINSTSQL2014STD Complete with no FAIL! line, the services list shows the WinCC SQL Server service running, and a compile and build of the HMI project creates the runtime project without the database error.
Work through these before returning the PC to service:
- The bundle log ends with the SQL unit reporting Complete and no
FAIL!anywhere in the run. - The Windows services list shows a SQL Server service installed by the WinCC software, set to start automatically.
- A compile of the HMI device followed by a build or load creates the runtime project; load it to the panel or PC station to confirm. A transfer that fails at this point is a different fault — the HMI detected but download fails case covers it.
- After one more full restart, the project still builds and PendingFileRenameOperations is still absent. A project that will not open after a healthy install is the separate WinCC HResult 0x8004610a project-open fault.
- Your account remains a member of the SIMATIC HMI and SIMATIC HMI CS groups; log off and on after any membership change.
The restart-and-rebuild at the end is the step people skip, and it is the only check that proves the queue has not quietly returned.
Questions asked
Why does PendingFileRenameOperations come back after every restart?
Either a component re-queues work at every boot or an entry points at a path the session manager cannot resolve, so it survives untouched. Record the value immediately before and after a restart and compare the lines: entries that persist unchanged are orphans waiting on a missing target, while fresh entries name the component still writing them. Finish or remove that component before running the WinCC bundle again.
Does the Windows computer name affect the WinCC SQL instance?
Yes. The vendor's installation documentation for WinCC Runtime Professional requires that after a computer name change you uninstall the SQL Server part and reinstall it, because the instance is tied to the name it was installed under. Set the final computer name before installing the bundle, so the first-install SQL unit builds the instance once against the name the PC will keep.
What are the SIMATIC HMI and SIMATIC HMI CS groups for?
They are local Windows groups the WinCC setup creates to carry the user rights the runtime needs. The account that runs the HMI project should belong to both; after any membership change, log off and back on so the new rights reach the session. Membership cannot rescue a failed install, but a missing membership will stop runtime even after a clean one.
Does the failed build damage the TIA Portal project files?
No. The error occurs while the runtime project is being generated, so the engineering project and its PLC data stay intact. If a project still misbehaves after the database works, close TIA Portal, delete the project's IM folder and compile again: the folder is recreated during compilation and rebuilds the internal project data. Keep a copy of the project before deleting anything inside it.
Is it safe to leave PendingFileRenameOperations deleted?
Yes. An absent value is the normal steady state of a healthy Windows installation; the value only exists while installers have queued rename work, and Windows recreates it the next time an installer needs it. Deleting it discards whatever work was pending at that moment, which is why you export the key first and import it back if the queued work still matters.