Bucket inventory failures fall into one of three causes: the bucket exceeds the object count limit for the chosen export frequency, the source and destination buckets don't meet the configuration requirements, or the RAM role lacks the required permissions. Check each cause below to identify and fix the issue.
Object count exceeds the export frequency limit
OSS enforces the following object count limits based on export frequency:
| Export frequency | Maximum objects in bucket |
|---|---|
| Daily | < 10 billion |
| Weekly | < 50 billion |
If your bucket has 10 billion or more objects, switch to weekly exports.
If your bucket has 50 billion or more objects, use one of the following approaches:
Export inventory lists by prefix in batches to stay within the limit.
Submit a ticket to increase the number of inventory lists that can be exported.
Bucket configuration requirements
The source bucket (the bucket you're inventorying) and the destination bucket (where inventory lists are stored) can be different buckets. Both buckets must satisfy the following requirements:
| Requirement | Details |
|---|---|
| Same Alibaba Cloud account | Both buckets must belong to the same Alibaba Cloud account. |
| Same region | Both buckets must reside in the same region. |
RAM role lacks the required permissions
The RAM role used to export inventory lists is missing permissions. Grant the required permissions to the RAM role.
For the full list of required permissions, see Bucket inventory.