Forum Discussion

Judy_Glazier's avatar
16 years ago

Error Running EVPM Script

Has anyone seen the following error when trying to run a simple EVPM script.  I am logged on as the Vault Admin while running EVPM to execute the .ini  file saved in unicode.

I tried more than one script file and they all come up with the same output.  The site name does have a space in it "Demo Site" and I wondered it that might be the issue, so I tried changing the name in SQL table to "Demo_Site" and changed my script to reflect the change but it didn't make any difference. 

I also tried creating a brand new .ini file in case there was some space or hiccup in it somewhere.

I verified that there are no spaces after the Site name in SQL table.

Environment is VMWare Images of two Vault Servers, a SQL Server, Exchange Server:  Enterprise Vault 8.0 in Windows 2003

Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Program Files\Enterprise Vault>evpm
Please enter an Exchange Server name: evserver1

Please enter the service mailbox alias: zz_EV_system_server1 (Verified that this is the system mailbox in sql table and archiving task properties)

Please enter the ini file name and location: c:\pro*\ent*\batch\projects.ini



Creating privileged MAPI session ...

Parsing input file: c:\pro*\ent*\batch\projects.ini

Error parsing command file: c:\pro*\ent*\batch\projects.ini, error follows:

Line number in error: 0
Section in error:
Attribute in error:
Value in error: ?↕¬

Here is the actual script file that I created called Projects.ini

[Directory]
DirectoryComputerName= server1
SiteName = Demo Site

[Mailbox]
DistinguishedName = all

[Filter]
name = filter1
CreateShortcut = true
DeleteOriginal = true
unreadMAIL = true
UseInactivityPeriod = true
InactivityUnits = days
InactivityPeriod = 0

[Folder]
Name = \Project One
filtername = filter1
retentioncategory = Projects
OverrideArchiveLocks = True

The error in line 0 has me stumped. 

Any ideas appreciated.

Judy
  • Hello Wayne and Michelz

    Your suggestion to make the comments in one continuous line solved the Site problem.  Unfortunately then I received an error about something else which triggered the old grey matter into remembering with EV 8.0 there was an issue with EVPM because we no longer worry about having to choose either aged or quota based archiving.

    The fix is to replace the EVPM.exe file. 
    Etrack 1477247: Existing EVPM scripts which set custom filters on folders using non system defaults will not work

    I copied the new executable file and WALLA my script is working fine now.

    Thanks everyone for your assistance, I really appreciate being able to discuss my problems with Enterprise Vault experts as I am pretty much out here on my own.

    Judy Glazier

     

7 Replies

  • Hi Judy,

    You sure that pro*/ent* isn;t confusing EV.  Just try it at the root of C: drive to rule that our.

    Mike
  • Hello Mike

    Been a long time since we have communicated.  Probably since I was at Alberta Energy back in the 1990's.

    In any event putting the file in the root of the C:\ drive did help, however now I am getting the following problem.  I am using Symantec VMWare Images and the site name was of course already set up as Demo Site.   In the script file the site name is in the Directory section not the filter section.  Strange....

    I wouldn't bother you with this, but I want to demo this ability to create folders with immediate archive settings to a potential customer later ths week and wanted to have this working for me beforehand.


    Judy


    C:\Documents and Settings\SVC_EV>cd c:\pro*\ent*\

    C:\Program Files\Enterprise Vault>evpm
    Please enter an Exchange Server name: server1

    Please enter the service mailbox alias: zz_ev_system_server1

    Please enter the ini file name and location: c:\projects.ini


    Creating privileged MAPI session ...

    Parsing input file: c:\projects.ini

    Error parsing command file: c:\projects.ini, error follows:

    Line number in error: 7
    Section in error: Filter
    Attribute in error: SiteName
    Value in error: Demo Site

    Here is the script file again. 

    [Directory]
    DirectoryComputerName= server1
    SiteName= Demo Site

    [Filter]
    ; It will delete original, create shortcut
    and archive immediately when emails are dragged and dropped into this new folder.
    name= filter1
    CreateShortcut= true
    DeleteOriginal= true
    unreadMAIL= true
    UseInactivityPeriod= true
    InactivityUnits= days
    InactivityPeriod= 0

    [Mailbox]
    DistinguishedName= all

    [Folder]
    ; It will create a new folder named Project One
    Name= \Project One
    filtername= filter1
    retentioncategory= Projects
    OverrideArchiveLocks= True

  • Judy

    That's strange, looks good!
    Could you try to: 
    SiteName = Demo Site (notice the additional whitespace before the =)
    or
    SiteName = "Demo Site"

    also, make sure you have saved the file as Unicode.

    Cheers
  • Wait.

    Just saw another one:
    Line number in error: 7
    Section in error: Filter
    Attribute in error: SiteName
    Value in error: Demo Site

    Why does he think he is in the [Filter] Section looking for SiteName???
    That's very strange... ;)
    Also, make sure that:

    ; It will delete original, create shortcut
    and archive immediately when emails are dragged and dropped into this new folder.
    is not on a seperate line, but rather reads:
    ; It will delete original, create shortcut and archive immediately when emails are dragged and dropped into this new folder.

  • Here you go, try this. 

    Don't forget to save it as Unicode, and make sure you have a Retention Category of Projects already set up in the Vault Administration Console.
    [Directory]
    DirectoryComputerName = server1
    SiteName = Demo Site
    
    ; It will delete original, create shortcut and archive immediately when emails are dragged and dropped into this new folder.
    [Filter]
    Name = Filter1
    CreateShortcut = True
    DeleteOriginal = True
    UnreadMail = True
    UseInactivityPeriod = True
    InactivityUnits = Days
    InactivityPeriod = 0
    
    [Mailbox]
    DistinguishedName= all
    
    ; It will create a new folder named Project One
    [Folder]
    Name= \Project One
    FilterName= Filter1
    RetentionCategory= Projects
    OverrideArchiveLocks= True
  • Hello Wayne and Michelz

    Your suggestion to make the comments in one continuous line solved the Site problem.  Unfortunately then I received an error about something else which triggered the old grey matter into remembering with EV 8.0 there was an issue with EVPM because we no longer worry about having to choose either aged or quota based archiving.

    The fix is to replace the EVPM.exe file. 
    Etrack 1477247: Existing EVPM scripts which set custom filters on folders using non system defaults will not work

    I copied the new executable file and WALLA my script is working fine now.

    Thanks everyone for your assistance, I really appreciate being able to discuss my problems with Enterprise Vault experts as I am pretty much out here on my own.

    Judy Glazier