In my SQLCreator Parameters, I have created the following statement in the SQL Statement:
SELECT * FROM contributor_dg.$(THEME)_$(AOI) WHERE SUPPLY_DATE = '$(SUPPLY_DATE)';
...$(THEME), $(AOI) and $(SUPPLY_DATE) are all published parameters.
I was able to run the process with no issues on version 2015.0. Since upgrading to 2015.1 and opening the same workbench with 2015.1, I can no longer expose the attributes based on the above sql statement. An error "Failed to execute the SQL Query" appears saying of an syntax error at or near "$".
This is the log that it generates:
FME Configuration: Using Named Connection values from 'xxx' for R_11
Creating reader for format: PostGIS
Trying to find a DYNAMIC plugin for reader named `POSTGIS'
FME Configuration: Source coordinate system for reader R_11[postgis] set to `LL-WGS84'
Coordinate System `LL-WGS84' parameters: CS_NAME=`LL-WGS84' DESC_NM=`WGS84 Lat/Longs' DT_NAME=`WGS84' GROUP=`LL' MAP_SCL=`1' PROJ=`LL' QUAD=`1' SCL_RED=`1' UNIT=`DEGREE'
FME API version of module 'POSTGIS' matches current internal version (3.7 20150407)
Opening POSTGIS reader for dataset 'xxx'
PostGIS client encoding: 'UTF8'
PostgreSQL 9.3.13 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4), 64-bit
2.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1
Error executing SQL command ('declare "public_custom_query_crsr" cursor for SELECT * FROM contributor_dg.$(THEME)_$(AOI) WHERE SUPPLY_DATE = '$(SUPPLY_DATE)';'): 'ERROR: syntax error at or near "$"
A fatal error has occurred. Check the logfile above for details
Successfully closed POSTGIS database reader