Skip to main content

Identify the Query Error Source

Query parsing errors can originate from multiple sources. Use this diagnostic table:
Error LocationLikely CauseFix Priority
RISKSHEET loadingInvalid query in dataTypes.master.query or dataTypes.task.query⚠️ High
Document access in Polarion 2410+Auto-assignment rule with unverified template expressionsCritical
Column configurationMalformed query in typeProperties.query for linked columns⚠️ High
Saved view/filterInvalid Lucene syntax in personal filterℹ️ Medium
Polarion’s auto-assignment feature can generate malformed queries when template expressions like {{7*7}} are not properly evaluated. These errors appear in Polarion logs and block document access, but are often misattributed to Nextedy plugins because they act as interceptors in the error logging chain. Always verify auto-assignment configuration before assuming plugin defects.

Step 1: Locate the Error Message

Find the exact query causing the parsing error.

Check Browser Console

  1. Open RISKSHEET in your browser
  2. Press F12 to open Developer Tools
  3. Navigate to the Console tab
  4. Look for error messages containing “Unparseable query” or “ParseException”
  5. Note the query fragment shown in the error

Check Polarion Server Logs

  1. Access Polarion server logs (typically /opt/polarion/data/logs/)
  2. Search for “Unparseable query” or “ParseException”
  3. Identify the malformed query and the triggering operation
  4. Note if the error mentions auto-assignment, custom fields, or workflow actions
  • Unparseable query error? — Check error location
    • RISKSHEET config? — Step 2: Fix RISKSHEET queries
    • Auto-assignment rule? — Step 3: Fix auto-assignment
    • Column configuration? — Step 4: Fix column queries
    • Unknown source? — Step 5: Validate all queries

Step 2: Fix RISKSHEET Query Configuration

Invalid queries in dataTypes configuration prevent RISKSHEET from loading.

Common Query Syntax Errors

Missing quotes around multi-word values:
// ❌ WRONG - will fail if document name has spaces
"query": "type:risk AND module.id:Safety Requirements"

// ✅ CORRECT - quotes handle spaces
"query": "type:risk AND module.id:\"Safety Requirements\""
Invalid boolean operators:
// ❌ WRONG - lowercase operators not supported
"query": "type:risk and status:open"

// ✅ CORRECT - uppercase boolean operators
"query": "type:risk AND status:open"
Malformed field syntax:
// ❌ WRONG - missing colon between field and value
"query": "type risk"

// ✅ CORRECT - proper field:value syntax
"query": "type:risk"
Unescaped special characters:
// ❌ WRONG - parentheses need escaping
"query": "title:Risk (High)"

// ✅ CORRECT - escape special characters
"query": "title:\"Risk (High)\""

Validate Query Syntax

Test your query before adding to configuration:
  1. Open Polarion’s Advanced Search page
  2. Switch to Lucene Query mode
  3. Paste your query and execute
  4. If errors appear, correct the syntax
  5. Once working, copy the validated query to RISKSHEET configuration
Use Polarion’s graphical query builder to construct complex queries, then switch to Lucene mode to see the generated syntax. This helps avoid syntax errors.

Step 3: Fix Auto-Assignment Configuration Issues

In Polarion 2410+, auto-assignment rules can inject invalid queries.

Identify Problematic Auto-Assignment Rules

  1. Navigate to AdministrationWorkflow and FieldsAuto-Assignment Rules
  2. Review rules applied to work item types used in your RISKSHEET
  3. Look for template expressions like {{variable}} in assignment logic
  4. Check if these expressions are properly evaluated before use in queries

Common Auto-Assignment Query Issues

Unevaluated template expressions:
## ❌ WRONG - template not evaluated, creates literal "{{7*7}}" in query
assignee:{{7*7}}

## ✅ CORRECT - template evaluated to value before query construction
#set($calculatedValue = 49)
assignee:user_${calculatedValue}
Using unverified custom field values:
## ❌ WRONG - if $workItem.customField is null or contains special chars
project.id:$workItem.customField.projectId

## ✅ CORRECT - verify value exists and escape special characters
#if($workItem.customField.projectId)
project.id:"$workItem.customField.projectId"
#end

