Help Center/ Object Storage Service/ FAQs/ How Do I Use Lifecycle Management?/ How Do I Fix the Error "'Days' in the expiration action must be a non-zero positive integer greater than that in the transition action."?
Updated on 2026-11-16 GMT+08:00

How Do I Fix the Error "'Days' in the expiration action must be a non-zero positive integer greater than that in the transition action."?

This error occurs when the number of days configured for object expiration is invalid or is less than the number of days configured for storage class transition in the same lifecycle rule.

For example, you create a lifecycle rule to transition all objects to the Infrequent Access storage class 30 days after their last modification. Three days later, you modify the rule by adding a configuration to delete all objects 28 days after their last modification. The new configuration fails, and OBS returns the error message "'Days' in the expiration action must be a non-zero positive integer greater than that in the transition action." with the status code "400 BAD_REQUEST".

To resolve this issue, change the number of days for object expiration to a non-zero positive integer greater than the number of days for storage class transition.