cancel
Showing results for 
Search instead for 
Did you mean: 

EVPM - Skip lines with errors

ChayDouglas
Level 4
Partner Accredited
Hi All,
 
Not really a solution that needs solving more of a general query.
 
I have created a EVPM script that will grant access to archives for specific users.
 
It looks likes this:
 
[Directory]
DirectoryComputerName = EVServer
SiteName = EVSite
 
[ArchivePermissions]
ArchiveName = Archive Name 1
GrantAccess = read write delete, domain\user1
 
[ArchivePermissions]
ArchiveName = Archive Name 2
GrantAccess = read write delete, domain\leaver
 
[ArchivePermissions]
ArchiveName = Archive Name 3
GrantAccess = read write delete, domain\user3
 
I save it as a .ini in unicode and run it as normal...

However, I get errors similiar to:
 
Line number in error:   11
Section in error:   ArchivePermissions
Attribute in error: GrantAccess
Value in error:     read write delete, domain\leaver
Reason:     Could not lookup the account: domain\leaver
Error parsing the config (.ini) file

Now, I appreciate that the user I am trying to give permissions to has left and is no longer in the AD. That is not my issue.

My issue is, why does EVPM have to bomb out? Can it not just skip passed this attempt and go onto the next in line.

In production I have a ~3000 user ini script and I don't want to have to go through it finding the next error and taking out that line, processing it again... taking out that line etc.

I can tidy up my script before running it. But it seems like something so simple, that if it is not a fatal error, it can skip that command.

My question is, is it possible?

Could it be looked into for future releases?

Cheers
Chay

1 ACCEPTED SOLUTION

Accepted Solutions

TonySterling
Moderator
Moderator
Partner    VIP    Accredited Certified

You should post this in the ideas section for consideration for a future release.

View solution in original post

3 REPLIES 3

TonySterling
Moderator
Moderator
Partner    VIP    Accredited Certified

You should post this in the ideas section for consideration for a future release.

ChayDouglas
Level 4
Partner Accredited

Oh Ok, does that mean there is 100% no way I can add a line somewhere that will skip lines?

Will follow your advice. Cheers

TonySterling
Moderator
Moderator
Partner    VIP    Accredited Certified

Sorry, but not that I am aware of.