KM article search is not working for a particular String
SummaryKM article search is not working when doing a search for "milk" or "milka", no results are being returned.
Error MessagesNot Applicable
Steps to Reproduce1. Launch Interaction portal.
2. Click on Knowledge tab on left side.
3. in search field enter "Milk" or "Milka".
Root CauseA third-party product issue.
Issue seems to be because of current limitation with ORACLE where in it allows only maximum of 1000 expressions (basically a space holder ‘?’) currently in a query. We observed that in the tracer we were getting below error.
“There was a problem getting a list: code: 1795 SQLState: 42000 Message: ORA-01795: maximum number of expressions in a list is 1000”.
When searched for “Milka”, the result count returned by RD ContentSearch is 1001 (called from Step 5 of activity KMSearchRD).
The resultset of these keys are passed as input for retrieving Taxonomy Content Keys.
This is where the code is breaking. The query that is getting build (something on below lines) has more than 1000 expressions and ORACLE is making noise here.
“SELECT "PC0".CONTENTKEY AS "ContentKey" , "PC0".TAXONOMYKEY AS "TaxonomyKey" FROM RULES.pfw_km_link_contentcategory "PC0" WHERE "PC0".CONTENTKEY IN (? , ? , ? , ? , ? , ? , ?.........”.
ResolutionPerform the following local-change:
The quick fix for this would be to limit the search results returned to some where around 990.
This limit can be set to parameter pyMaxResults in Step 5 of KMSearchRD.
Published February 16, 2017 - Updated March 14, 2017