Issue with Job Serach Agent Process (HRS_JSCH_IDX) in PS HRMS 9.0
We face a starnge issue with this AE (HRS_JSCH_IDX).
When we run for the first time, it fails with the below error.
Cannot convert type Boolean to object type ApiObject. (180,6 04) HRS_COMMON.SEARCH.BUS.Veri tyJobSchProvider.OnExecute Na me:searchCollection PCPC:9111 Statement:147 Called from:HRS_COMMON.SEARCH. BUS.VerityJobSchProvider.OnExe cute Name:search Statement:4
Fails at the line "&searchResultsColl = &searchQuery.Execute(&searchStartNbr, &searchPageChunk);"
&searchResultsColl is of type SearchQuery (see Session class GetSearchQuery method) The execute method of the SearchQuery class returns an APIObject (a SearchResultCollection to be precise) and not boolean. -> code is correct. But, when we re run the process again it goes to sucess. This happens on a daily basis and we end up runing the process twice. Happens in test env as well. We tried to setup trace and it fails exactly at the same code. And the trace file for sucess run as well has the same code, suggesting that the same was line was trigerred. We tried to check if