Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Error in method Document.moveContent()

    Posted 12/07/20 07:29 AM

    Hello,

    an error occurs when calling the method Document.moveContent(StorageArea):

    com.filenet.api.exception.EngineRuntimeException: FNRCA0024E: API_PROPERTY_NOT_IN_CACHE: The Id property was not found in the properties collection.

    My Java code in SweepAction:

    document = (Document) sweepItem.getTarget(); document = Factory.Document.fetchInstance(objectStore, document.get_Id(), null); StorageArea sa = Factory.StorageArea.getInstance(objectStore, new Id("{C6237952-580C-4953-AE02-D3F7D5A1287D}")); if (sa != null) { document.moveContent(sa); document.save(RefreshMode.REFRESH); }



    #FileNet
    #Support
    #SupportMigration


  • 2.  RE: Error in method Document.moveContent()

    Posted 12/16/20 06:22 PM

    I agree it looks strange. Did you try to populate the properties collection with the Id property (using the 3rd parameter to the fetchInstance call)?

    /Gerold



    #FileNet
    #Support
    #SupportMigration


  • 3.  RE: Error in method Document.moveContent()

    Posted 12/19/20 03:03 AM

    I solved it using this rows:

    MoveContent pa = new MoveContent(storageAreaId, Boolean.FALSE); document.addPendingAction(pa); document.save(RefreshMode.REFRESH);



    #FileNet
    #Support
    #SupportMigration