I'm executing below mentioned API request:
The response of this contains 48 nodes, still it gives error as:
"Cannot get programs. The node count limit of '100' has been exceeded. To increase the limit, set the 'MaxNodeCount' property on EnableQueryAttribute or ODataValidationSettings."
What could be the possible cause of this behavior?
The simple answer is that your Filter clause is too long. I get the same error that you are getting, but if I delete the everything after the last "OR" clause, it works as expect.
With the last "OR" clause, the node count is only 48. Ideally, it should work regardless of length of filter clause
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@AutomationUIUser How are you defining "node count"? How do you determine node count is 48? I believe "Node Count" refers to the number of tokens in the SELECT clause.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Definition of node count is fine, but how do I decide from query parameters that this query will not result in error?
i.e. query given in the question itself, how do I decide that how many OR clause should I add? query up to "portfolio+eq+31" it will give proper result, but with last OR clause it will give error, so how do you define query parameter limit?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think "portfolioID eq 5 and" is four tokens, so you can only select 25 portfolios at a time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm passing this query, which has total 83 tokens. Still it gives error as:
"Cannot get programs. The node count limit of '100' has been exceeded. To increase the limit, set the 'MaxNodeCount' property on EnableQueryAttribute or ODataValidationSettings."
what could be the reason for this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you're query string parameters are still too abundant. The query about will work if you delete the last "OR" clause.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same issue: query ran with 79 tokens works just fine, add another 4 tokens and the API gives a 400 error.
There is clearly a limit to the number of filter conditionals (tokens) that can be used at once - what is that limit? It's not 100.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.