When configuring a Policy Xpress (PX) policy in Identity Manager, your SQL query fails during execution or testing with errors such as:
ORA-00923: FROM keyword not found where expected
ORA-00933: SQL command not properly ended
Even though the same SQL query runs successfully in command-line SQL tools (like SQL*Plus or iSQL), it fails when executed through the Policy Xpress Action interface.
Identity Suite / Identity Manager: 14.x, 15.x (Virtual Appliance or On-Premise)
Database: Oracle Database
To resolve this issue, adjust how you format your SQL query inside the Policy Xpress configuration:
Remove Trailing Semicolons: Interactive SQL tools rely on a trailing semicolon (;) to denote the end of a command. However, JDBC prepared statements in Identity Manager execute raw SQL strings directly and do not accept a trailing semicolon. Remove the ; from the end of your query string.
Format as Single Line (Avoid Unnecessary Multi-line Breaks): Copying multi-line queries from external editors into PX can introduce hidden line breaks or formatting characters that cause parsing errors (such as ORA-00923). Format your SQL statement on a single line or ensure standard spacing between keywords and clause parameters.
Verify Quotation and Syntax: Ensure all string parameters have matching single quotes and standard comma separators between updated column pairs.
❌ Incorrect (Contains trailing semicolon and line breaks):
✅ Correct (Clean JDBC syntax without semicolon):
UPDATE IDP.MYTABLE SET ID='1234', ROL='Data', SUCCESS='false' WHERE CODEUID=100