Error: Data dictionary linked by a library must not have access to base workspace
Show older comments
I have a model that is linked to a data dictionary. The data dictionary has access to base workspace enabled.
When trying to run the model I get the Error "Error: Data dictionary 'x.sldd' linked by a library must not have access to base workspace".
But WHY must it not have access? There is no reason given and I cannot see a pattern when this error occurs. Various other models also have dictionaries with access to base workspace and don't throw this error. What are the potential reasons that prohibit access to base workspace being enabled?
Thanks for your support.
Accepted Answer
More Answers (1)
Vidip
on 24 Jul 2025
0 votes
You are seeing this error because Simulink does not allow libraries to link to data dictionaries with "Access to base workspace" enabled. This restriction ensures that libraries remain self-contained and reusable, without depending on external variables that may change between projects or users.
To resolve this, disable "Access to base workspace" in the data dictionary linked to your library. Also, check any referenced dictionaries and make sure none of them have workspace access enabled, as indirect dependencies will also trigger the error.
You can refer to the following documentation for more information:
Categories
Find more on Naming Conventions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!