When running a masking job from the TDM Portal against an Oracle database, the job fails during execution. The following error is observed in the FDM engine logs or Portal job logs:
ORA-00936: missing expressionjava.sql.SQLSyntaxErrorException: ORA-00936: missing expressionUpon reviewing the generated selectSQL in the log, the query contains a double "WHERE" keyword: SELECT ... FROM "SCHEMA"."TABLE" WHERE where COLUMN_NAME in (...)
The error is caused by a syntax conflict in the masking configuration. Fast Data Masker (FDM) is designed to automatically prepend the keyword WHERE to any filter criteria provided in the configuration.
If a user manually types the word WHERE into the "WHERE Clause" or "Filter" field in the TDM Portal (e.g., WHERE INTEGRATION_ID = '123'), the resulting SQL statement becomes WHERE where INTEGRATION_ID = '123', which is invalid in Oracle.
To resolve this issue, you must remove the literal word "WHERE" from your configuration in the TDM Portal.
WHERE INTEGRATION_ID IN ('001', '002')INTEGRATION_ID IN ('001', '002')YYYY-MM-DD) defined in the rule parameters to ensure proper parsing by the FDM engine.selectSQL entry in the FDM logs to confirm the final SQL structure matches Oracle's requirements.For Parquet File Masking refer to "Issue with Parquet File Masking in HASLOV when using WHERE clause with NOT IN and parentheses around the data".