Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Problem while searching using ecm.model.SearchQuery

2700015TFJ gravatar image
Question by fileset  (1) | Aug 17, 2017 at 12:21 PM ecmsupporticnfilenetcpe

I am trying to fetch a resultset using ecm/model/SearchQuery JS object. If I issue a search using "Select * From Document", my code works just fine. But if modify it to use "Select DocumentTitle From Document ORDER BY DocumentTitle" query, it fails with this error

==========================

[8/17/17 9:37:19:047 EDT] 00000f65 SystemErr R CIWEB Error: [(unknown) @ 10.108.255.210] [REQUEST 6184] com.ibm.ecm.struts.actions.p8.P8SearchAction.executeAction() com.filenet.api.exception.EngineRuntimeException: FNRCA0024E: API_PROPERTY_NOT_IN_CACHE: The ClassDescription property was not found in the properties collection.

==========================

Here is the sample code:

require(["dojo/_base/declare","dojo/_base/lang","ecm/model/SearchQuery","ecm/model/Desktop", "ecm/model/SearchConfiguration"], function(declare, lang, SearchQuery, Desktop, SearchConfiguration) {

         var queryParams = {};
         queryParams.pageSize = 100;
         queryParams.query = "Select DocumentTitle From Document ORDER BY DocumentTitle";            
         queryParams.retrieveAllVersions = false;
         queryParams.retrieveLatestVersion = true;
         queryParams.repository = Desktop.repositories[0];
         var searchQuery = new SearchQuery(queryParams);
         console.debug("searchQuery::", searchQuery);
         searchQuery.search(function(response){ 
             console.debug("::response", response);
             console.debug("::response", response.getColumns());
             console.debug("::response.items[0].name", response.items[0].name);
             
         })
     });        

What am I missing here?

People who like this

  0   Show 2
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
2700067X45 gravatar image MarkJordan (1659) ♦   Aug 17, 2017 at 12:26 PM 0
Share

Added CPE related tags to allow SME resources to review the FNRCA0024E: API_PROPERTY_NOT_IN_CACHE error and advise on conditions that would create the exception.

310001QP7E gravatar image nkolunov (79) MarkJordan (1659) ♦   Aug 21, 2017 at 09:00 AM 0
Share

In the SystemOut log I can see:

 com.filenet.api.exception.EngineRuntimeException: FNRCA0024E: API_PROPERTY_NOT_IN_CACHE: The ClassDescription property was not found in the properties collection.
     at com.filenet.apiimpl.property.PropertiesImpl.get(PropertiesImpl.java:127)
     at com.filenet.apiimpl.meta.Util.getInterceptProperty(Util.java:254)

Is there a way to add a property to the property collection?

4 answers

  • Sort: 
3100006SBM gravatar image

Answer by kiran.aithagani (329) | Aug 17, 2017 at 12:54 PM

Did you try adding [This] to the Query. may be something like below

"Select [This],[DocumentTitle] From Document ORDER BY DocumentTitle"

Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
2700015TFJ gravatar image fileset (1)   Aug 17, 2017 at 01:28 PM 0
Share

I had already tried this but this also is throwing error.

310000FSCG gravatar image

Answer by RAM113899 (56) | Aug 17, 2017 at 01:06 PM

if the above doesn't work try below statement. It should work

Select This,ClassDescription,DocumentTitle From Document ORDER BY DocumentTitle

Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
2700015TFJ gravatar image fileset (1)   Aug 17, 2017 at 01:29 PM 0
Share

This did not work either.

310001QP7E gravatar image

Answer by nkolunov (79) | Aug 21, 2017 at 08:53 AM

We also tried:

 queryParams.query = "SELECT This, ClassDescription, DocumentTitle FROM  Document ORDER BY DocumentTitle";
 console.log("sql query is "+queryParams.query);      

                

Still no effect, the system returns "The ReservationType property was not found in the properties collection"

Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
2700067X45 gravatar image MarkJordan (1659) ♦   Aug 22, 2017 at 08:18 AM 0
Share

I have engaged an ICN Dev SME resource to review this concern and lend available input. -M

270000CCN7 gravatar image

Answer by TheoMekonnen (879) | Aug 22, 2017 at 11:41 AM

While waiting on SME to look into this, I found an article that suggests the following:

Add the following JVM argument to the CPE server -DFileNet.CMC.Enabled=true

Add the following JVM argument to the ICN/client server -DCMCEnableOverride=true

You will need to restart both JVMs after adding these JVM arguments.

Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
2700015TFJ gravatar image fileset (1)   Aug 23, 2017 at 07:47 AM 0
Share

Hello, Would you please provide the article link that you found?

Follow this question

144 people are following this question.

Answers

Answers & comments

Related questions

ICN/ P8 Tuning 1 Answer

Custom Object vs Document Class 1 Answer

How to trigger latest entry template while viewing the properties 1 Answer

FileNet Creator unable to delete documents in FileNet (Solved) 2 Answers

GCD still using local file-based copy instead of Database even after database is online 1 Answer

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges