Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
4 subscribers
Views
1628 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
I am trying to use the following method from ContentService: ResultPa
anushreej
over 10 years ago
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
0
Eduardo Fuentes
Appian Employee
over 10 years ago
Can you paste the relevant piece of code where you are calling this method? I am interested on how you have defined your ContentFilter and the sort's you are passing.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
anushreej
over 10 years ago
HI, the method call is as follows:
ResultPage resultPage = contentService.browsePaging(0L,new ContentFilter(ContentConstants.TYPE_COMMUNITY),0,5,
ContentConstants.COLUMN_NAME,Constants.SORT_ORDER_ASCENDING);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
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);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
anushreej
over 10 years ago
Hi,
I am testing this method on Appian 7.3. It was tested on two environments and both yielded the same result (the above mentioned exception).
I also tried the code snippet given by you and it is still giving the same exception.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
Do you know if at some point these environments were made a copy one of the other?
Is this an upgraded environment from a previous version?
Can you try in a clean 7.3. It would be important to determine what in the collaboration engine of those environments might be causing the issue.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel