12-04-2012 12:46 PM
I wrote simple EVPM Script to archive calendar items older than 21 months, delete the Calendar from Exchange, and assign a retention category to Calendar Items:
When I run it, it creates a Calendar Folder in the archive, but only archives one item. When I "run now" it archives one calendar item.
I set the mailbox policy to Archive Unexpired Calendar Items and Do Not Archive pending reminders to off.
Has anyone see behavior like this? Any help appreciated
Using EV9.0.3
[Directory]
DirectoryComputerName = directory computer
Sitename = VaultSite
[Filter]
Name = Calendar
CreateShortcut = false
DeleteOriginal = true
UnreadMAIL = true
UseInactivityPeriod = true
InactivityUnits = Months
InactivityPeriod = 21
[MAILBOX]
DistinguishedName = /O=ORG/OU=OU/cn=Recipients/cn=Recipient
[Folder]
Name = \Calendar
Filtername = Calendar
Retentioncategory = Calendar
OverrideArchiveLocks = true
When I apply it I can see it in the hidden the policy in the hidden message:
VERSION INFORMATION
Operating System Microsoft Windows 7 Server 4.0 Service Pack 1 (Build 7601)
Outlook Microsoft Outlook 2010
Internet Explorer 8.0.7601.17514
Enterprise Vault Add-in 9.0.3.1164
VBScript component (Outlvbs.dll) Available
USER DETAILS
User Mailbox /O=ORG/OU=OU/cn=Recipients/cn=USER
Outlook connection state Online (1)
RPC over HTTP flags 0
TESTING CONNECTION
Skipping DCOM tests HTTP client is in use
HTTP connection failed http://evault1.company.com/EnterpriseVault (Status: 0x56)
ORG LIBRARY FORMS
IPM.Note.EnterpriseVault.Shortcut.DeleteMe
Version 9.0.3-001
Description Displays information about the item that is waiting to be deleted by Enterprise Vault.
IPM.Note.EnterpriseVault.Shortcut.RestoreMe
Version 9.0.3-001
Description Displays information about the Enterprise Vault restore pending item.
IPM.Note.EnterpriseVault.Shortcut
Version 9.0.3-001
Description Displays information about the Enterprise Vault archived item.
IPM.Note.EnterpriseVault.PendingArchive
Version 9.0.3-002
Description Displays information about the item that is waiting to be archived by Enterprise Vault.
IPM.Note.EnterpriseVault.PendingArchive.ArchiveMe
Version 9.0.3-002
Description Displays information about the item that is waiting to be archived by Enterprise Vault.
PERSONAL LIBRARY FORMS
IPM.Note.EnterpriseVault.Shortcut.DeleteMe
Version 9.0.3-001
Description Displays information about the item that is waiting to be deleted by Enterprise Vault.
IPM.Note.EnterpriseVault.Shortcut.RestoreMe
Version 9.0.3-001
Description Displays information about the Enterprise Vault restore pending item.
IPM.Note.EnterpriseVault.Shortcut
Version 9.0.3-001
Description Displays information about the Enterprise Vault archived item.
IPM.Note.EnterpriseVault.PendingArchive
Version 9.0.3-002
Description Displays information about the item that is waiting to be archived by Enterprise Vault.
IPM.Note.EnterpriseVault.PendingArchive.ArchiveMe
Version 9.0.3-002
Description Displays information about the item that is waiting to be archived by Enterprise Vault.
VAULT CACHE DETAILS
Not available when using an online mailbox
SELECTED STORE PROPERTIES
Name users@OU.COM
SELECTED FOLDER PROPERTIES
Name Calendar
HIDDEN MESSAGES IN FOLDER Calendar
IPM.EnterpriseVault.Filter:
Last modification time 8:00:59 PM, 12/4/2012
Archive ID 118F529EA09280743BA66AAB04EF567471110000vaultsite
ArchiveFolderId 15B303F78B84BCB49BCA5C06CC7D983FA1110000vaultsite
Create Shortcut false
Delete Original true
Filter ID 3
Inactivity Period 21
Inactivity Units 2
Include Unread Mail true
Mailbox Config Tool true
Percentage Of Quota 0
Retention Category 114A06D7AA840484A93CEF8488912825F1b10000vaultsite
Solved! Go to Solution.
12-05-2012 06:58 AM
is it consistently 1 message each and everytime?
So the report says like it has 200 items and you do a run now, it archives one item, you run again, one item etc so in theory if you run now 200 times then it will archive 200, if you run now 50 times it archives 50 items?
Doesn't seem right....but anywho, with calendar items, what do you have the policy set to in terms of recurrance and unexpired items etc...how are you determining the amount archived? just through dtrace? through archive explorer etc?
12-04-2012 01:00 PM
What do you mean when you say ...
'when you run it, but only archives one item' ?
EVPM will only apply the policy.. not do any archiving.
When you do a 'run now' on the archiving task, you say that also only archives one item...?
Have you done a DTRACE of the archiving task when you do a 'run now' ? Look for IsEligible....
12-04-2012 01:08 PM
What do you mean when you say ...
'when you run it, but only archives one item' ? It only archives one Calendar Item.
EVPM will only apply the policy.. not do any archiving. Understood...
When you do a 'run now' on the archiving task, you say that also only archives one item...? Only one Calendar Item
Have you done a DTRACE of the archiving task when you do a 'run now' ? Look for IsEligible.... I'll try this
12-05-2012 02:11 AM
Silly question but when doing a run now from the VAC you haven't got it just to do 1 item? There's an option to archive all eligible items or specify a number.
-Karl
12-05-2012 05:22 AM
Karl... thanks for the idea, but I'm archving all eligible items,
The thought crossed my mind that they may be syncing their mailboxes with mobil devices. This could change the properties of the Calendar item. I've heard of that happening.
I let all mailboxes archive in the schuled run with the same results. Any ideas welcome.
THX!
12-05-2012 06:58 AM
is it consistently 1 message each and everytime?
So the report says like it has 200 items and you do a run now, it archives one item, you run again, one item etc so in theory if you run now 200 times then it will archive 200, if you run now 50 times it archives 50 items?
Doesn't seem right....but anywho, with calendar items, what do you have the policy set to in terms of recurrance and unexpired items etc...how are you determining the amount archived? just through dtrace? through archive explorer etc?
12-05-2012 08:06 AM
JW... It is archving addititional Calendar Items as the day increments, so it's only archive items that are exactly 21 months old.
Policy is set to archive Expired Calendar Event and Pending Notifications. I also added IPM.Schedule* to message classes.
TY JW!!
12-05-2012 08:25 AM
That is truly bizarre, is there any chance at all of seeing a dtrace cos i cant quite get my head around it
12-15-2012 04:25 PM
I thought I'm come back to this to share the issue.
The mailboxes I was trying to archive had an archive run that started that did not finish. => the modified date was changed. When the archiving task came back to it, it did process it bc of this.
There is an etrack on this.
2734283