IMDTouchKnowledge BaseShop main store

Troubleshooting

WinCC Flexible Migration Fails at 9% on Missing SQL Database

HMI and touchscreens Published 5 min read

Short answer

A migration that stops at 9% with an SQL database message means TIA Portal could not open a database the WinCC flexible source project depends on. Read the Migration log, restore access to that exact database or remove the obsolete external connection in WinCC flexible 2008, then start Migrate project from the project level and rerun.

On this page
  1. What the 9% stop actually tells you
  2. Why an SQL database blocks the conversion
  3. Source-project checks before another attempt
  4. Example: a 9% stop on a project with two external connections
  5. Fix, then rerun the migration
  6. Questions asked

The migration stops at 9% because TIA Portal cannot open an SQL database that the WinCC flexible source project depends on. The error window links to the Migration log; the first error entry there names the database. Restore access to that exact database or remove the obsolete external connection from the source project in WinCC flexible 2008, then run Migrate project from the TIA Portal start view, not from a panel inside a project tree, and let the run pass 9%.

What the 9% stop actually tells you #

A project migration converts an engineering project from one engineering system's format into another's. It is not a download to a panel, and it is not a compile. That matters here because a failure while reading the source project needs a project-access diagnosis before anything about panel communication or target hardware is relevant.

The percentage is a progress position, not an error code. It says the conversion reached the same blocking item every run, which is exactly what you expect when a named resource is missing. The real diagnosis lives in the Migration log: the first error line names the database the converter could not open, usually along with a server, instance or path. Later errors in the same log are often consequences of that first failed access, so record the complete text before acting on anything else in it.

Why an SQL database blocks the conversion #

WinCC flexible stores engineering project data in an SQL database on the engineering station, and a project can also reference external databases through configured connections for logging or recipes. Both kinds of dependency must be reachable for the converter to read the project.

The two kinds have different remedies:

  • A project-storage database that is missing, detached or unreachable: restore the actual database files or repair the database service. Creating an empty database with the same name does not restore the content and the conversion will fail again or silently lose that data.
  • An external application connection that is no longer used: remove that connection in the WinCC flexible 2008 source project, then review every tag, script and function that referenced it. Removing a connection changes application behavior, so treat it as an engineering change, not a migration checkbox.

Which case you have is decided by the name and context in the Migration log. A database named like the engineering project itself points to project storage; a database named after a process, line or historian points to an external connection.

Source-project checks before another attempt #

Work through these in order and keep the database investigation separate from device questions. A different destination panel never repairs a source database the converter cannot read.

  1. Preserve a recoverable copy. Archive the source project with the WinCC flexible 2008 backup workflow before editing anything, so the retained copy stays independent of the migration attempt.
  2. Open the real source project in WinCC flexible 2008, not a freshly created stand-in. If it opens and its screens, tags and connections are readable, the source storage is healthy and the fault is in what the migration environment can reach.
  3. Match the logged database name to its role: project storage on this station, a project on another station, or an external connection configured in the source. Record server, instance and path where shown.
  4. Check access at that location. For a local database, confirm the database service is running and the files exist at the path the log shows. For a network location, confirm reachability, service state and access rights. If the source editor itself reports an unavailable database at startup, reinstall the WinCC flexible database server component before going further.
  5. Confirm the migration path exists for your combination: the installed TIA Portal version must support conversion from your exact WinCC flexible 2008 service pack to your selected target panel. The general migration workflow is covered in article:how-to-migrate-a-wincc-flexible-project-to-tia-portal, which assumes the source project is fully readable.

If step 2 succeeds but the migration still cannot reach the same database, compare the migration environment's access rights and installed components against the environment where the source opens. Working access in one environment does not prove the migration process has the same access.

Example: a 9% stop on a project with two external connections #

Say the WinCC flexible 2008 project has one storage database on the engineering station and two configured external connections: a logging database and a retired batch database that was decommissioned years ago. The migration reaches 9%, the error window names the retired batch database, and the Migration log's first red line says that database is unavailable.

