Resolving TIA Portal V11 SP1 License Expired Errors: ALM Recovery

David Krause14 min read
SiemensTIA PortalTroubleshooting
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Resolving TIA Portal V11 SP1 License Expired Errors: Automation License Manager Recovery Procedure

Engineers upgrading from earlier releases of Siemens TIA Portal to V11 SP1 frequently encounter an unexpected License Expired warning every time a ladder (LAD), function block (FB), or function (FC) editor is opened, even though the previous build never enforced a license check. The root cause is almost always a 21-day trial license that was silently activated during the first launch of TIA Portal V11 SP1, which then expires and is reported by the Automation License Manager (ALM). This reference documents the exact diagnostic path, the registry/service fingerprint that ALM uses to detect a corrupted license store, and the field-proven recovery sequence that avoids a full Windows rebuild.

Scope: TIA Portal V11 SP1 (build 11.1.0.0) with Automation License Manager V5.2 SP2 or later. Procedures also apply to V11 SP2 Update 2 and V12 transitions where the same trial/floating conflict is reported.

1. Problem Description and Symptom Matrix

The license warning is not always the same dialog. Matching the exact text to the recovery branch is critical, because Siemens separates Trial, Single User, Floating, and Master/Farm license enforcement into independent code paths inside CCLicSrv.exe.

Symptom Where It Appears ALM State Likely Root Cause
"License for TIA Portal V11 SP1 has expired" Editor open (LAD/FBD/ST/SCL) Trial expired, no valid license 21-day trial ran out; serial was never converted
"License key missing or invalid" (error 1001) Project compile / download ALM service not running CCLicenseService stopped or blocked by firewall
"Floating license not available on server" TIA Portal startup Floating server unreachable License server IP/port 4410/4411 mis-routed
"Trial license has been deactivated" although floating license is installed Startup + every editor Duplicate license types Trial coexisting with floating; ALM conflict
Editor continues but warning on every FB/FC Function block diagram edit Read-only / run-my-head-off mode License signature mismatch after upgrade
Critical: When TIA Portal V11 SP1 raises a license warning on every FB/FC open, the integrated download to the S7-1200/1500 target will fail with Error: Online connection cannot be established - License required. Treat the warning as a hard stop, not a soft nag.

2. Root Cause Analysis: How V11 SP1 Changes License Enforcement

Pre-SP1 releases of TIA Portal V11 (Basic, Comfort, and Professional) used a permissive license check that only triggered at compile time. SP1 tightened enforcement so that opening any FBD/FB/FC editor, dragging a block from the library, or invoking the Compile > Software (rebuild all) command calls CCLicSrv.dll via the local Automation License Manager (ALM) COM interface.

Three failure modes are responsible for roughly 90% of V11 SP1 license complaints:

  1. Silent 21-day trial activation. The first launch of TIA Portal V11 SP1 on a clean workstation checks the ALM store under %ProgramData%\Siemens\Automation\Licenses. If no valid license key is found, ALM transparently activates a 21-day trial and writes a registry marker under HKLM\SOFTWARE\Siemens\Automation\Trial\TIA_Portal_V11_SP1. After day 21, every editor call returns the expired warning.
  2. Trial/Floating coexistence. Engineers who upgrade a workstation that already hosts a floating license server still receive the trial because ALM prefers a locally-installed key when present. The trial and the floating client request collide, and ALM flags the trial as deactivated while still throwing the warning, producing the contradictory symptom quoted in the field report.
  3. Dispatch number mismatch. Online activation through the ALM web form requires the 20-digit Dispatch Number printed on the CoL (Certificate of License) plus the workstation-specific Host ID. V11 SP1 ALM hides the dispatch number field when a trial is selected, so engineers cannot complete a serial-to-license conversion without re-running the installer.

3. Architecture: Automation License Manager (ALM) Communication Path

Understanding the ALM topology is required before any troubleshooting. ALM runs as two Windows services plus one RPC server, and TIA Portal queries it on every editor transaction.

TIA Portal V11 SP1 TIA.exe (editor, compiler) Calls CCLicSrv.dll on every FB/FC open ALM Local Service ALM.exe (UI) / CCLicenseService Holds license store + trial state Floating Server License Server (UDP/TCP) Ports 4410/4411 Registry Marker HKLM\SOFTWARE\Siemens\ Automation\Trial\TIA_Portal_V11_SP1 Trial state read at startup

3.1 Service and Port Matrix