Disable Problematic Rules Temporarily

If you cannot immediately fix the auto-assignment rule:
  1. Navigate to the rule in Administration
  2. Set the rule to Inactive
  3. Test if documents load correctly
  4. Fix the rule logic before re-enabling
When query errors appear in Polarion 2410+, ensure Nextedy RISKSHEET and related plugins (Checklist, etc.) are updated to versions compatible with your Polarion release. Check the Polarion Version Compatibility reference for minimum required plugin versions.

Step 4: Fix Column Query Configuration

Linked columns using custom queries can have syntax errors.

Review Column typeProperties

For columns with type: "itemLink", type: "taskLink", or type: "multiItemLink":
  1. Open RISKSHEET Configuration Editor
  2. Locate columns with typeProperties.query
  3. Validate each query using Polarion’s Advanced Search
  4. Fix syntax errors using patterns from Step 2
Example problematic column configuration:
{
  "id": "linkedReqs",
  "type": "itemLink",
  "typeProperties": {
    "query": "type:requirement AND project.id:PROJ",  // ✅ Valid
    "types": "requirement"
  }
}
Versus:
{
  "id": "linkedReqs",
  "type": "itemLink",
  "typeProperties": {
    "query": "type requirement project PROJ",  // ❌ Missing colons and AND
    "types": "requirement"
  }
}

Test Column Queries Independently

Isolate column query issues:
  1. Copy the typeProperties.query value
  2. Test in Polarion Advanced SearchLucene Query
  3. Add project and document context if needed:
    type:requirement AND project.id:MYPROJECT AND module.id:"Document Name"
    
  4. Verify the query returns expected work items
  5. Update RISKSHEET configuration with corrected query

Step 5: Validate All Query Configurations

Systematically check all query sources.

Configuration Properties to Review

Property PathPurposeValidation Method
dataTypes.master.queryFilters master/risk work itemsTest in Advanced Search
dataTypes.task.queryFilters task/mitigation itemsTest in Advanced Search
columns[].typeProperties.queryFilters linked items in columnsTest in Advanced Search
reviews.typeProperties.queryFilters review-related itemsTest in Advanced Search

Validation Checklist

For each query found:
  • Boolean operators are uppercase (AND, OR, NOT)
  • Field names use correct syntax: field:value or field.subfield:value
  • Multi-word values are quoted: module.id:"Document Name"
  • Special characters are escaped or quoted
  • Template expressions (if any) are properly evaluated
  • Query executes without errors in Polarion Advanced Search

Step 6: Check System Field Restrictions

Some fields are read-only and cannot be used in certain query contexts.

Protected System Fields

These fields are read-only in RISKSHEET and should not appear in assignment or update queries:
  • id (work item ID)
  • status (workflow status)
  • type (work item type)
  • project (project ID)
  • outlineNumber (document hierarchy position)
The status field uses enum names (display values) rather than enum IDs in queries. Use status:open not status:open-id.

Common Query Patterns

Filter by Work Item Type

type:risk
type:(risk hazard)

Filter by Project and Document

project.id:MYPROJECT AND module.id:"Safety Analysis"

Filter by Date Range

created:[NOW-90DAYS TO NOW]
updated:[2024-01-01 TO 2024-12-31]

Filter by Custom Enum Field

customField.priority:high
customField.status:(open inProgress)

Filter by User Assignment

assignee:john.doe
assignee:(john.doe jane.smith)

Combine Multiple Conditions

type:risk AND status:(open inProgress) AND customField.severity:critical

Verification

After fixing query syntax, you should see:
  • RISKSHEET loads without query parsing errors
  • Polarion logs show no “Unparseable query” messages
  • All queries execute successfully in Polarion Advanced Search
  • Columns displaying linked items load data correctly
  • Auto-assignment rules execute without errors
If errors persist, capture the exact error message and malformed query, then contact Nextedy support with Polarion version, plugin versions, and the problematic query.

See Also

Support TicketsSource Code
  • MultiItemLinkEditor.ts
  • QueryBuilder.java
  • GetSetUtil.java