project diagnostic run fix script does not work

melvin122912
Tera Contributor

 

**Issue Summary**

The 'Run Fix Script' button fails to render in the Project Diagnostics tool (appDiagnosticsTool.do) after the 'Identify Financial Discrepancies' diagnostic scan returns a failure status. The server correctly identifies the fix script and returns hasFixScript:true in the API response, but the button never appears in the UI due to a JavaScript error introduced in the March 31, 2026 patch.

---

**Steps to Reproduce**

1. Navigate to All > Project Administration > Project Diagnostics
2. Set Feature Inputs filter (e.g. Portfolio = [portfolio name])
3. Locate the 'Identify Financial Discrepancies' diagnostic
4. Select the diagnostic and click Run Diagnosis
5. Diagnostic completes with Failure status
6. Expected: 'Run Fix Script' button appears
7. Actual: Only the text 'Please execute Run Fix Script to rectify financial discrepancies' appears — no clickable button rendered

 

**Root Cause Evidence**

Browser console (both Chrome and Firefox) shows the following JavaScript errors firing immediately after the server response is received:

TypeError: element.attachEvent is not a function
at observeStandardEvent (js_includes_doctype.jsx?v=03-31-2026_1137)
at appDiagnosticsTool.do:674

TypeError: element.dispatchEvent is not a function
at fireEvent_DOM (js_includes_doctype.jsx?v=03-31-2026_1137)

The server API response (ADTFacade processor) correctly returns:

"hasFixScript": true
"status": "failure"
"scriptName": "Identify financial discrepancies"

This confirms the data is correct server-side. The defect is entirely in the client-side event handling introduced in js_includes_doctype.jsx v=03-31-2026_1137. The attachEvent API used in this file is not supported in modern browsers and is causing the event listener to crash before the Run Fix Script button can be rendered.

---

**Impact**

Financial discrepancies have been identified in production project data. The only OOB mechanism to rectify these discrepancies (the Run Fix Script button) is inaccessible due to this defect. This is blocking financial data integrity remediation for our R&D portfolio.

---

**Request**

1. Confirm this is a known defect introduced in the March 31, 2026 patch
2. Provide a hotfix or patch that restores the Run Fix Script button functionality in appDiagnosticsTool.do
3. Advise if there is an alternative supported method to trigger the fix script (FinancialDiscrepancyCorrectionHelper) while the patch is pending

---

 

0 REPLIES 0