Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,887
Community Members
 
Community Events
185
Community Groups

API responds with Cannot get programs. The node count limit of '100' has been exceeded. To increase

Janu Shah
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 03, 2023

While executing the below request:

 

https://opshub.jiraalign.com/rest/align/api/2/Programs?$filter=portfolioId+eq+4+or+portfolioId+eq+8+or+portfolioId+eq+9+or+portfolioId+eq+10+or+portfolioId+eq+11+or+portfolioId+eq+12+or+portfolioId+eq+13+or+portfolioId+eq+14+or+portfolioId+eq+15+or+portfolioId+eq+16+or+portfolioId+eq+17+or+portfolioId+eq+18+or+portfolioId+eq+19+or+portfolioId+eq+20+or+portfolioId+eq+24+or+portfolioId+eq+26+or+portfolioId+eq+27+or+portfolioId+eq+29+or+portfolioId+eq+30+or+portfolioId+eq+31+or+portfolioId+eq+32+or...

 

I am facing the following API response with status code 400 bad request.

Error message: 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 is the cause for this api error?

3 answers

1 vote
Heidi Hendry
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 03, 2023

Hi Janu,

Are you looping your request?

API 2.0 GET usage and filters – Jira Align

 In addition, because of the number of records that can be returned in a GET API call, 100 items is the maximum that can be returned in a single call. Thus when using the API, you must loop through batches of 100 to get all items.

I am not sure about Align but in Jira I thought the default limit was 100 Max 100 records when we do API calls against the C... (atlassian.com)

I gave up trying to use API to get data from Align and moved back to export to xlsx/csv manually.

0 votes
Allan Maxwell
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 03, 2023

I'm guessing you have hit the limit on how many "OR"s you can have.  Can you alter the filter to something smaller such as: {{base_JA_url}}/Programs?$filter=portfolioId EQ 1

Allan Maxwell
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 04, 2023

The ODataValidationSettings.MaxNodeCount is a setting on the backend web service and thus you will not be able to change it.  Your best option is to reconstruct your $filter clause such that there a 99 or fewer "OR"s.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events