Component Windows Service Executable Network Port Required State
Automation License Manager ALMService almservice.exe 4410 (UDP) / 4411 (TCP) Running, Manual start
License Server (floating) Sinec-License-Server sinec_licsrv.exe 4410 (UDP) / 4411 (TCP) Running, Auto start
TIA Portal License Client (none - in-process) CCLicSrv.dll 127.0.0.1 only Loaded by TIA.exe
Log location - - - %ProgramData%\Siemens\Automation\Logfiles

4. Preconditions and Required Artifacts

Before opening the ALM UI, gather the following items. Missing artifacts are the single largest source of repeat tickets.

  • Certificate of License (CoL) paper sheet inside the TIA Portal V11 SP1 product box. Contains the 20-digit Dispatch Number and the 20-character License Key.
  • Serial number from the front of the DVD case (format: 6 letters + 7 digits, e.g., TF1A101... prefix varies by region).
  • Automation License Manager V5.2 SP2 or later - install before TIA Portal V11 SP1 if doing a clean image.
  • Local administrator rights on the engineering workstation.
  • If using floating licensing: the IP/hostname of the license server and confirmation that UDP 4410 and TCP 4411 are open bidirectionally.
  • A confirmed Siemens Support Request number if the dispatch number is unreadable.
Field tip: Photograph the CoL sheet at unboxing. The thermal-print serial smudges after six months in a cabinet, which is the most common reason a trial cannot be retroactively converted.

5. Step-by-Step Recovery Procedure

The procedure below assumes the symptom is the dialog "License for TIA Portal V11 SP1 has expired" appearing on every FB/FC editor open, with a 21-day trial previously activated. Engineers should run the steps in order; do not skip the registry backup.

5.1 Capture Current State

  1. Close all instances of TIA Portal and ALM.
  2. Open Automation License Manager from the Start menu (or run almservice.exe /ui from %ProgramFiles%\Siemens\Automation\License Manager\Bin).
  3. Switch the left combo to License key. Screenshot every entry: name, status (Valid / Expired / Missing), expiration date.
  4. Switch to Missing license key. Screenshot the list of features requiring a license that are not currently covered.
  5. Switch to Installed software. Confirm TIA Portal V11 SP1 is listed at build 11.1.x.y.
  6. Export the registry key for backup:
reg export "HKLM\SOFTWARE\Siemens\Automation\Trial" "%USERPROFILE%\Desktop\ALM_Trial_Backup.reg" /y
reg export "HKLM\SOFTWARE\Siemens\Automation\Licenses" "%USERPROFILE%\Desktop\ALM_Licenses_Backup.reg" /y

5.2 Stop ALM and Clear Trial Marker

  1. Open Services (services.msc), stop ALMService and Sinec-License-Server if present.
  2. Delete the trial marker:
reg delete "HKLM\SOFTWARE\Siemens\Automation\Trial\TIA_Portal_V11_SP1" /f
reg delete "HKLM\SOFTWARE\Siemens\Automation\Trial" /f
  1. Move (do not delete) any trial license file from %ProgramData%\Siemens\Automation\Licenses to a backup folder. File naming follows *.lic; the trial key is identifiable by a validity tag of "21" (days).
  2. Restart ALMService.

5.3 Reinstall TIA Portal V11 SP1 with CoL Data

  1. Uninstall TIA Portal V11 SP1 via Control Panel > Programs and Features. Select Uninstall/Repair > Uninstall. Do not run Repair; it preserves the trial state.
  2. Reboot. Confirm the TIA Portal installation folder (%ProgramFiles%\Siemens\Automation\TIA Portal V11) is removed; if not, delete manually.
  3. Insert the TIA Portal V11 SP1 DVD (or mount the ISO). Run Start.exe as Administrator.
  4. The installer prompts for a license. Select Transfer license from license server if a floating server is configured, or Activate via Internet for a single-user key.
  5. When prompted, enter the Dispatch Number from the CoL. The wizard validates it against the Siemens License Server over HTTPS (port 443) to www.siemens.com/automation/license via the ALM web activation plugin.
  6. Restart the workstation. The ALM will now show a valid Single-User License for TIA Portal V11 SP1 with a non-expiring date.
Warning: Do NOT skip the uninstall step. Activating the serial over the top of an expired trial leaves the trial marker in the registry, and TIA Portal will continue to throw the warning even though the new license is valid.

5.4 Floating Server Configuration

If the customer uses a floating license server (typical in plants with 5+ engineering seats), point each workstation at the server rather than activating locally:

  1. Open ALM > Settings > License Server.
  2. Enter the server hostname (do not use an IP; ALM uses the host fingerprint).
  3. Click Test Connection. A green check confirms UDP 4410 and TCP 4411 are reachable; a red X indicates firewall blocking on the server or workstation side.
  4. Click Activate. Restart TIA Portal.

