Identify the Bottleneck
Export performance issues in Risksheet primarily stem from cell merging in hierarchical layouts. The export engine must calculate merge boundaries for every merged region in the grid, and this computation grows significantly with document size. Use this decision matrix to identify your specific bottleneck:Switch to Flat Table View for Export
The most effective optimization is switching to Flat table view before exporting. This eliminates the merge calculation overhead entirely.- Open your Risksheet document
- Switch to the Flat table view using the view selector in the toolbar
- Trigger the export (Excel or PDF) — the progress toast appears: “Exporting to Excel” or “Exporting to PDF” with an animated progress indicator
- Wait for the export to complete and the file to download
- Switch back to your preferred hierarchical view after the export completes
masterMergeOnly property (labeled as flatTable in export diagnostic logs) controls whether the export uses a flat table structure or includes hierarchical merges. Both mergeCacheFlag and masterMergeOnly are logged during export for diagnostics.
Configure Performance Parameters
Enable Module-Only Permissions
SetmoduleOnlyPermissions=true at the project level to speed up loading of large sheets. This parameter restricts permission checks to the document module level, avoiding per-item permission evaluation that can be very slow for documents with hundreds of work items.
Prevent Full Page Reload on Save
SetrefreshOnSave to false in your sheet configuration to avoid a full page reload after each save operation:
Reduce Visible Columns Before Exporting
Use saved views to create an export-specific column visibility preset that hides columns not needed in the export output:- Create a saved view with only the columns required for the export
- Switch to that view before triggering the export
- The export processes only visible columns, reducing per-row processing time
multiItemLink columns, as each requires JSON array parsing and label resolution during export.
Optimize PDF Export
PDF export has additional validation requirements and processing steps beyond Excel export.Pre-Export Validation
PDF export validates the sheet state before proceeding:
If the export is blocked, Risksheet displays a validation message explaining which condition failed. Save your changes or exit comparison mode, then retry.
Custom PDF Export Scripts
PDF export uses Velocity templates to generate the export layout. Review your custompdfscript.js for potential inefficiencies:
- Use the
hideColumnsparameter (comma-separated binding names) to exclude unnecessary columns from theexportMainSheetcall. Hidden columns are temporarily removed during export and restored afterward. - Consider using
exportSubTableorexportDownstreamTablefor focused exports of specific data subsets rather than exporting the entire grid. - The
emptyPlaceholderproperty controls what text appears for null or empty cells. Set this tonull(default) to skip rendering empty cells entirely.
Known PDF Export Limitations
Optimize Excel Export
Excel export processes each cell type individually during the formatting callback. Understanding how each column type is exported helps you identify optimization opportunities:
The export always includes:
- Column headers in bold font at the top of the sheet
- Row headers showing system item IDs in bold font
- Cell styles (background colors, text colors) preserved from the grid when
includeStylesis active
Excel Export Progress Feedback
During export, Risksheet displays a progress toast notification:- Title: “Exporting to Excel”
- Message: “Please wait while the file is being generated…”
- Behavior: The toast persists until the export completes, then automatically dismisses. A 100ms delay ensures the progress indicator renders before the export engine begins processing.
Version-Specific Improvements
Verification
After applying performance optimizations:- Switch to Flat table view in the Risksheet toolbar
- Optionally, switch to an export-specific saved view to reduce visible columns
- Trigger the export and observe the progress indicator (“Exporting to Excel” or “Exporting to PDF”)
- Confirm the export completes within minutes, not hours
- Open the exported file and verify that all expected data is present
See Also
- Calculated Columns Missing in Exports — missing calculated data in exports
- Slow Page Loading — general grid loading performance optimization
- Baseline Loading Issues — exit comparison mode before PDF export
- Rendering and Display Errors — display issues that may appear related to export problems
- Error Messages Reference — error codes and their meanings