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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With