Resolving Oracle SQL Execution Errors in Policy Xpress
search cancel

Resolving Oracle SQL Execution Errors in Policy Xpress

book

Article ID: 200633

calendar_today

Updated On:

Products

CA Identity Governance CA Identity Manager CA Identity Portal CA Identity Suite

Issue/Introduction

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.

Environment

 

  • Identity Suite / Identity Manager: 14.x, 15.x (Virtual Appliance or On-Premise)

  • Database: Oracle Database

 

 

Resolution

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.

    Example Correction

    • ❌ Incorrect (Contains trailing semicolon and line breaks):

      SQL
       
      UPDATE IDP.MYTABLE SET ID='1234',
      ROL='Data',
      SUCCESS='false'
      WHERE CODEUID=100;

      ✅ Correct (Clean JDBC syntax without semicolon):

      SQL
       
      UPDATE IDP.MYTABLE SET ID='1234', ROL='Data', SUCCESS='false' WHERE CODEUID=100