Hi Tomas,
The Siemens UI Module 2.2.0 release includes changes to the Theme Switcher and updates its Atlas Core dependency. Since the errors appeared immediately after the upgrade and Studio Pro can no longer open the project, I recommend restoring the last working project version before attempting further changes.
Recommended recovery and troubleshooting steps:
Restore the last working commit: Revert the module upgrade using Git or restore a backup of the project from before importing Siemens UI Module 2.2.0. Confirm that Studio Pro opens the restored project successfully.
Create a separate Git branch: Retry the upgrade on a branch so the working version remains recoverable.
Verify compatibility: Check the Siemens UI Module 2.2.0 release notes and its documented dependencies. The release notes specify Atlas Core 4.5.0 as the updated dependency and Framework Version 11.12.2.
Follow the official migration guide: Review the Siemens migration instructions before upgrading the module, especially the Theme Switcher changes:
https://siemens-design-systems.mendix.com/p/docs/getting-started/how-to-use/migration-mx11
Investigate the consistency errors: Pay particular attention to the SNP_ThemeSelector snippet, the DS_GetThemeSession nanoflow reference, and the changed SetAppTheme parameter type. Check whether the referenced Documentation.ThemeSession entity exists in the imported module and whether existing nanoflows use the updated enumeration parameter.
If the exception persists: Share the full Studio Pro error details and a minimal reproducible project with Siemens UI Module support. The exception Variable targets of Entity should not return a Value DataType appears to be a Studio Pro model-processing error; the available information is insufficient to identify its exact root cause.
I would avoid manually deleting or modifying model elements while the project is unable to open. Restore the working version first, then reproduce the upgrade on a separate branch.
Reference:
https://marketplace.mendix.com/link/component/239207/Siemens/Siemens-UI-Module
Hope this helps! If you find this answer helpful, please mark it as the accepted answer.