Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does an item with an expired Archive Date still appear in the Content Tree?

I am trying to create an Archive strategy within sitecore and I am seeing unexpected results. If I Archive an item manually, it goes to the Archive application and disapears from the Content Tree.

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

Is this expected behavior?

like image 775
JoshBaltzell Avatar asked Mar 08 '11 19:03

JoshBaltzell


People also ask

How long do items stay in archive?

Messages you archived aren't deleted, and you can access them at any time. Gmail keeps your archived emails indefinitely or until you delete them. Only messages that are deleted are removed from the Trash after 30 days.

How long do things stay in archive Outlook?

The default period for your Draft and Inbox items is six months, and three months for your Sent Items, but you can change these periods using the Clean out items older than option.

What does delete expired items mean in Outlook?

Delete expired items (e-mail folders only) This option is off by default. Select this check box to delete messages after their aging period has passed. Archive or delete old items Choose this option if you want to set or change the settings that follow.


1 Answers

Sounds as a pun, but the TaskDatabase takes over this task. :)

When you set an archive date on an item, the record about this gets into the Tasks table of the core database. Afterwards, the TaskDatabaseAgent iterates that table with the defined frequency and processes tasks. The frequency is defined as usual, in <scheduling> section of web.config.

The message "The item was archived at ..." should not confuse you - it is displayed once the date/time is reached. But the item will be archived the next time the scheduling agent runs the tasks database.

Play with scheduling settings and you'll see how it works.

like image 173
Yan Sklyarenko Avatar answered Oct 04 '22 03:10

Yan Sklyarenko