Error: why is the GSI dynamodb not showing item count

Answered by Rafal Wilinski
What's Causing This Error
DynamoDB updates the item count of a GSI roughly every 6 hours. Therefore, it will take a while for DynamoDB to update the item count if you added them recently.
Consequently, you will not be able to see the item count for a few hours (approximately 6).
Solution - Here's How To Resolve It
There is no way to improve the time taken for DynamoDB to count items in the GSI. Hence, the only solution is to wait for a couple of hours before checking the item count.
Other Common DynamoDB Errors (with Solutions)
- dynamodb cannot read property '0' of undefined
- DynamoDB ValidationException: Query condition missed key schema element
- dynamodb mapper save not persisting
- dynamodb exclusivestartkey not working
- dynamodb global secondary index not working
- DynamoDB Item Does Not Exist
- DynamoDB ConditionalCheckFailedException
- DynamoDB Duplicate Key Error
- dynamodb consistent reads are not supported on global secondary indexes
- DynamoDB Internal Server Error
- aws.dynamodb.documentclient is not a constructor
- dynamodb list_append if_not_exists not working
- dynamodb converter not found for enhancedtype
- dynamodb put function not working
- DynamoDB error 400
Better DynamoDB experience.
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase