Troubleshooting
Why a WinCC Flexible Save As copy fails while the original builds
Short answer
A Save As copy clears the read-only flag but does not prove the copy can build. Rebuild the unchanged copy first and judge it by the Error entries in the output window, not by the percent-done progress lines. If the untouched copy fails, repair the copy itself; if it builds, delete the buttons in halves and rebuild after each pass.

On this page
A Save As copy of a WinCC Flexible 2008 project that stops partway through compiling has solved the editing problem and inherited a build problem. The read-only flag on the original .hmi file only blocks edits; the original produces runtime because its project state compiles, not because it is locked. The copy is a new file the compiler has never processed, so treat it as its own project: rebuild it unchanged, judge the result by the Error entries in the output window rather than by the percent-done progress lines, and only then remove your buttons in halves, rebuilding after each pass.
What Save As clears and what it does not #
The read-only banner travels with the file, and Save As writes a fresh, editable project under a new name and path. That is the whole of what it does: it changes who may edit, not whether the project compiles. Keep the split explicit:
- Save As gives you an editable copy; it does not validate the copy's references or its project state.
- It does not check the device the copy compiles for.
- It does not prove the copy can generate the PC runtime.
The reported case separates cleanly along that line. The read-only original builds, and the untouched Save As copy reports compile errors, which moves the suspicion off the deleted buttons and onto the copy itself. Editability is the wrong acceptance test; a clean rebuild is the right one.
First test: rebuild the copy with no edits #
Run this before touching any screen object:
- Open the original read-only project and confirm it still builds. That is your baseline and your fallback.
- Make a fresh copy with Save As under a new name, and change nothing in it.
- Run Rebuild All on the copy.
- Read the complete message list, every entry with its severity, not just the last line.
Two outcomes decide everything after this. If the unchanged copy fails, the fault is in the copy: stop deleting buttons, because no amount of removing objects will find a fault that exists without them, and go to the copy checks below. If the unchanged copy builds, your deletions are the only suspects, and the bisection in the worked example below applies.
Read the compiler output, not the progress line #
The output window prints timestamped lines with a severity. Info lines carry progress: Compiling started, then percent done with steps remaining, then a Linking target line — the captured run shows Linking target 'Device_1' — that names the configured device. Error entries carry the verdict and name the screen, object, tag or script to fix.
In the log captured for this failure, the last visible progress line reads 38% done with 3156 steps remaining, and the follow-up confirms compile errors on the copy. The percentage narrows down roughly where the run stopped; only an Error entry says what to repair. The two measures do not map onto each other either: the same log shows 10% done at 4570 steps remaining and 14% done at 4365, so the percent column is not a step count.
Treat the final Compiling finished! line with the same suspicion. It reports that the run ended, not that it succeeded, and a copy that prints it can still generate no runtime. A percent-done line is progress; the verdict sits in the entries beside it — the same separation this page on how a DeltaV download separates status flags from progress lines makes for controller downloads.
Bisecting 12 deleted buttons in a Save As copy #
Inputs: the untouched copy builds clean, because the first test passed; 12 buttons are marked for deletion — an example count, since the case behind this article reports only that some buttons are no longer needed; and one rebuild pass means one full Rebuild All run, which is the unit every count below is measured in.
Rule in words: halve the pending set, rebuild, and let the message list steer you. If the build passes, the fault lives in the buttons not yet deleted, so delete half of those next. If it fails, the fault sits inside the set just deleted, so restore half of that set and rebuild again. Stop the moment an Error entry names an object.
Arithmetic: deleting one button at a time costs 12 rebuild passes. Halving shrinks the suspect set 12 to 6 to 3 to 2 to 1, which takes 4 passes, because 2^4 = 16 covers 12 suspects while 2^3 = 8 does not. One final clean rebuild on the repaired copy brings the worst case to 5 passes against 12.
Result: 5 rebuild passes instead of 12. No pass is free — the project in the reported case counts 4997 compiler steps at its 2% done mark, so a full run costs minutes on a project of that size.
Decision: bisect whenever the untouched copy builds, and stop at the first Error entry that names an object; fix what it names, rebuild once, and accept the copy when the list is free of Error entries and the runtime generates. If the untouched copy does not build, bisection is the wrong tool and the checks below are the right ones.
If the untouched copy still fails #
The deletions are innocent and the copy is the patient. Work these checks in order, rebuilding after each:
- Compare the target. Set the device the copy compiles for beside the original's; a wrong or empty target stops the build before a single screen compiles. If the message list complains about the runtime device type rather than about a screen object, the article on why a WinCC flexible Runtime device type is not valid for this version covers that failure on its own.
- Move the file. A copy parked on removable media, a network share or a path the tool cannot write its working files to can fail where the original on its own path passes. Save the copy into a plain local disk folder and rebuild.
- Suspect the file itself. If the tool misbehaves on open or the copy looks incomplete, make the copy again rather than repairing it; an interrupted save is one known way a project file ends up inconsistent, and the article on why WinCC Flexible 2008 closes a project after an interrupted save describes that mode of failure.
- Match the tool version. Build the copy on a station running the same WinCC Flexible release that built the original; if the copy is headed for a station on an earlier release, use the Save as version command in the Project menu, which stores the project in the format of an earlier release, instead of plain Save As.
The check that removes the failure is the diagnosis; record which one it was.
The decision for each case #
- Original builds, untouched copy fails: the fault is in the copy. Work the copy checks above and do not delete a single button.
- Original and untouched copy build, edited copy fails: bisect the deletions as the worked example shows, and stop at the first Error entry that names an object.
- Copy builds clean: generate the PC runtime on the engineering station and run it on a bench before it reaches a running machine — never download an unverified runtime onto a terminal in production. If the runtime comes up but still shows the old screens, the regeneration step was skipped, and the article on why WinCC Flexible edits do not show in runtime covers that case.
It is the only fallback you have.
Questions asked
Why does a WinCC Flexible 2008 project open read-only?
The file or the folder holding it carries the Windows read-only attribute, which is common when a project arrives from an archive, a backup share or optical media. The flag blocks editing only. Clear the attribute on the file to edit in place, or use Save As for an editable copy, and remember the copy still has to pass a full rebuild on its own.
Does Compiling finished mean the WinCC Flexible build succeeded?
No. That line only reports that the compiler run ended. Judge the build by the severity column in the output window: an Error entry stops runtime generation and names the screen, object, tag or script involved. If the run stops while Info lines still report steps remaining, the build was interrupted, and the absence of Error entries means the compile never reached a verdict.
How do I save a copy for an older version of WinCC Flexible?
Plain Save As keeps the current project format. To store a project or libraries in the format of an earlier WinCC Flexible release, use the Save as version command in the Project menu and pick the storage location, the project name and the target version in the dialog that opens. Use it when the copy must be edited on a station running that older release.
Should I download the runtime from the copy before it builds cleanly?
No. Produce the runtime on the engineering station only after Rebuild All finishes with no Error entries, and run it on a bench or a spare terminal before it reaches a machine in production. Keep the read-only original untouched until the copy has built and run clean, so a working fallback always exists.


