syUnableToParseDate Error When Sending Date Match Query from RIDC API to the Content Server (Doc ID 1140744.1)

Last updated on MAY 03, 2017

Applies to:

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

Symptoms

Using the following RIDC code the Search is failing with syUnableToParseDate error on the content server.

IdcClient client = newIdcClientManager().createClient("idc://servername:port");
DataBinder requestBinder = client.createBinder();
requestBinder.putLocal("IdcService","GET_SEARCH_RESULTS");
requestBinder.putLocal("QueryText","[columnName] = TO_DATE('2010-01-01 01:01:00','YYYY-MM-DD HH24:MI:SS')");
requestBinder.putLocal("SortSpec","");
// an arbitrary int
requestBinder.putLocal("ResultCount","21474");
requestBinder.putLocal("StartRow","1");
requestBinder.putLocal("SearchEngineName","database");
requestBinder.putLocal("SearchQueryFormat","Database");
requestBinder.putLocal("UserDateFormat","yyyy-M-dd HH:mm:ss");
requestBinder.putLocal("UserTimeZone","");

ServiceResponse response = null;
try{
// create a context for the instance and use it
response = client.sendRequest(context,requestBinder);
DataBinder responseBinder = response.getResponseAsBinder();
} catch (IdcClientException e) {
e.printStackTrace();
}

The following error is seen:

oracle.stellent.ridc.protocol.ServiceException: Unable to execute service GET_SEARCH_RESULTS and function getSearchResults.
(System Error: Unable to parse date 'TO_DATE(2010-01-01 01:01:00','YYYY-MM-DD HH24:MI:SS''.)
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(SerivceResponse.java:116)
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:92)
at (our classes....)

Content Server Logs show the following:

system mm.dd hh:mm:ss.mmm IdcServerThread-72 fixUpAndValidateQuery(TO_DATE(2010-01-01 01:01:00','YYYY-MM-DD HH24:MI:SS') -> Offset 0 yyyy-MM-dd HH:mm:ss InvalidNumber Year. retry: Offset 0 d-MMM-yy {h:mm[:ss] {aa}}!mAM,PM InvalidNumber Day
system mm.dd hh:mm:ss.mmm IdcServerThread-72 !syUnableToParseDate, TO_DATE(2010-01-01 01:01:00'\,'YYYY-MM-DD HH24:MI:SS'-exception stack
at intradoc.search.DBSearchConfigCompanion.fixUpAndValidateQuery(DBSearchConfigCompanion.java:374)
at intradoc.shared.CommonSearchConfig.fixUpAndValidateQuery(CommonSearchConfig.java:1503)
at intradoc.server.SearchService.prepareLocalSearch(SearchService.java:1007)
at intradoc.server.SearchService.getSearchResults(SearchService.java:529)
at sun.reflect.GeneratedMethodAccessor7.invoke
...
...
at intradoc.common.IdcMethodHolder.....

Cause

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 hundreds of Community platforms