Resolving PCS 7 Error 1739:260 and 2772:106 - Technological Hierarchy Database Locks and Sybase Cleanup
PCS 7 errors 1739:260 ('Hierarchy folder could not be read') and 2772:106 ('Internal error when creating Technological Hierarchy') occur when the embedded Technological Hierarchy (TH) database engine encounters locked files, orphaned processes, or database corruption. In SIMATIC PCS 7, the Plant Hierarchy is managed by an embedded Sybase SQL Anywhere server (dbengX.exe or dbsrvX.exe named Adaptive Server Anywhere Network Server). When SIMATIC Manager is terminated abnormally (e.g., via Windows Task Manager or power outage), the database server remains running in the background with exclusive file locks, or leaves orphaned transaction logs (00*.LOG). To resolve this, terminate all Adaptive Server Anywhere processes in Windows Task Manager, delete temporary 00*.LOG and *.ldb files from the project folder, and restart SIMATIC Manager.
Table of Contents
- Technological Hierarchy (TH) Architecture and the Embedded Sybase Engine
- Root Causes: Task Manager Terminations, Orphaned Locks, and 00*.LOG Files
- Diagnosing Errors 1739:260 and 2772:106 in Upgrades and New Projects
- Database Cleanup: Killing Adaptive Server Anywhere and Removing Stale Logs
- Comparative Diagnostic Matrix: Technological Hierarchy Database Faults
- Step-by-Step Recovery Procedure for Corrupted Hierarchy Folders
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
Technological Hierarchy (TH) Architecture and the Embedded Sybase Engine
In SIMATIC PCS 7, the Technological Hierarchy (TH) / Plant Hierarchy (PH) organizes the entire automation project according to physical plant structures (Plant > Unit > Equipment Module > Control Module) compliant with ISA-88 and ISA-95 standards. The Plant Hierarchy manages picture assignments, block icon generation, OS area names, and message routing.
Unlike standard Step 7 projects where folder structures are stored in simple file directories, PCS 7 Plant Hierarchy metadata is stored in a high-performance relational database engine: Sybase SQL Anywhere (formerly known as Adaptive Server Anywhere / ASA).
When an engineer opens SIMATIC Manager, the background process dbeng12.exe / dbsrv12.exe (Adaptive Server Anywhere Network Server) is launched automatically to mount the project database files (*.db and *.log).
Root Causes: Task Manager Terminations, Orphaned Locks, and 00*.LOG Files
The notorious errors 1739:260 ('Hierarchy folder could not be read') and 2772:106 ('Internal error when creating Technological Hierarchy') manifest under specific failure scenarios:
-
Task Manager Killing of SIMATIC Manager: If an engineer terminates
s7tgtopx.exe(SIMATIC Manager) using Windows Task Manager during an engineering freeze or long migration task, the parent process dies, but the child database processAdaptive Server Anywhereremains alive in the background. It holds permanent exclusive file handles on the project's database files. -
Orphaned Transaction Logs (
00*.LOG): Sybase SQL Anywhere uses transaction logging to ensure ACID compliance. If the database was not shut down cleanly, temporary transaction log files (e.g.,00000001.LOG,00*.LOG) remain in the project directory. When SIMATIC Manager reopens, it attempts to replay these logs; if a checksum mismatch occurs, reading the hierarchy folder fails with Error 1739:260. -
Version Migration Incompatibility: During project upgrades (such as migrating PCS 7 V7.1 to V9.0), if the Technological Hierarchy software package is missing mandatory hotfixes (e.g., TH Update 1) or if multiple users attempt multi-user engineering on an unshared folder, database locks collide.
Diagnosing Errors 1739:260 and 2772:106 in Upgrades and New Projects
The two error numbers correspond to distinct database operations:
-
Error 1739:260: Occurs when opening an existing project. The system attempts to read the hierarchy root node, but the SQL Anywhere engine returns a query timeout or read-lock violation. The Plant View tree displays empty folders or red cross icons.
-
Error 2772:106: Occurs when creating a new project or new hierarchy folder. The system attempts to execute a SQL
INSERTto create a new hierarchy record, but the database catalog is locked in read-only mode by a zombie server instance.
Database Cleanup: Killing Adaptive Server Anywhere and Removing Stale Logs
Restoring database functionality does not require reinstalling PCS 7 or restoring old backups. The remedy consists of terminating the orphaned background database process and deleting stale transaction logs:
-
Process Termination: In Windows Task Manager (Details / Processes tab), locate and terminate
Adaptive Server Anywhere Network Serveror any runningdbsrv*.exe/dbeng*.exeinstances. -
Purging
00*.LOGFiles: In the Step 7 project directory (and subfolders such aswincprojors7proj), search for files matching the pattern00*.LOGand delete them. These are temporary transaction logs that can be safely discarded once the database is idle. -
Removing Temporary Lock Files: Delete any
*.ldb(Microsoft Access / Sybase lock files) present in the directory.
Comparative Diagnostic Matrix: Technological Hierarchy Database Faults
The following table compares common Technological Hierarchy errors, root causes, and rapid remedies in SIMATIC PCS 7:
dbsrv*.exe00*.LOG transaction log files00*.LOG00*.LOG files; restart PC.db fileFile > Reorganize... or restore backupSIMATIC HMISIMATIC HMI and AdministratorsStep-by-Step Recovery Procedure for Corrupted Hierarchy Folders
Follow this recovery procedure to resolve errors 1739:260 and 2772:106:
-
Close SIMATIC Manager and All Editors:
- Save any open CFC, SFC, or WinCC editors.
- Close SIMATIC Manager cleanly. If it hangs, use Task Manager to terminates7tgtopx.exe. -
Terminate Orphaned Database Processes:
- PressCtrl + Shift + Escto open Windows Task Manager.
- Switch to the Details (or Processes) tab.
- Scroll down to locate:Adaptive Server Anywhere Network Server(ordbeng*.exe/dbsrv*.exe).
- Right-click and select End Task.
- Verify that all instances are fully terminated. -
Search and Delete Temporary Transaction Logs:
- Open Windows Explorer and navigate to your project folder (e.g.,D:\Projects\MyPlant_Prj\).
- In the search bar, type00*.LOG.
- Select and delete all discovered00*.LOGfiles.
- Also search for and delete any*.ldblock files. -
Reopen SIMATIC Manager and Reorganize:
- Launch SIMATIC Manager as Administrator.
- Open the affected project. Confirm that the Plant Hierarchy tree opens without errors.
- Select File > Reorganize... to repack and verify database consistency. -
Install TH Updates if Recurring During Upgrades:
- If the error reoccurs on upgraded PCS 7 V7/V8 projects, install the latest Technological Hierarchy update (e.g., TH V7.1 SP1 Upd1 or TH V9.0 Upd) from Siemens Industry Online Support.
Verification
Verify Technological Hierarchy recovery through these checks:
- In SIMATIC Manager, switch to Plant View (View > Plant View).
- Expand all hierarchy folders down to the individual CFC charts. Confirm that folder icons display normally without yellow warning signs or red cross errors.
- Right-click a hierarchy folder and select Insert New Object > Hierarchy Folder. Confirm that a new folder is created cleanly without Error 2772:106.
- Open an assigned CFC chart, modify a block comment, and save. Confirm that changes save without database read/write errors.
- Close SIMATIC Manager and confirm that
Adaptive Server Anywhereterminates cleanly in Task Manager within 10 seconds.
Limitations and Operational Precautions
- Never Terminate with Task Manager During Compiles: Killing SIMATIC Manager or CFC while an AS-OS compile or project reorganization is in progress is the leading cause of database corruption. Allow operations to complete or timeout naturally.
- Do Not Delete Primary
*.dbFiles: Deleting temporary00*.LOGfiles is safe, but never delete the primary.dbdatabase files (e.g.,hdata.db), as doing so destroys the plant hierarchy permanently. - Antivirus Exclusions: Ensure that third-party antivirus software excludes the PCS 7 project directories from real-time file scanning. Antivirus locks on Sybase database files trigger identical 1739:260 read errors.
Engineer FAQ
Why does Task Manager termination cause Error 1739:260?
Terminating the front-end SIMATIC Manager leaves the back-end Sybase SQL database server running in an orphaned state with active file locks on project tables.
Is it safe to delete files named 00*.LOG?
Yes. Files matching 00*.LOG are temporary transaction log files generated by SQL Anywhere during active sessions. When the server is stopped, they can be safely deleted.
Why did reinstalling PCS 7 not fix the problem?
Reinstalling PCS 7 only replaces system binaries; it does not alter the project files where the locked or corrupted transaction logs reside.
What is the difference between Component View and Plant View in SIMATIC Manager?
Component View displays the hardware and software hierarchy (Station > CPU > Program > Blocks). Plant View displays the Technological Hierarchy modeled after the physical plant (Area > Unit > Equipment).
Can multi-user engineering cause this error?
Yes. If two engineers attempt to open and edit the same Plant Hierarchy folder across an unmanaged network share without multi-user engineering tokens, database lock collisions will occur.
Technical References
- SIMATIC Process Control System PCS 7 Engineering System (V8.2 / V9.0) Manual - Chapter 7: Plant Hierarchy Configuration
- Siemens Industry Online Support (SIOS) Entry ID 182132 - PCS7 Fehler 1739:260 Hierarchieordner konnte nicht gelesen werden
- Siemens Industry Online Support (SIOS) FAQ 22533824 - Dealing with Sybase Database Locks in SIMATIC PCS 7
- Sybase SQL Anywhere Database Administration and Maintenance Guide
Related Articles
- Cleaning Up and Optimizing CFC Runtime Groups in SIMATIC PCS 7
- Resolving SIMATIC PDM Project Converter Freezes and Database Lockups
- Resolving Empty WinCC Event Lists and SQL Transaction Log Ballooning in SIMATIC PCS 7
- Understanding AS-OS Compile Mechanics and Tag Deletion Rules in SIMATIC PCS 7
Related Tags
- Technological Hierarchy
- Error 1739:260
- Error 2772:106
- Sybase SQL Anywhere
- Adaptive Server Anywhere
- Plant Hierarchy
- Database Lock