Skip to main content
Question

Unable to query folder using metadata - 400 too_many_instances


Forum|alt.badge.img

During call to query folder by metadata I'm getting HTTP 400 - too_many_instances, this is happening just with one box subscription, it's working for the other one

Request:

1curl --location 'https://api.box.com/2.0/metadata_queries/execute_read' \
2--header 'box-version: 2024.0' \
3--header 'Content-Type: application/json' \
4--header 'Authorization: Bearer ****' \
5--data '{
6 "from": "enterprise_1234.metadata",
7 "query": "entityId = :entityId and entityType = :entityType",
8 "query_params": {
9 "entityId": 1,
10 "entityType": "TEST_FOLDER"
11 },
12 "fields": [
13 "id"
14 ],
15 "ancestor_folder_id": "0"
16}'

Response:

1{
2 "type": "error",
3 "status": 400,
4 "code": "too_many_instances",
5 "help_url": "https://developer.box.com/reference/post-metadata-queries-execute-read/",
6 "message": "Too many instances, and no supporting index available",
7 "request_id": "0e75317d0072c5a523ba79f1422552050"
8}

Tried to find something in box community but all the references are old and the links are not working anymore

2 replies

jbuck-palig
  • New Member
  • 1 reply
  • August 20, 2025

Did you ever figure this out? I’m having the same issue.


matt.riley Box

Generally if this error pops up, we’ll need to enable a specific feature for you. Working through our Product Support team or your account team is going to be the best way to resolve this issue. 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings