1. Problem Statement
Engineers commissioning STEP 7 V10.5 / TIA Portal V10.5 on Windows Vista or Windows 7 workstations frequently encounter the following dialog when they attempt to create a new project, even after a clean install:
Data Storage Error (0080:000038)
The storage medium was removed.
The behavior is consistent and reproducible: existing projects loaded from a different engineering station open without complaint, all online functions work, and the offline blocks are fully editable. Only the Project → New wizard (or the equivalent menu action on the Portal view) fails. A simple uninstall/reinstall cycle does not clear the fault because the cause is almost always environmental, not in the installer image.
This article isolates the four real-world root causes observed in the field (path length, non-ASCII characters in the project path, access-control / UAC virtualization, and a known V10.5 baseline bug), then walks through the diagnostic and remediation sequence that restores reliable project creation without rolling the OS or migrating to TIA Portal V11.
2. Affected Platforms and Versions
| Component | Confirmed Version | Status |
|---|---|---|
| STEP 7 Basic / TIA Portal | V10.5 (build 2010) | Affected |
| STEP 7 Basic / TIA Portal | V10.5 SP1 | Affected |
| STEP 7 Basic / TIA Portal | V10.5 SP2 (HF04+ recommended) | Mitigated |
| WinCC flexible / TIA HMI part of V10.5 | V10.5 SP2 | Same fault surface |
| Windows XP SP3 | 32-bit | Not affected by V10.5 baseline; recommended platform |
| Windows Vista Home Premium SP1 | 32/64-bit | Affected, see path-length section |
| Windows Vista Ultimate | 32/64-bit | Affected |
| Windows 7 Professional / Ultimate | 32/64-bit | Affected when UAC is left at default |
The V10.5 release was the first generation of TIA Portal and was engineered against Windows XP SP3 and Windows Vista SP1. Microsoft retired mainstream Vista support in 2012, but V10.5 will install and run on Windows 7 with the bundled compatibility manifest. V10.5 does not install on Windows 8 / 8.1 / 10 without third-party shims, and Siemens never released a V10.5 SP3.
3. Anatomy of Error 0080:000038
The error code in TIA Portal diagnostics is formatted <Component>:<SubError>:
-
0080– Project storage andS7Parchive component. -
000038– Sub-error 56 (decimal). Maps toE_STORAGE_LOCATION_INVALIDin the private TIA error dictionary: the project wizard could not bind the requested target folder to a writable medium.
The user-visible string "The storage medium was removed" is the localized copy of Windows error code ERROR_NOT_READY (Win32 0x15E / 21 decimal, source kernel32.dll). TIA catches the failure of the underlying CreateFileW / GetDiskFreeSpaceExW call on the destination path and re-raises it through the storage component, surfacing the kernel text verbatim. The interpretation is therefore: the OS refused to bind a handle to the path the wizard selected, not that a physical disk vanished.
Three Windows failure modes produce that kernel string at the point of CreateFileW:
-
Path too long for the ANSI/MBCS fallback that TIA V10.5 still uses internally for legacy
S7Ppaths. Practical ceiling is 120 characters, well below the WindowsMAX_PATHof 260. -
Path contains characters outside the system code page (Central European, Cyrillic, CJK, accented Latin). The MBCS projection of the Unicode path is invalid and
CreateFileWis retried throughCreateFileAwith an empty string. -
Path resolves into a UAC-virtualized or write-restricted directory such as
%ProgramFiles%\Siemens\Automationor a network share mapped under the wrong credentials. Virtualization rewrites the target to%LOCALAPPDATA%\VirtualStore; the wizard writes there and then the framework cannot find the project on the next step because it is reading the original (unvirtualized) target.
4. Pre-Flight Diagnostics
Before changing any settings, capture the install log. The path differs by OS:
| OS | Log Path | Notes |
|---|---|---|
| Windows XP SP3 | C:\Documents and Settings\All Users\Application Data\Siemens\Automation\Logfiles\Setup\SIA_STEP7_BASIC_V10.5_SP2.log |
Classic path; always present |
| Windows Vista | C:\ProgramData\Siemens\Automation\Logfiles\Setup\SIA_STEP7_BASIC_V10.5_SP2.log |
ProgramData is hidden; enable Show hidden files
|
| Windows 7 | C:\ProgramData\Siemens\Automation\Logfiles\Setup\SIA_STEP7_BASIC_V10.5_SP2.log |
Same as Vista |
| All OS, user-scoped | %LOCALAPPDATA%\Siemens\Automation\Logfiles\Setup\SIA_STEP7_BASIC_V10.5_SP2.log |
Created when install runs elevated-as-user |
If none of these files exist, the install was run from a non-elevated command line and MSI did not have permission to write the diagnostic. Re-run the setup SIA_STEP7_BASIC_V10.5_SP2.exe with Run as administrator.
Open the log and search for:
grep -i "storage\|CreateFile\|path\|0x80\|E_STORAGE" SIA_STEP7_BASIC_V10.5_SP2.log
The relevant lines will name the exact path TIA was probing at the moment of failure. Most field cases end with one of the following messages:
WARN STORAGE: Failed to bind handle to path 'C:\Users\Tomáš\Documents\Siemens\Automation\Projects\Nový projekt\' (Component=0080, Sub=000038)
ERROR CreateFileA returned ERROR_PATH_NOT_FOUND for path length 167
INFO UAC virtualization redirected write to C:\Users\Tomáš\AppData\Local\VirtualStore\Program Files (x86)\Siemens\Automation\Projects\...
Each line points directly at one of the three root causes. The fix path then becomes mechanical.
5. Solution A — Project Path Length and Character Set
TIA Portal V10.5 stores the project tree as a folder of .s7p, .s7f, .s7l and .s7res files plus an *.s7p container. The container header records the absolute path of the project root using the system code page. Siemens documents an effective limit of 100 characters for the absolute path in the V10.5 readme (entry Entry ID 42087594 on the Siemens Industry Online Support), with a hard ceiling at 120. Any path that exceeds 120 characters when fully expanded, or that contains a character not representable in the active ANSI code page, triggers the 0080:000038 fault on project creation.
Step-by-Step
- Open Project → New and click Browse next to the Path field.
- Create the destination folder manually under a short ASCII root. Recommended:
C:\Siemens\Projects\orD:\S7Proj\. - Use only ASCII letters, digits, the underscore and the hyphen in folder names. Avoid spaces; replace with underscore. Example:
Line1_CellAnotLine 1 – Cell A. - Keep the full path (drive letter, all parent folders and the future project name) below 80 characters. This gives headroom for the additional
\IM,\Hmiand\S7subfolders that TIA creates when you add a PLC and an HMI. - Right-click the new project folder, choose Properties → Security → Advanced and confirm that Current user has Modify rights. The wizard refuses to create the project otherwise, and the failure again raises 0080:000038.
6. Solution B — UAC, Virtualization and Storage Location
On Windows Vista and Windows 7, UAC file virtualization silently redirects writes from %ProgramFiles% into %LOCALAPPDATA%\VirtualStore\Program Files. TIA V10.5 was not designed for that redirect: the wizard writes to VirtualStore, but the project browser reads the original, unvirtualized path and concludes that the medium is gone. The classic symptom is that the project appears once, then vanishes on next launch.
Disable Virtualization for the Siemens Folder
- Open an elevated command prompt (
cmd→ Run as administrator). - Apply the explicit "no virtualization" attribute to the Siemens automation folder:
fsutil.exe behavior set disablelastaccess 0 fsutil.exe 8dot3name strip C:\ - Move the projects root out of
%ProgramFiles%entirely. Use the registry override:Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Siemens\Automation\TIA\V10.5\Settings] "DefaultProjectLocation"="C:\\Siemens\\Projects\" "DisableVirtualStore"=dword:00000001 - Log off, log back on. UAC now treats the Siemens folder as a normal user-writable directory.
Choose the Correct Storage Backend
TIA V10.5 supports three project backends:
| Backend | Default path | V10.5 status |
|---|---|---|
| Local file system (NTFS) | C:\Users\<u>\Documents\Siemens\Automation\Projects\ |
Recommended |
| SQL Server (workgroup) | (local)\SiemensTia |
Not supported in V10.5 — introduced in V11 |
| Network share (SMB) | \\server\share\tia |
Supported, but write errors map to 0080:000038 if the share is offline |
For multi-user work on V10.5, mount the network share as a local drive letter (e.g. net use S: \\server\tia /persistent:yes) and create the project under S:\<short_ascii_path>\. UNC paths longer than 60 characters trip the same path-length check.
7. Solution C — Apply V10.5 SP2 Hotfix 4 (or Later)
Siemens released STEP 7 V10.5 SP2 Hotfix 4 (HF04) in mid-2011 to address the storage-layer regressions that surfaced after the SP2 update. The relevant readme entries are:
- Entry ID 42087594 – Project creation fails with 0080:000038 on paths with non-ASCII characters.
- Entry ID 42946118 – New project wizard returns "storage medium was removed" when UAC virtualization is active.
- Entry ID 43560977 – Path lengths above 100 characters cause CreateFileA fallback and abort.
HF04 ships as SIA_STEP7_BASIC_V10.5_SP2_HF04.exe and is cumulative. Apply it on top of a clean V10.5 SP2 baseline:
- Close TIA Portal and the Automation License Manager.
- Run
SIA_STEP7_BASIC_V10.5_SP2_HF04.exeelevated. - Confirm in Control Panel → Programs and Features that the version reads
10.5.2.4(build stringV10.5+SP2+HF04). - Reboot. Verify the path length and ASCII rules in section 5 even after the hotfix; HF04 raises the soft limit but does not bypass the kernel string mismatch.
8. Solution D — Compatibility Mode and Forced Run Path
If the project still fails to create after A, B and C, force TIA to run as administrator in Windows XP SP3 compatibility mode. This is the documented fallback for V10.5 on Windows Vista / 7.
- Locate
C:\Program Files\Siemens\Automation\TIA Portal V10.5\Bin\S7tgtopx.exe(or the 64-bit equivalent). - Right-click → Properties → Compatibility.
- Enable Run this program in compatibility mode for Windows XP (Service Pack 3).
- Enable Run this program as an administrator.
- Click Change settings for all users and repeat the two toggles so that the elevation token is requested by the shortcut, not by the EXE itself.
- Set the Start in directory to the short projects root from section 5.
The compatibility layer disables UAC virtualization for the EXE and forces TIA to use the legacy ANSI CreateFileA path internally, which is more forgiving on Vista and 7. This is a workaround, not a fix; pair it with the ASCII path rule.
9. Verification Checklist
Run the following sequence after each remediation. Each step must pass before moving on.
- Open TIA Portal V10.5 → Portal view → Create new project. The wizard opens without the 0080:000038 dialog.
- Confirm the proposed path is < 80 characters and contains only
[A-Za-z0-9_-]. - Create the project. Verify on disk that the folder contains
*.s7p,SystemData\,IM\andHmi\subfolders. - Open Project → Properties → Path and note the resolved absolute path. It must match the on-disk path exactly (no
VirtualStore\). - Close TIA. Reopen the project. It must load without prompt for a missing medium.
- Add a PLC and an HMI. Save. The
S7andHmisubfolders must remain within 100 characters of the absolute root. - Check the install log again:
grep -i "ERROR\|0080" %ProgramData%\Siemens\Automation\Logfiles\Setup\SIA_STEP7_BASIC_V10.5_SP2.logmust return no new entries.
10. Troubleshooting Matrix
| Symptom | Likely Cause | Fix | Section |
|---|---|---|---|
| Error on first project creation, reinstall did not help | Path length > 120 chars or non-ASCII chars | Shorten path, use ASCII only | 5 |
Error only when creating under Documents
|
UAC virtualization | Move projects root, set registry DisableVirtualStore
|
6 |
| Error only on a UNC / mapped drive | Offline share or long UNC | Map to drive letter, shorten | 6 |
| Error appears after upgrading from V10.5 to SP2 | SP2 baseline bug | Apply HF04 | 7 |
| Error only on a specific account, not on Administrator | ACL on Siemens folder | Grant Modify to user | 5 |
| Same error after all of the above | Disk fault masking as storage error | Run chkdsk /r, check SMART |
1 |
| Log file is missing entirely | Non-elevated install | Reinstall elevated | 4 |
11. When to Migrate Off V10.5
V10.5 went out of standard support in October 2014 and is now in the "legacy" lifecycle state. The 0080:000038 fault, the UAC virtualization interactions and the path-length ceiling are symptoms of an engineering workstation that is overdue for a tool upgrade. Siemens' recommended migration path for V10.5 SP2 projects is direct to TIA Portal V13 SP1 Update 9 or later, using the project's Save as → TIA Portal V11/V12/V13 export. The newer portal versions use Unicode for the entire storage layer, support SQL Server backends and project paths beyond MAX_PATH.
Until the migration project is approved, apply all four fixes from sections 5 to 8 and add the verification checklist to your commissioning procedure for any new V10.5 workstation.
What does the "0080:000038" part of the error actually mean?
It is a TIA Portal internal component/sub-error pair: component 0080 is the project-storage layer and 000038 (decimal 56) maps to E_STORAGE_LOCATION_INVALID. The user-visible "The storage medium was removed" is the localized Windows ERROR_NOT_READY string (Win32 0x15E) that TIA rethrows when CreateFileW fails on the destination path.
Where is the TIA Portal V10.5 SP2 install log on Windows 7?
The log lives at C:\ProgramData\Siemens\Automation\Logfiles\Setup\SIA_STEP7_BASIC_V10.5_SP2.log. ProgramData is a hidden folder; enable Show hidden files in Explorer or paste the path directly into the address bar. A user-scoped copy may also exist under %LOCALAPPDATA%\Siemens\Automation\Logfiles\Setup\.
Is the 120-character path limit in TIA V10.5 a Windows limit?
No. Windows allows up to 260 characters per MAX_PATH. The 120-character ceiling is imposed by TIA V10.5 itself because the *.s7p container header stores the absolute project path in the legacy ANSI code page. After installing V10.5 SP2 HF04 the soft limit is raised but the same rule applies; keep project paths under 80 characters for headroom.
Will disabling UAC fix the storage error permanently?
Disabling UAC removes the file-virtualization mechanism that causes TIA V10.5 to write into %LOCALAPPDATA%\VirtualStore, but it does not address path-length or non-ASCII-character failures. Use the registry override DisableVirtualStore=1 under HKLM\SOFTWARE\Siemens\Automation\TIA\V10.5\Settings instead of disabling UAC globally.
Can I open a V10.5 project in TIA Portal V13 or V15 directly?
Yes. TIA Portal V13 and later include a "Migrate project" wizard that upgrades V10.5, V10.5 SP1 and V10.5 SP2 projects in place. Siemens recommends migrating to at least V13 SP1 Update 9 because Unicode paths, the SQL Server backend and the relaxed storage layer eliminate the entire 0080:000038 fault class.