Reference manual

Objects page

Unresolved modules

Symptom: the Diagnostics expander on the Solution page lists Unresolved modules you did not expect.

The Solution page of a Prism for AL workspace, whose Diagnostics expander lists 2 unresolved modules and warns about runtime packages
A workspace with unresolved modules.
#NameDescription
1Unresolved modulesThe number of modules the workspace depends on but Prism for AL did not find. Select the link to open the Diagnostics page.
2Runtime package warningShown when the workspace also has runtime packages, which Prism for AL cannot read. See Packages ignored when opening folder.

Cause: a module named in an app.json dependency is not in the workspace or its package folders. Select Unresolved modules, then select each row on the Modules tab of the Diagnostics page. Its Status names the cause:

  • “Module not found in workspace”: no folder or package in the workspace provides the module.
  • “Download symbols from server and reload workspace”: the module belongs to the workspace, but its symbols have not been downloaded.

Fix:

  1. In Visual Studio Code, run AL: Download symbols for the workspace.
  2. Select the Reload button in the Workspace window to load the workspace again.
  3. If modules are still unresolved, record the workspace with Help › Troubleshoot › Record Workspace… in the Control Panel (see the Troubleshoot menu item) and email us the .wrec file. We use it to reproduce the problem.