Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: File Move Exclusion Mask
Topic Summary: v10 vs v11
Created On: 11/13/2017 01:12 PM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 11/13/2017 01:12 PM
User is offline View Users Profile Print this message

Author Icon
JamesLankford
Artisan (200-499)

Posts: 369
Joined: 11/26/2012

While migrating our v10 jobs to our v11 instance, I discovered that one of the jobs which utilizes the File Move action is moving files that should be excluded.

Basically this particular job moves files out of a directory except the most recent version of that file. One the task has that file name, it then executes the File Move action while specifying the file name in the Exclude Mask textbox as a variable as %newestFile%.

In v11, the action looks to be ignoring the mask as it is moving ALL files, even though it is still correctly determining the most recent version.

While experimenting for a fix, I ended up modifying the exclusion mask:

from %newestFile%

to *%newestFile%*

and that seemed to work.

Was that a deliberate change from v10 to v11 or is that a bug?



-------------------------
<html />
 11/13/2017 02:26 PM
User is offline View Users Profile Print this message

Author Icon
JamesLankford
Artisan (200-499)

Posts: 369
Joined: 11/26/2012

It doesn't seem to recognize a regular expression mask either. In another example I'm trying to use the Exclude mask to omit files not meeting a regular expression value. I have it specified in the Exclude text box as !(fileRegExMask).

I believe I have a work-around for it at this time.



-------------------------
<html />
 11/14/2017 06:59 AM
User is offline View Users Profile Print this message

Author Icon
Ricardo Castaneda
HelpSystems

Posts: 3424
Joined: 01/11/2008

Hi James,

Would it be possible to provide the workaround you put in place?

-------------------------

Ricardo Castaneda | Principal Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700
 11/14/2017 01:05 PM
User is offline View Users Profile Print this message

Author Icon
JamesLankford
Artisan (200-499)

Posts: 369
Joined: 11/26/2012

Ricardo,

I have a task that loops through files in a folder. The exclusion was to help make sure that only files named correctly were looped. The expected file names should have a YYYYMMDD value in it, so the RegEx exclusion was to filter out all files not meeting this criteria.

I ended up removing the exclusion and allowing the loop to just process all the files. The first step within the loop executes a 'Find text' statement for the current file in the loop step using the RegEx value as the criteria. The result of the evaluation is stored in a numeric variable. If true, then process the file. If not, skip it.



-------------------------
<html />
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 4111 guests browsing this forum, which makes a total of 4111 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog