set doNotArchiveInCompleteTodoItems to false -- If set to true then archiving will ignore all items that are marked with a todo flag but are not complete (including items with no due date which are by definition always incomplete)