Loading...
Loading...
Once configured, sys_report_mpivot_rule records remain stored even after the report type is changed from Pivot to a different type. The migration script still picks up these stale and redundant records, potentially increasing memory usage unnecessarily, especially when a large volume of sys_report_mpivot_rule records exists. Steps to Reproduce 1. Create a [sys_report] record with the following configuration: Table: incident Type: Multi-level pivot table Configure any columns/rows Go to the Style tab and configure one or more coloring rules 2. Go to the [sys_report_mpivot_rule] table and verify that the newly added rules are associated with the created report 3. Run the dashboard migration script and check the indexes populated for the [sys_report_mpivot_rule] table. Verify that the rules are picked up. 4. Go back to the report and change the report type from Multi-level pivot table to List. 5. Run the dashboard migration script again and check the indexes populated for the [sys_report_mpivot_rule] table. Actual: the [sys_report_mpivot_rule] records are still picked up by the migration script even though the associated report is now a List report. These records are stale and no longer applicable to the report. Expected: the migration script should not pick up stale sys_report_mpivot_rule records associated with reports that are no longer configured as Multi-level pivot table reports.
The script to remove stale sys_report_mpivot_rule records is provided; these are rows whose report_id no longer references a pivot report. Instruction: Run with DRY_RUN = true initially, review the gs.info output, then set DRY_RUN = false and run again to apply the deletions. Paste into "System Definition > Scripts - Background" on the target instance.
PRB2071763
Click on a version to see all relevant bugs
ServiceNow Integration
Learn more about where this data comes from
BugZero Plan
Streamline upgrades with automated vendor bug scrubs
BugZero Prevent
Wish you caught this bug sooner? Get proactive today.