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 SEPTEMBER 17, 2018

Applies to:

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

Symptoms

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);
searchArgument.setOperatorValue(Search.Operator.EQUAL);

Error in JDeveloper:

Cause

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

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


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