One may encounter this scenario, where a project instance is absent from the database and cannot be opened in the Engineering Studio.
This may happen if, for example, you uninstall zenon and did not create a project backup.
NOTE: It is highly recommended and important to create project backups of your zenon Projects on a consistent basis.
However, you can attach your projects to the database via an .MDF file.
Your database files of your projects are stored locally in C:\ProgramData\COPA-DATA\SQL2022 (zenon 14).
Older versions of zenon (10, 11, 12) use SQL 2019 and therefore the path is C:\ProgramData\COPA-DATA\SQL2019.
Here, you will find your project GUIDs (Globally Unique Identifier). Each project has a unique number assigned to it.
To identify the missing project's GUID, you can create a full recording of your system by using our System Information Collector tool (short: SIC).
You can find the SIC in the Startup-Tool under the Tab Tools.
Start the SIC and begin a full recording of your system.
Once the SIC is done recording, your whole system information will be displayed in the tool.
On the left side of the tool, you can find the directory tree.
Navigate to Platform > Versions > Version ..... > SqlConnection > Projects (click on the folder).
As we can see, two projects are present on our hard drive locally but missing in the database. Missing projects are marked with a red background and a plus symbol.
We can try clicking the plus symbol displayed next to the project name to attach the project to the database.
Reboot your PC afterwards.
If this step does not work, we at least now know the GUID and path of the missing project.
Now, open SQL Server Management Studio to edit the database.
(If SSMS isn't installed on your machine, you can find the installer in the zenon .ISO in AdditionalSoftware\Microsoft SQL Server Management Studio)
Log into the database.
In your Object Explorer, right-click on the folder 'Databases' and select
Attach... in the context menu:
A dialog window will come up. Click Add... to add your .MDF-file.
Head to the correct folder with the GUID. The .MDF-file is located in the subfolder 'SQL'. Locate the file and click OK.
The instance should now be there in the Object Explorer.
Reboot your PC afterwards.
NOTE: Depending on your user privileges, you may encounter an error message due to user rights. In that case, either run SSMS as an administrator or move the folder with the GUID to Public Documents in C:\Users\Public.
After rebooting your PC, open the Engineering Studio. In the navigation bar click File > Insert existing project...
Your project should now be visible in the list again.
If your project still isn't visible, try updating the list by clicking "Update List".