Problem Overview
When migrating a legacy SIMATIC project to TIA Portal, engineers frequently encounter the following error when attempting to import the HMI portion of a WinCC flexible 2008 SP2 or SP3 project:
The expected sql instance TECLA-PC\WINCCPLUSMIG is not available. The migration option for V 11.0 or WinCCflexible 2008 SP2/SP3 is not installed.
This error blocks the HMI migration while the PLC part of the same project imports cleanly. The message identifies two distinct root causes that must be addressed independently: a missing named SQL Server instance and a missing TIA Portal installation component. Both must be corrected for the import to proceed.
The error typically appears in environments with the following software stack:
- STEP 7 V5.4 or V5.5 for the PLC program
- WinCC flexible 2008 SP2 or SP3 for the HMI program
- TIA Portal V11 SP2 (or V12/V13 with matching migration option) installed with default options
- Optional: ProTool project that was previously converted to WinCC flexible 2007 or 2008
The migration sequence should normally convert the PLC program directly, then migrate the WinCC flexible HMI project into the TIA Portal HMI component. When the migration component is absent from the TIA Portal installation, the import halts before any data conversion takes place and the migration tool cannot initialize the temporary SQL store.
Error Message Decoded
The error string contains two failure conditions stacked together. Understanding them is required to apply the correct fix without a full reinstall.
| Token in Error | Meaning | Trigger |
|---|---|---|
| expected sql instance TECLA-PC\WINCCPLUSMIG | The migration tool cannot find the SQL Server named instance WINCCPLUSMIG on the local computer (TECLA-PC is the host name). | SQL Server was never installed with the TIA Portal setup, the SQL service is stopped, the SQL Browser is disabled, or the instance was removed by a manual cleanup. |
| migration option for V 11.0 or WinCCflexible 2008 SP2/SP3 is not installed | The TIA Portal setup component that performs the WinCC flexible 2008 SP2/SP3 to TIA Portal conversion is absent from disk. | The setup was run with default Typical install path, which does not include legacy migration add-ons. |
Root Cause Analysis
The error contains two failure modes that must be resolved in sequence.
Cause 1: Missing SQL Server Instance
The TIA Portal migration tool uses a named SQL Server instance to temporarily hold project data during the import process. The instance name follows the pattern <COMPUTERNAME>\WINCCPLUSMIG. If SQL Server is not installed, the instance was never created, the SQL Server service is stopped, or the SQL Browser service is disabled, the migration tool cannot find the data store it expects and aborts before the project is read.
Cause 2: Missing Migration Installation Option
The TIA Portal setup program offers optional components in a tree structure. The WinCC flexible 2008 SP2/SP3 migration option is not selected by default. If the user accepts the default installation, this option is unchecked, the migration DLLs are not copied to disk, and the migration wizard reports the option as missing on the next launch.
This is a common oversight because:
- The TIA Portal setup does not highlight this option as required for users migrating legacy projects
- The default Typical install path skips it entirely
- The Custom install path shows the option but does not enable it unless manually checked
- The setup readme lists it as optional, which many users read as "not needed"
Prerequisites Check
Before attempting the fix, verify the following system conditions. Mismatched prerequisites are a common secondary cause of migration failure that persists even after the migration option is installed.
| Component | Required State | Verification Method |
|---|---|---|
| STEP 7 V5.5 SPx | Installed with valid license | SIMATIC Manager → Help → About |
| WinCC flexible 2008 SP2/SP3 | Installed with valid license | WinCC flexible ES → Help → About |
| TIA Portal V11 SP2 or later | Installed with valid license | Start → Siemens Automation → TIA Portal |
| Administrator rights | Required for setup and SQL configuration | UAC prompt or local admin group membership |
| SQL Server 2005 / 2008 R2 / 2012 | Installed by TIA Portal setup | SQL Server Configuration Manager |
| Windows version | Windows 7 SP1 or Windows Server 2008 R2 or later | winver command |
| Disk space | 5–10 GB free for installation and project storage | Disk Management |
| Visual C++ Runtimes | 2005, 2008, 2010, 2012, 2013, 2015, 2017 present | Control Panel → Programs and Features |
Verify the existing SQL instance state before reinstalling. Open SQL Server Configuration Manager and check for the WINCCPLUSMIG named instance under SQL Server Services. If the service is stopped, start it and retry the migration. If the instance does not exist at all, the SQL Server installation is missing or was removed, and a repair of the TIA Portal installation is required.
Solution: Install the Missing Migration Option
The primary fix is a modification of the existing TIA Portal installation to enable the WinCC flexible 2008 SP2/SP3 migration option. A full uninstall is not required and risks destabilizing the working STEP 7 V5.5 and WinCC flexible installations.
- Close TIA Portal, WinCC flexible ES, and SIMATIC Manager to release file locks.
- Insert or mount the original TIA Portal installation media (DVD, ISO, or downloaded setup folder).
- Browse to the
Setupdirectory on the installation media and double-clickStart.exe. - The TIA Portal setup detects the existing installation and offers a maintenance mode. Select Modify or Custom Installation.
- In the component tree, expand the following nodes (exact labels vary by TIA Portal version):
- SIMATIC TIA Portal
- Options / Optional Components
- Migration
- WinCC flexible Migration
- Check the option labeled WinCC flexible 2008 SP2/SP3 Migration. In TIA V11 SP2 this is a single checkbox; in TIA V13 and later it is found under Options → Migration → WinCC flexible 2008.
- Optionally enable other missing migration packages: STEP 7 V5.x migration, ProTool to WinCC flexible migration, WinCC Migration Tool.
- Click Next through the license agreement screens. The setup re-evaluates the SQL Server instance and creates the
WINCCPLUSMIGnamed instance if it is missing. - Click Install and wait for completion. Setup configures SQL Server, creates the instance, registers the migration DLLs, and copies the ProTool converter binaries.
- Reboot the PC when prompted. The reboot is required to release the SQL Server service locks.
If the original installation media is unavailable, download the same TIA Portal version from the Siemens Industry Online Support portal using your Siemens customer account. The setup program verifies the existing installation automatically and runs in Modify mode without re-requesting the license key from the server.
WINCCPLUSMIG instance and require a full SQL Server removal and reinstall.SQL Server Configuration
After the modified install completes, verify the SQL instance exists and is running before launching any migration.
- Open SQL Server Configuration Manager (Start → Programs → Microsoft SQL Server → Configuration Tools).
- Select SQL Server Services in the left pane.
- Confirm a service named
SQL Server (WINCCPLUSMIG)is present and in the Running state. The service account is typicallyNT AUTHORITY\SYSTEMorNT Service\MSSQL$WINCCPLUSMIG. - If stopped, right-click and select Start. Set the Start Mode property to Automatic for persistence across reboots.
- Confirm SQL Server Browser is also running. The browser resolves the named instance to a TCP port.
- Open SQL Server Management Studio (if installed) and connect to
TECLA-PC\WINCCPLUSMIGusing Windows Authentication to confirm end-to-end connectivity.
The instance uses dynamic TCP port allocation by default. If Windows Firewall is enabled, the SQL Browser service must be running to allow the migration tool to resolve the instance name to a port. The TIA Portal setup normally configures the firewall exception automatically, but third-party firewalls (Symantec, McAfee, Trend Micro) may block the traffic silently and require a manual rule for sqlservr.exe and UDP port 1434.
WINCCPLUSMIG instance is created but the migration tool still cannot connect, check that the SQL Server service account has read/write permissions on the migration database directory, typically C:\Program Files\Microsoft SQL Server\MSSQL.x\MSSQL\DATA. Reset the permissions with icacls "C:\Program Files\Microsoft SQL Server\MSSQL.x\MSSQL\DATA" /grant "NT Service\MSSQL$WINCCPLUSMIG":(OI)(CI)F /T.Migration Workflow
With the migration option installed and the SQL instance running, perform the legacy-to-TIA conversion in the correct order. The PLC part must be converted first because the TIA Portal migration tool creates device references that the HMI import reuses.
- Open the original STEP 7 V5.5 project in SIMATIC Manager and save a versioned backup copy of the
.s7pfile and project folder. - Recompile the STEP 7 program (Blocks → Compile All) to surface any pre-existing errors that the migration tool may misreport.
- Launch TIA Portal and select Project → Open existing project → Migrate STEP 7 project.
- Navigate to the STEP 7 V5.5 project file (
.s7por.s7f) and click Open. - The migration wizard analyzes the project, lists convertible components, and warns about unsupported features (e.g., GRAPH v5.0 source code, non-DB STL programming, certain SFC constructs).
- After PLC conversion completes, the wizard offers to migrate the associated WinCC flexible HMI project. Select the
.hmifile or the WinCC flexible 2008 project folder. - The WinCC flexible import reads the HMI tags, screens, alarms, recipes, and scripts. The SQL instance
WINCCPLUSMIGis used as temporary storage during this process. - Review the migration log for warnings. Common warnings include unsupported VB scripts, custom controls, and obsolete HMI tags.
- Save the resulting TIA Portal project. Compile both the PLC and HMI to surface any post-migration issues that the wizard may have skipped.
Compatibility Matrix
| Legacy Source | TIA Portal Target | Migration Package Required | Notes |
|---|---|---|---|
| STEP 7 V5.4 + ProTool 6.0 | V11 SP2 to V15.1 | ProTool → WinCC flexible → TIA | Two-step conversion; ProTool project must first be converted to WinCC flexible 2007 or 2008 |
| STEP 7 V5.5 + WinCC flexible 2007 | V11 SP2 to V15.1 | WinCC flexible 2008 migration | Direct migration; cleanest path |
| STEP 7 V5.5 + WinCC flexible 2008 SP2 | V11 SP2 to V15.1 | WinCC flexible 2008 SP2/SP3 migration | Most common field scenario; matches the error in this article |
| STEP 7 V5.5 + WinCC flexible 2008 SP3 | V11 SP2 to V15.1 | WinCC flexible 2008 SP2/SP3 migration | Same option as SP2; SP3 native support confirmed in V12+ |
| STEP 7 V5.6 + WinCC flexible 2008 SP4/SP5 | V14 to V15.1 | WinCC flexible 2008 SP4/SP5 migration | Different migration package; cannot use the SP2/SP3 option |
TIA Portal V16 and later versions dropped support for the WinCC flexible 2008 SP2/SP3 migration option. Projects targeting these versions must first be migrated to an intermediate TIA Portal version (V15.1 with the SP2/SP3 option) and then saved forward. The SP4/SP5 migration option remains in V16 for SP4/SP5 source projects only.
Common Pitfalls and Workarounds
Migration Option Greyed Out
If the WinCC flexible migration checkbox is greyed out in the setup, the installed WinCC flexible ES version does not match what the TIA Portal setup expects. Verify the installed WinCC flexible version matches the supported pair list in the TIA Portal setup readme. For example, TIA V11 SP2 supports WinCC flexible 2008 SP2 only; attempting to install the SP2/SP3 migration option requires WinCC flexible 2008 SP2 or SP3 already present on the PC.
SQL Instance Created But Empty
If WINCCPLUSMIG exists but contains no databases, the migration tool may still fail with a different error. Run the migration tool's database initialization manually:
- Open a command prompt as Administrator.
- Navigate to
C:\Program Files\Siemens\Automation\Migrate(path varies by TIA version). - Execute
MigrateDB.exe /init /instance WINCCPLUSMIG.
Partial Project Migration
If the PLC part migrates but the HMI part fails repeatedly, check for corrupt WinCC flexible project files. Open the original WinCC flexible project in WinCC flexible ES, recompile it, save, and retry. Corrupt HMI tags or screens are a frequent source of silent migration failure.
License Conflict
WinCC flexible 2008 SP2 and SP3 cannot coexist on the same PC. Attempting to install both will fail or roll back the SP2 install. The TIA Portal setup checks for this condition and refuses to install the migration option if a version conflict is detected.
User Account Control (UAC)
The migration tool writes to %ProgramData%\Siemens\Automation and to the SQL Server data directory. UAC redirection can cause silent write failures. Always run the migration with elevated rights (right-click → Run as administrator) on Windows 7 / Server 2008 R2 systems. On Windows 10, run the TIA Portal from an elevated shortcut.
Antivirus Interference
Real-time antivirus scanners (Windows Defender, Kaspersky, ESET) can lock .dll files during the setup and prevent the migration DLLs from registering. Temporarily disable real-time scanning during the Modify install and the first migration attempt.
Verification Steps
After the modified install completes, validate the migration is fully functional before committing the original project to a one-way conversion.
- Open TIA Portal and create a blank test project with one HMI device (e.g., KTP700 Basic).
- Use the migration wizard to import a small WinCC flexible 2008 SP2/SP3 test project (a single screen with one tag is sufficient).
- Confirm the HMI part imports without error and the imported tag is visible in the HMI tag table.
- Open the migrated TIA project, compile the HMI, and download to a test panel (or simulate via PLCSIM and the TIA HMI Runtime).
- Check the migration log at
%LOCALAPPDATA%\Siemens\Automation\Log\Migrate.logfor warnings. The presence of the file confirms the migration DLLs are registered correctly. - Run a full migration on a production project. Save the original
.s7pand WinCC flexible project files in a versioned backup directory named with the date stamp (e.g.,Project_Backup_2025-01-15).
A successful first import typically takes 5–20 minutes for a project with 50 HMI tags and 20 screens. Larger projects (500+ tags, 100+ screens) can take 30–90 minutes depending on disk I/O performance and SQL Server throughput.
Advanced: Manual Component Registration
If the modified install completes but the migration wizard still reports the option as missing, manually re-register the migration DLLs and verify Visual C++ runtime dependencies.
- Open an elevated command prompt.
- Navigate to
C:\Program Files\Siemens\Automation\Migrate\Bin(path varies by TIA version). - Run
regsvr32 /u *.dllto unregister, thenregsvr32 *.dllto re-register. - Verify the Visual C++ runtimes are present with
where /R "C:\Windows\WinSxS" vcruntime140.dll. Missing runtimes must be installed from the TIA Portal setup media underSupport\VcRedist. - Reboot and retry the migration.
Check the Windows Event Viewer under Application for source Siemens Migration events that may indicate the specific DLL that failed to load. Common offenders are missing Visual C++ runtime libraries. The TIA Portal setup includes the correct versions of the 2005, 2008, 2010, 2012, 2013, 2015, and 2017 runtimes; if the install was performed without administrator rights, the runtimes may not have been installed.
Siemens Official References
For the authoritative migration procedure and a full list of supported source projects per TIA Portal version, consult the Siemens Industry Online Support entries below:
- Siemens Support Entry 58857225 — Migrating STEP 7 / WinCC flexible Projects to TIA Portal
- Siemens Support Entry 62100731 — STEP 7 V5 Project Migration FAQ (German)
- TIA Portal Installation Guide — Setup Options and Migration Components
Frequently Asked Questions
Why does the PLC part of the project import successfully while the HMI part fails?
The PLC and HMI migration use independent code paths in TIA Portal. The PLC migrator reads S7 program files directly from the STEP 7 V5.5 project, while the HMI migrator relies on the WinCC flexible 2008 SP2/SP3 migration option and the WINCCPLUSMIG SQL Server instance. A missing or partially installed TIA Portal setup is the typical cause of this asymmetry, and both must be addressed for the full migration to complete.
Can I install only the WinCC flexible 2008 SP2 migration option without a full TIA Portal install?
No. The WinCC flexible migration option is a child component of the TIA Portal setup and cannot be installed independently. However, a Modify or Custom install only adds the missing component without disturbing the rest of the installation, including the existing STEP 7 V5.5 and WinCC flexible ES installations.
Is WinCC flexible 2008 SP2 migration supported in TIA Portal V16 or later?
No. TIA Portal V16 dropped the WinCC flexible 2008 SP2/SP3 migration option. Projects must be migrated first to TIA Portal V15.1 (the last version with full SP2/SP3 support) and then saved forward to V16, V17, or V18. The SP4/SP5 migration option remains in V16 for SP4/SP5 source projects only.
What if the WINCCPLUSMIG SQL instance does not appear after the modified install?
Verify that the SQL Server service is not disabled in Windows Services. Open SQL Server Configuration Manager, confirm the instance is listed under SQL Server Services, and check that the SQL Server Browser service is running. If the instance is still missing, repair the TIA Portal installation via Control Panel → Programs → Siemens TIA Portal → Repair. A Repair reinstalls SQL Server and recreates the named instance without removing project data.
Does the original ProTool project need to be converted to WinCC flexible 2008 before TIA Portal migration?
Yes. TIA Portal cannot import ProTool projects directly. The conversion path is ProTool → WinCC flexible 2007 or 2008 → TIA Portal. ProTool to WinCC flexible 2008 conversion requires ProTool V6.0 SP2 or later and WinCC flexible 2008 with the ProTool converter option installed. After this two-step conversion, the resulting WinCC flexible 2008 project is migrated to TIA Portal using the procedure described above.