I am using a SQL Executor to run a query that gives non spatial results. Since the combination if the SQL Spatial and Non Spatial formats, the field “Combines geometry” is a required field. This causes the warning to appear in my logs for as many times as there are records passing through the executor.
Is this something we have to live with as a bug or can it be circumvented?
This is my chat with AI Assist but I wanted some human input
Me: this one keeps throwing the error Microsoft SQL Server Reader: Table `___FME_Custom_SQL_Statement___' does not include a spatial column. Geometry will not be read - why do you think it is?
AI:
Most likely because this SQLExecutor is set to Combine Geometry = Result Geometry Only, but your SQL SELECT only returns non-spatial columns:
ID, USER_ID, WIJZIG_DATUM, OPVOER_DATUM, NUMMER, DOORVERBONDEN_MET, B_KB_MEETPAAL_ID
There’s no SQL Server spatial column in that result set, so FME creates the internal custom SQL table ___FME_Custom_SQL_Statement___, looks for geometry there, and warns that it can’t find any spatial column.
So my read is:
- your query is attribute-only
- the transformer is expecting geometry from the query result
- therefore FME logs “Geometry will not be read”
If that query is only meant to fetch attributes, this warning is harmless. In that case, change Combine Geometry away from Result Geometry Only to keep the incoming initiator geometry instead. If you actually need geometry from SQL Server, then the SELECT must include
Me: exactly! so how do i get rid of this warning seeing that the format does not differentiate sql spatial and non spatial and also combines geometry is a mandatory field
AI:
Right — then the warning is probably not controlled by Combine Geometry at all.
What’s happening is:
- SQLExecutor uses the SQL Server reader internally to run the custom SQL
- that reader inspects the result set ___FME_Custom_SQL_Statement___
- because your query has no spatial column, the SQL Server reader logs the warning before SQLExecutor applies the Combine Geometry setting
So Initiator Geometry Only can control the output geometry, but it may not suppress the SQL Server reader warning.
In practice, that means you usually have only 3 real options:
- accept the warning if the query is intentionally non-spatial
- include a real spatial column in the SELECT, even if you later ignore it
- redesign this step so the database lookup is done by a method that doesn’t force SQL Server spatial inspection of a custom SQL result
Given your current setup, I’d say this is most likely just an unavoidable SQL Server reader warning for custom non-spatial SQL in SQLExecutor, not an actual failure.
If you want, I can help you adjust the SQL so it returns a harmless spatial column purely to silence the warning.
I can’t do 2 and 3 so do I have to live with 1?

