Identify the Query Error Source
Query parsing errors can originate from multiple sources. Use this diagnostic table:| Error Location | Likely Cause | Fix Priority |
|---|---|---|
| RISKSHEET loading | Invalid query in dataTypes.master.query or dataTypes.task.query | ⚠️ High |
| Document access in Polarion 2410+ | Auto-assignment rule with unverified template expressions | Critical |
| Column configuration | Malformed query in typeProperties.query for linked columns | ⚠️ High |
| Saved view/filter | Invalid Lucene syntax in personal filter | ℹ️ Medium |
Step 1: Locate the Error Message
Find the exact query causing the parsing error.Check Browser Console
- Open RISKSHEET in your browser
- Press
F12to open Developer Tools - Navigate to the Console tab
- Look for error messages containing “Unparseable query” or “ParseException”
- Note the query fragment shown in the error
Check Polarion Server Logs
- Access Polarion server logs (typically
/opt/polarion/data/logs/) - Search for “Unparseable query” or “ParseException”
- Identify the malformed query and the triggering operation
- 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 indataTypes configuration prevent RISKSHEET from loading.
Common Query Syntax Errors
Missing quotes around multi-word values:Validate Query Syntax
Test your query before adding to configuration:- Open Polarion’s Advanced Search page
- Switch to Lucene Query mode
- Paste your query and execute
- If errors appear, correct the syntax
- Once working, copy the validated query to RISKSHEET configuration
Step 3: Fix Auto-Assignment Configuration Issues
In Polarion 2410+, auto-assignment rules can inject invalid queries.Identify Problematic Auto-Assignment Rules
- Navigate to Administration → Workflow and Fields → Auto-Assignment Rules
- Review rules applied to work item types used in your RISKSHEET
- Look for template expressions like
{{variable}}in assignment logic - Check if these expressions are properly evaluated before use in queries
Common Auto-Assignment Query Issues
Unevaluated template expressions:Disable Problematic Rules Temporarily
If you cannot immediately fix the auto-assignment rule:- Navigate to the rule in Administration
- Set the rule to Inactive
- Test if documents load correctly
- Fix the rule logic before re-enabling
Step 4: Fix Column Query Configuration
Linked columns using custom queries can have syntax errors.Review Column typeProperties
For columns withtype: "itemLink", type: "taskLink", or type: "multiItemLink":
- Open RISKSHEET Configuration Editor
- Locate columns with
typeProperties.query - Validate each query using Polarion’s Advanced Search
- Fix syntax errors using patterns from Step 2
Test Column Queries Independently
Isolate column query issues:- Copy the
typeProperties.queryvalue - Test in Polarion Advanced Search → Lucene Query
- Add project and document context if needed:
- Verify the query returns expected work items
- Update RISKSHEET configuration with corrected query
Step 5: Validate All Query Configurations
Systematically check all query sources.Configuration Properties to Review
| Property Path | Purpose | Validation Method |
|---|---|---|
dataTypes.master.query | Filters master/risk work items | Test in Advanced Search |
dataTypes.task.query | Filters task/mitigation items | Test in Advanced Search |
columns[].typeProperties.query | Filters linked items in columns | Test in Advanced Search |
reviews.typeProperties.query | Filters review-related items | Test in Advanced Search |
Validation Checklist
For each query found:- Boolean operators are uppercase (AND, OR, NOT)
- Field names use correct syntax:
field:valueorfield.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
Filter by Project and Document
Filter by Date Range
Filter by Custom Enum Field
Filter by User Assignment
Combine Multiple Conditions
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
See Also
- Reference: Query Syntax - Complete Lucene query syntax reference
- Configure Queries - Advanced query configuration guide
- Slow Page Loading - Optimize query performance
- Reference: Polarion Version Compatibility - Plugin version requirements
Sources
Sources