cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Modifier Conflict Error Message

SarahPrice
6-Contributor

Modifier Conflict Error Message

We have an ACL script that writes a back up copy ofthe XMLfile to a temp directory located on the users C: Drive. If the user is working with a file that has a space in the filename the following error message occurs within the Arbortext Debug window:

ERROR:
[A11342] Modifier conflicts with previously specified one:
save

Function traceback at time of error:
#1 newSave() at "\\joes\custom\scripts\newSave.acl":36

Can anyone help me figure out why this is happening??

Here is the newSave.acl script:

function newSave()

{

$newLoc="c:\\_epictemp\\"
if (access($newLoc,"e"))
{}
else
{
mkdir c:\_epictemp
}

$oldLoc=$filename
$newLoc="c:\\_epictemp\\" . $docname

#save the file into a new location for safe keeping
if (access($newLoc, "e"))
{
remove_file $newLoc
save_as $newLoc
}
else
{
save_as $newLoc
}

if (access($oldLoc, "e"))
{
#if the original file is accessible then remove
#the old one so that save_as will not prompt to overwrite
remove_file "$oldLoc"
#save the updated file
save_as "$oldLoc"
#delete the one at the new locations
#remove_file $newLoc
}
else
{
save_as "$oldLoc"
}
}


Sarah Copley

3 REPLIES 3

Sarah,

It's hard to say without knowing which line of the code you posted is
line 36 or exactly what the filename was that caused the problem, but my
best guess is that Arbortext is interpreting the space in the filename
as the end of the filename argument and the beginning of another
argument, which is confusing it.

Notice that the last save_as command in your script has double quotes
around the variable name. This keeps Arbortext from interpreting spaces
are argument separators. Try doing this on the other save_as and
similar commands (remove_file, mkdir, etc.).

Brandon Ibach
Lockheed Martin Space Systems
Cape Canaveral, FL
321-476-7051



SarahPrice
6-Contributor
(To:SarahPrice)

Brandon,

Thanks so much for your help. It wasn't removing the quotes, I needed to add the quotes to line 36 which was the first
else
{
save_as $newLoc
}

Once I put the quotes around "$newLoc" it worked like a charm.

Thanks again, Your the Bomb!!

sarah

Brandon never mentioned removing quotes. He only said to add them.
Announcements