Error: why is the GSI dynamodb not showing item count

Answered by Rafal Wilinski
Last updated: October 23rd, 2026
Solution
A GSI's ItemCount from DescribeTable is an approximate statistic updated about every six hours. A stale or zero count does not by itself mean the index has lost items.
- Check IndexStatus and Backfilling. A newly created index must finish building before it is ready for queries.
- Query a known index key to verify data visibility. GSIs are eventually consistent, so a recent write may not appear immediately.
- Check sparse-index membership: an item missing a required index key is not included. A GSI count need not equal its table count.
- For a current count, use Query with Select: COUNT for a known partition, or Scan with IndexName and Select: COUNT for the whole index, and sum Count across every page.
Counting reads index data and consumes capacity. COUNT saves response payload, not read work, and multiple pages are not a consistent snapshot while writes continue. Waiting for the metadata refresh is the inexpensive option when an approximate count is enough.
See GSI operation and AWS documentation.
Other Common DynamoDB Errors (with Solutions)
- ImportError: No module named boto3 (DynamoDB)
- DynamoDB Local NoClassDefFoundError
- dynamodb table did not stabilize
- DynamoDB ValidationException: Query condition missed key schema element
- DynamoDB is missing the key id in the item
- DynamoDB consistent read not working
- dynamodb number_value cannot be converted to string
- dynamodb cannot read property 'push' of undefined
- dynamodb cannot read properties of undefined
- dynamodb the parameter cannot be converted to a numeric value NaN
- dynamodb scan missing values
- dynamodb converter not found for enhancedtype
- dynamodb attribute does not exist
- requested resource not found aws dynamodb
- DynamoDB scan does not return all items
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
DynamoDB Tools
- SSH GUI Client
- Chat With Cloud
- MongoDB GUI Client
- AWS Cost Monitoring
- DynamoDB Query Builder
- DynamoDB Code Examples
- DynamoDB Node.js Queries
- DynamoDB JSON Converter
- DynamoDB UUID Generator
- DynamoDB Local Admin GUI
- DynamoDB Pricing Calculator
- DynamoDB Single-Table Design
- Best DynamoDB GUI Clients
- Dynobase vs DynoTable
DynamoDB Info
© 2026 Dynobase