Reference manual

Objects page

Reports page

The Reports page of the Workspace window runs reports on the whole workspace. You choose reports and formats, then run them as one batch; each batch saves its files to a new folder in your Documents folder. The same reports run from the Command-line interface.

Opening it

  • Select Reports in the workspace window's navigation rail.
  • On the page, press F1 to open this manual page.
The Reports page after a run, with OnPrem usages unavailable.
#NameDescription
1Run reportsRuns the selected reports and saves their files to a new folder in Documents. Its label counts the selection, such as Run 3 reports. See Run reports.
2Select allSelects every format of every report that can run.
3ClearClears the selection.
4Last batch:The folder of the latest run, shown once you have run a batch. Select the text to copy it.
5Open folderOpens the latest batch folder in File Explorer.
6Group check boxSelects or clears every report in the group, such as General, with how many are selected, such as 2 of 4 selected. Select the group's header to collapse or expand it.
7ReportThe report's name and what it contains. See Available reports.
8Format chipThe file format to save, such as XLSX, CSV or TXT. Select it to include the report in the batch.
9Unavailable reasonWhy a report cannot run now, in place of its description. Its chip is cleared and disabled. See When a report is unavailable.

Available reports

Each report saves one file, named after the report, such as solution-metrics.xlsx. The text files are tab-separated: import them into a spreadsheet as delimited text with a tab as the separator.

ReportFileContains
Solution metrics solution-metrics.xlsx Object counts by type for each app, and a list of every object, in three worksheets:
  • Solution: one row per app, in dependency order, with its Id, Publisher, Name, Version and Constraint, the total number of objects (Σ) and a count per object type.
  • Objects: one row per object, with its Publisher, Module, Type, Id, Name and the Compilation Unit (the .al file) that declares it.
  • Generator: when the report was made, and from which workspace.
Object dependencies object-dependencies.csv The objects each object depends on, one row per dependency. The first two lines say which workspace the report describes and when it was made; the columns follow: DependencyType, SourceObjectType, SourceObjectNamespace, SourceObjectName, TargetObjectType, TargetObjectNamespace, TargetObjectName.
Unreferenced objects unreferenced-objects.csv Objects that no other object references, in the columns ObjectModule, ObjectType, ObjectId, ObjectNamespace and ObjectName. An object in the list can still be in use: extension objects and event subscribers are not referenced by other objects, and a user or a job can run an object directly.
OnPrem usages onprem-usages.csv Code that uses declarations scoped to OnPrem, one row per use, with where the use is (Source… columns: module, object, declaration and position) and what it uses (Target… columns), and IsObjectScope when a whole object is scoped to OnPrem. Needs a full code graph.
Parse errors parse-errors.txt Files that failed to parse, with each error: the total error count, then for each file its module, its path and the errors. We may ask you for this file when Prism reads your code wrongly.

Run reports

  1. Select Reports in the workspace window's navigation rail.
  2. Select the format chip of each report you want, or Select all.
  3. Select Run reports. Prism says Working: “Report batch started.” The reports run in the background, so you can go on working.
  4. Wait for Report batch completed, which lists each file with “Completed successfully” or what went wrong.
  5. Select Open folder to see the files.

Each run makes a new folder, StaticalPrism-Reports-… in Documents, so earlier batches are kept. With nothing selected, Run reports says Empty report batch: “Please select one or more report targets.”

When a report is unavailable

A report that cannot run now shows why in place of its description, and its chip cannot be selected:

ReasonFix
“Your license doesn't include this report.”Activate a license key in the Activate license window.
“Needs a code graph. Load the workspace into one first.”Start the code graph on the Code graph page.
“Needs a full code graph. Load the workspace into one first.”Set Graph detail to Full and load the workspace into the code graph again.

The page checks again whenever the code graph starts or stops, so a report becomes available as soon as it can run.