Skip to main content

Prerequisites

  • A powersheet document with server-rendered properties configured
  • Access to Polarion server logs
  • Familiarity with Velocity template syntax
1

Recognize the Error Marker

When a Velocity template evaluation fails, Powersheet displays #SERVER_RENDER_ERROR in the affected cell instead of the computed value. This is a constant error marker that indicates a template configuration problem.
diagram
2

Check Polarion Server Logs

The three most common exception types appear in the Polarion server logs when a template fails:Open the Polarion server log file and search for these exception names to find the exact error message and line number.
3

Validate Template Syntax

Common Velocity syntax errors that cause ParseErrorException:
Server-rendered expressions are typically single-line strings in YAML. Multi-line Velocity logic must be compressed into one line or use Velocity’s inline syntax.
4

Add Null Checks

MethodInvocationException commonly occurs when accessing properties on null objects. Always guard against nulls:
Key variables that can be null:
  • $module — null when entity is not document-scoped
  • $wi — null when entity is not a work item
  • Custom field values — null when not set on the work item
Always wrap service calls and property access in #if checks: #if($var && $var.method())$var.method()#else default#end
5

Test with Simple Expressions First

When debugging a complex template, simplify to isolate the problem:
  1. Replace your template with a constant: serverRender: "test" — verify rendering works at all
  2. Add one variable: serverRender: "$item.id" — verify context is available
  3. Add the failing expression piece by piece until the error reappears
6

Verify Property Configuration

Ensure the property hosting the server-rendered expression is correctly configured:
Some Polarion service methods may behave differently across versions. If a method call in your template causes errors, verify the method signature against your Polarion installation’s API documentation.

Common Error Patterns

Verify

After fixing template errors:
  1. Open the powersheet document in Polarion
  2. You should now see computed values in all cells that previously showed #SERVER_RENDER_ERROR
  3. Test with work items that have empty or null fields to confirm null checks work
  4. Verify that the Polarion server logs no longer show template-related exceptions

See Also

Last modified on July 10, 2026