6. Resolving the "Trial Deactivated but Warning Persists" Symptom

The symptom quoted in the field report - "How can you deactivate the Trial License when the message appears indicating that the Trial License has been deactivated, although the Floating License has been installed?" - is a known ALM behavior. Two coexisting license types are returned to TIA Portal: the deactivated trial and the active floating. TIA Portal's editor displays the first hit from the licensing cache, which is always the trial because it has a higher priority in CCLicSrv.dll.

6.1 Forced Deactivation Script

The ALM UI exposes a Deactivate button only on trial keys. If the button is greyed out (typical when a floating license supersedes the trial), use the command-line tool bundled with ALM:

"%ProgramFiles%\Siemens\Automation\License Manager\Bin\almservice.exe" /deactivate "TIA_Portal_V11_SP1_Trial"

If the command returns License not found, the trial marker is orphaned in the registry. Remove it manually per step 5.2 and reboot.

6.2 Priority Override

For floating environments, set the registry DWORD LicensePriority to 2 (Floating preferred) under:

HKLM\SOFTWARE\Siemens\Automation\Licensing\Priority
Value Priority Behavior
0 (default) Local Single-User > Trial > Floating
1 Local Single-User > Floating > Trial
2 Floating > Local > Trial (recommended for server environments)

7. Verification Checklist

After recovery, run the following verifications before resuming live programming. Each check corresponds to a specific failure mode observed in the field.

  1. License Visibility Test. Open ALM > License key. TIA Portal V11 SP1 must show status Valid with no expiration date or with the contract date in the future.
  2. Editor Open Test. Open a project containing a function block. The editor must open without a license warning dialog. Repeat 10 times to confirm cache is clean.
  3. Compile Test. Compile the project (right-click > Compile > Software (rebuild all)). The progress bar must reach 100% with no License missing message.
  4. Download Test. Connect to the S7-1200/1500 CPU and download the hardware configuration. The action must complete with Download successful.
  5. Online Test. Go online with the CPU. Confirm the block icons are solid (not hatched), indicating online/program status.
  6. Service Restart Test. Reboot the workstation. TIA Portal must come up clean without any warning dialog.
  7. Log Review. Inspect %ProgramData%\Siemens\Automation\Logfiles\LicenseManager.log for any <ERROR> entries on the current date.

8. Troubleshooting Matrix

Observed Symptom Probable Cause Action
"License key missing or invalid" at editor open ALMService stopped Restart ALMService; check Event Viewer > Application for service crashes
Editor opens with warning but Download fails Trial expired, no valid key Run Section 5 procedure; verify CoL dispatch number
"Floating license server unreachable" UDP 4410 / TCP 4411 blocked Open firewall on both server and workstation; verify hostname resolution
Warning after server reboot Sinec-License-Server service not auto-start Set service start type to Automatic (Delayed Start)
Activation fails with "Dispatch number invalid" CoL sheet misread; serial from wrong product Re-photograph CoL; contact Siemens Support with serial number
Warning persists after full reinstall Trial marker not removed from registry Manually delete HKLM\SOFTWARE\Siemens\Automation\Trial keys
Multiple engineer seats "No floating license available" Concurrent license count exhausted Check ALM server > Active Licenses; close orphan sessions
TIA Portal hangs on startup with license dialog ALM database corrupted Stop ALMService, rename %ProgramData%\Siemens\Automation\Licenses, restart service
License transferred but warning shows old date License cache in TIA Portal not refreshed Close project, delete %LocalAppData%\Siemens\Automation\TIA Portal V11\Cache, reopen

9. Firmware and Version Compatibility Notes

  • TIA Portal V11 SP1 (build 11.1.0.0) - first release with tightened editor-level license enforcement. Targeted fixes in V11 SP1 Update 2 (build 11.1.2.0) reduced false warnings when a floating license was assigned but a stale trial marker remained.
  • Automation License Manager V5.2 SP2 (build 5.2.2.0) - minimum version for TIA V11 SP1. Earlier V5.1 ALM versions do not recognize the new SP1 license signature and will report every key as missing.
  • V11 SP2 (build 11.2.0.0) and V12 (build 12.0.0.0) rebase the license schema; a V11 SP1 key is NOT forward-compatible with V12. Engineers migrating to V12 must request a new dispatch number from Siemens.
  • S7-1200 firmware V2.x and V3.x CPUs work with V11 SP1. V4.x firmware requires TIA Portal V13 or later; license enforcement remains consistent across firmware versions, but the project compatibility check will fail before license check, so engineers may not see the license warning if the firmware is incompatible.
  • S7-1500 firmware V1.x works with V11 SP1 Update 2. V2.x firmware requires V12 SP1.

