GEOMETRY type not supported in SELECT
The GEOMETRY type cannot be used directly in SELECT statements. This error occurs when your query attempts to return a geometry column or the result of a geometry function.Error response
Cause
Geometry functions likeSTCIRCLE() return GEOMETRY types that cannot be serialized in query results. While you can use geometry functions in JOIN conditions and WHERE clauses, you cannot SELECT them directly.
Solution
Remove the GEOMETRY column from your SELECT statement. Keep geometry operations only in JOIN or WHERE clauses. Before (causes error):String concatenation type mismatch
The|| operator concatenates strings but requires compatible types on both sides. This error occurs when you try to concatenate incompatible types.
Error response
Cause
The|| operator requires both operands to be strings (or equivalent string types). Common causes include:
- Concatenating a complex record type with a string
- Mixing incompatible character types
- Using structured fields that haven’t been extracted to simple strings
Solution
Extract string values from complex types before concatenation, or cast values to compatible string types. Before (causes error):General tips for type errors
- Check the
detailfield — It identifies the specific types that are incompatible - Review structured fields — Many fields in Narrative are record types with
.valuesubfields - Use explicit casts — When in doubt, cast values to the expected type with
CAST(field AS type) - Check the instance —
/nql/parseerrors occur during query validation;/nql/runerrors occur during execution
Related content
NQL Data Types
Reference for supported data types
NQL Functions
Reference for built-in functions including geometry operations
NQL Troubleshooting
Overview of common NQL errors
Rosetta Stone Attributes
Understanding structured attribute types

