How Script Errors Are Displayed
Since version 25.4.2, the Gantt provides an improved error alert system that makes it easier to identify and resolve script issues.In Edit Mode (Administrator View)
When a script contains an error, a footer indicator appears. Clicking it opens a detailed message that identifies the error location. Errors are also logged in the browser console and server logs. To access the browser console, right-click on the page, select Inspect, and go to the Console tab.In View Mode (User View)
A visual indicator (triangle icon in the Gantt footer) informs end users when configuration or data-related issues occur. The indicator shows a count badge with the number of errors detected.Error Types
The Gantt distinguishes between three script error categories:| Error Type | Prefix in Error Panel | Source |
|---|---|---|
| Config Script Error | Config Script Error: | Gantt Config Script widget parameter |
| Markers Script Error | Markers Script Error: | Markers Script widget parameter |
| Item Script Error | Item Script Error: | Item Script widget parameter |
Step 1: Identify the Failing Script
- Open the page in edit mode
- Look for the error indicator in the Gantt footer
- Click the indicator to see the detailed error list
- Note the error type prefix to determine which script is failing
Step 2: Check for Polarion 2304+ Compatibility
If your scripts stopped working after a Polarion upgrade to version 2304 or later, you need to update the script syntax: Before (Polarion 2303 and earlier):- Replace
nullchecks withtypeofchecks (e.g.,typeof wi !== 'undefined') - Replace direct property access with getter methods (e.g.,
wi.getStatus().getId()instead ofwi.status.id)
Step 3: Debug the Script
- Isolate the error — Temporarily clear the script content, save, and confirm the Gantt loads without errors
- Re-add incrementally — Add the script back line by line to pinpoint the failing statement
- Check variable availability — Item scripts have access to
task,wi(work item),plan,config,util, and other context variables. Verify you are using the correct variable names. - Check browser console — Look for detailed JavaScript error messages including line numbers
Step 4: Validate and Save
After correcting the script:- Save the page in the wiki editor
- Switch to view mode
- Verify the error indicator has disappeared from the Gantt footer
- Check that the script’s intended behavior (colors, markers, custom logic) is applied correctly
Verify
You should now see the Gantt chart loading without the error indicator in the footer. If you had script-driven colors, markers, or other customizations, they should now render correctly on all task bars.See also
- Write Item Scripts
- Write Gantt Config Scripts
- Debug Script Errors
- Migrate Scripts for Polarion 2304+
Sources
Sources
KB ArticlesSupport TicketsSource Code
prod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/ganttCheckWarningInfo.cy.tsprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/impl/ScriptEvaluator.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/LoadInfo.javaprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/diagnosis.js