I am trying to use the following method from ContentService: ResultPa

I am trying to use the following method from ContentService:

ResultPage browsePaging(java.lang.Long root,
ContentFilter filter,
int startIndex_,
int batchSize_,
java.lang.Integer sortProperty_,
java.lang.Integer sortOrder_)
throws InvalidContentException,
PrivilegeException

It fails with following exception:

com.appiancorp.kougar.driver.exceptions.Signal: rank

Using the same service, its other method browse() works fine.
Kindly help in finding the cause of this error and why the paging method is failing....

OriginalPostID-97032

OriginalPostID-97032

  Discussion posts and replies are publicly visible

Parents
  • 1. What version of Appian are you testing this on?
    2. Can you try on more than one environment to see if the issue is environment specific?
    3. This works for me on Appian 7.3
    4. Can you try these two lines instead?

    final Long root = contentService.getIdByUuid(ContentConstants.UUID_COMMUNITY_ROOT);
    ResultPage resultPage = contentService.browsePaging(root,new ContentFilter(ContentConstants.TYPE_COMMUNITY),0,5, ContentConstants.COLUMN_NAME,Constants.SORT_ORDER_ASCENDING);
Reply
  • 1. What version of Appian are you testing this on?
    2. Can you try on more than one environment to see if the issue is environment specific?
    3. This works for me on Appian 7.3
    4. Can you try these two lines instead?

    final Long root = contentService.getIdByUuid(ContentConstants.UUID_COMMUNITY_ROOT);
    ResultPage resultPage = contentService.browsePaging(root,new ContentFilter(ContentConstants.TYPE_COMMUNITY),0,5, ContentConstants.COLUMN_NAME,Constants.SORT_ORDER_ASCENDING);
Children
No Data