Decision for this case: the two external connections are not the same problem. The logging database is still needed, so its server and service must be reachable from the migration station. The batch database is genuinely unused, so open the source in WinCC flexible 2008, delete that one connection, and check the tags and scripts that referenced it. Save, reopen the source to confirm it stays readable, then run Migrate project from the TIA Portal start view with the source file selected directly. The run now passes 9% because the only unreadable resource has been removed by design, and the remaining dependencies resolve. That is the same arithmetic the log performs: 1 unavailable database out of the project's referenced set was the single blocking item, and removing it leaves 0 blockers.

If instead the log had named the project's own storage database, the fix would be the other branch: restore or reattach those database files and start the database service, because no edit in the source project can substitute for the project's own storage.

Fix, then rerun the migration #

With the database question settled, the rerun is short:

  1. Open TIA Portal and choose Migrate project from the start view, pointing at the repaired WinCC flexible 2008 project file.
  2. Let the conversion finish, then read the migration report even on success. Warnings often mark screens, connections or functions that changed during conversion.
  3. Compare the converted project against the retained source copy: screens, tags, connections and application functions should all be present.
  4. Compile the target project and resolve every error; review each warning for a changed feature or device capability.
  5. Test against the real controller on an isolated bench: correct tag values, connection status, and the application functions that touched the removed or restored database.

Passing the old 9% point is not acceptance. A conversion is accepted when it completes without a database-access error, compiles clean, and behaves correctly against the controller, with the migration report's warnings accounted for one by one.

Questions asked

What if WinCC flexible 2008 cannot open the source project either?

Then the fault is in the source environment, not in TIA Portal. Check that the local WinCC flexible database service is running and, if it is stopped or the installation is broken, reinstall the WinCC flexible database server component. Repair source access before attempting the migration again.

Does an empty database with the same name fix the 9% stop?

No. Creating an empty database with the logged name gives the converter a reachable target with no content inside it, so the conversion fails again or silently loses the project data. Restore the actual database files or repair the database service so the real content is readable.

Why should Migrate project run from the start view instead of inside a project?

The migration converts an engineering project file from one format into another, and starting it at the project level keeps the source and target handling clean. Starting from inside an opened project tree mixes migration with an already open context and gives you less useful log output when the source cannot be read.

How do I know the migration fully succeeded after it passes 9%?

Passing the old stop point only proves the blocking database is resolved. Accept the conversion when it completes without a database-access error, compiles with no errors, the migration report warnings are reviewed one by one, and the project behaves correctly against the real controller on an isolated bench.

Keep reading

  • Troubleshooting

    Fixing a PCS 7 OS download that fails with SQL errors

    The transfer fails because the target-side WinCC SQL databases, the CC_* copies, stay attached to SQL Server or sit in RECOVERY_PENDING, so WinCCOM cannot replace them. Close Runtime and all editors, reboot the target, remove the obsolete CC_* databases through the SQL administration layer rather than by deleting .mdf files, delete the stale CC_OM DSN, then run one clean download.

    HMI and touchscreens

  • How-to

    How to Migrate a ProTool HMI Project to a New Touch Panel

    A discontinued ProTool-era panel is replaceable without a rewrite only when the editable project file exists: migrate it under WinCC flexible 2008 with Service Pack 2, Advanced edition for ProTool Pro projects, then review every conversion message and adapt tags and screens for the chosen target. Without the .ptp file, budget the job as a rebuild.

    HMI and touchscreens

  • Troubleshooting

    Importing a ProTool .lib library into WinCC Flexible

    WinCC flexible cannot import a ProTool .lib object library, and no utility converts .lib files to the .wlf format it expects. Plan the OP270-to-TP177 migration around reusing an existing .wlf library and rebuilding the remaining objects in the TP177 project, then verify each object on the panel.

    HMI and touchscreens

Why the unit and format pattern are missing from a Unified I/O field