My Oracle Support Banner

Using Search.Operator.EQUAL to Run Imaging Search from Java SDK Causes Error "Invalid operator used in search parameter" (Doc ID 1540744.1)

Last updated on MARCH 29, 2023

Applies to:

Oracle WebCenter Content: Imaging - Version and later
Information in this document applies to any platform.


An Imaging search is defined on a text field with the "Equals" operator, as seen in the screen shot below. 


However, when using the Java SDK to call the search and using the Search.Operator.EQUAL, an error occurs stating "Invalid operator used in search parameter".

oracle.imaging.ImagingException: TCM-05012: Invalid operator used in search parameter

The code that calls the search is as follows:

SearchValue searchValue = new SearchValue(SearchValue.Type.TEXT, "My Search String");
SearchArgument searchArgument = new SearchArgument("TextField", searchValue);

Error in JDeveloper:


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.