Why is an item with an expired archive date still showing in the content tree?

I am trying to create an archive strategy in sitecore and I see unexpected results. If I archive an item manually, it goes to the Archive application and disappears from the Content Tree.

If instead I set the date and time of the archive, and then wait, the item says "This item has been archived" in the archive menu, but the item is still available in the content tree. It is also NOT available in the Archive application.

Is this the expected behavior?

+6
sitecore sitecore6
source share
1 answer

Sounds like a pun, but TaskDatabase does this task. :)

When you set the archive date for an item, an entry about it falls into the task table of the main database. Subsequently, TaskDatabaseAgent iterates this table at a given frequency and performs tasks. The frequency is determined as usual in the <scheduling> section of the web.config file.

The message "The item has been archived ..." should not confuse you - it is displayed after reaching the date / time. But the item will be archived the next time the scheduling agent starts the task database.

Play with the planning settings and you will see how it works.

+7
source share

All Articles