10. Preventive Measures and Best Practices

  1. Centralize floating licenses. Plants with 5+ engineering workstations should run a single ALM server to avoid the trial-vs-floating conflict inherent in mixed-mode installs.
  2. Image the workstation. Capture a Sysprep image immediately after a clean V11 SP1 install with the license properly activated. Do not capture before activation, or the trial will be baked into the image and expire simultaneously on every clone.
  3. Disable trial auto-activation. For controlled environments, set the registry DWORD DisableTrial to 1 under HKLM\SOFTWARE\Siemens\Automation\Licensing\Policy before the first launch of TIA Portal. This forces ALM to fail fast at startup rather than activating a 21-day trial that will eventually expire.
  4. Document the dispatch number. Store the 20-digit CoL dispatch number in the plant CMMS or a password manager. Recovery is impossible without it.
  5. Schedule upgrade windows. Major TIA Portal upgrades (V11 > V12, V13 > V14, V15 > V16) typically require new license keys. Coordinate with Siemens Support to obtain upgrade dispatch numbers before the cutoff date.
  6. Monitor ALM logs. Add the ALM log directory to your SIEM or backup. A sudden spike in License missing entries indicates trial expirations approaching.

11. Escalation Path to Siemens Support

If the procedure in Section 5 does not resolve the issue, escalate with the following information attached to the support request. Engineers who skip this checklist are typically asked to provide it before ticket progression, which adds 24-48 hours of delay.

  1. Screenshots of ALM showing all three views: License key, Missing license key, Installed software.
  2. Output of reg query "HKLM\SOFTWARE\Siemens\Automation" /s saved to a text file.
  3. The most recent 200 lines of %ProgramData%\Siemens\Automation\Logfiles\LicenseManager.log.
  4. The CoL serial number and dispatch number.
  5. The result of almservice.exe /info run from an elevated command prompt.
  6. Confirmation of Windows user account control (UAC) status and whether the engineer is logged in as a local administrator.
Regional note: Siemens US Support historically requires full uninstall/reinstall rather than serial-only activation when the trial is already expired. Engineers in other regions (EU, APAC) may be able to reactivate via ALM's web activation without a full reinstall. Verify the regional policy before opening the ticket to avoid an unnecessary reinstall cycle.

12. Frequently Asked Questions

Why does TIA Portal V11 SP1 show a license warning on every FB/FC open when V11 did not?

SP1 tightened enforcement so that opening any function block or function editor triggers a license check via CCLicSrv.dll, while pre-SP1 only checked at compile time. The warning indicates either an expired trial or a corrupted license store, even if the project was created on a previously licensed workstation.

Can I activate a TIA Portal V11 SP1 serial number without uninstalling?

Only if no trial was ever activated on the workstation. If the 21-day trial was silently activated on first launch, the trial marker in HKLM\SOFTWARE\Siemens\Automation\Trial must be cleared and TIA Portal reinstalled for the serial to bind cleanly. Regional support may accept serial-only activation via ALM web activation, but the uninstall path is the safest.

What ports does the floating Automation License Manager use?

ALM uses UDP 4410 and TCP 4411 for license server communication. Both must be open bidirectionally between the engineering workstation and the license server. Web activation (single-user) uses HTTPS 443 to www.siemens.com/automation/license.

How do I find the dispatch number for my TIA Portal V11 SP1 license?

The 20-digit dispatch number is printed on the Certificate of License (CoL) paper sheet inside the product box. It is NOT the same as the serial number on the DVD case. If the CoL is lost, contact Siemens Support with the serial number and a proof of purchase to request a replacement dispatch number.

Is the TIA Portal V11 SP1 license compatible with V12?

No. TIA Portal V12 introduced a new license schema. V11 SP1 keys cannot be used to activate V12, and a new dispatch number must be obtained from Siemens. The same applies to upgrades from V12 to V13, V13 to V14, and so on; each major version boundary requires a fresh license.

Why does my floating license server show the trial as deactivated even though the floating license is installed?

This is a known ALM behavior where two license types (expired trial and active floating) coexist in the local license cache. TIA Portal's editor displays the first hit, which is the trial because CCLicSrv.dll prioritizes local Single-User and Trial keys over Floating. Setting the LicensePriority DWORD to 2 forces Floating preference, or the trial marker can be deleted via the procedure in Section 6.

Back to blog